blob: 154e0931d2177f6d7a97d421a8b505b990ecc6c8 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003# Generated by GNU Autoconf 2.60 for llvm 2.5svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerd53b4d32008-10-07 04:35:08 +0000718PACKAGE_VERSION='2.5svn'
719PACKAGE_STRING='llvm 2.5svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +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
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
845CXX
846CXXFLAGS
847ac_ct_CXX
848LEX
Torok Edwincc499a42008-10-22 09:56:27 +0000849LEXLIB
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000850LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000851FLEX
852YACC
853YFLAGS
854BISON
855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
871GV
872DOTTY
873PERL
874HAVE_PERL
875INSTALL_PROGRAM
876INSTALL_SCRIPT
877INSTALL_DATA
878BZIP2
879DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000880GROFF
881GZIP
882POD2HTML
883POD2MAN
884RUNTEST
885TCLSH
886ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000887OCAMLC
888OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000889OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000890OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000891GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000892INSTALL_LTDL_TRUE
893INSTALL_LTDL_FALSE
894CONVENIENCE_LTDL_TRUE
895CONVENIENCE_LTDL_FALSE
896LIBADD_DL
897ECHO
898AR
899STRIP
900CXXCPP
901F77
902FFLAGS
903ac_ct_F77
904LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000905LLVMGCC
906LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000907USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000908HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000909HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000910ALLOCA
911MMAP_FILE
912LLVMCC1
913LLVMCC1PLUS
914LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000915LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000916LLVMGCC_VERSION
917LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000918LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000919SHLIBEXT
920LLVM_PREFIX
921LLVM_BINDIR
922LLVM_LIBDIR
923LLVM_DATADIR
924LLVM_DOCSDIR
925LLVM_ETCDIR
926LLVM_INCLUDEDIR
927LLVM_INFODIR
928LLVM_MANDIR
929LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000930BINDINGS_TO_BUILD
931ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000932OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000933ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000934LIBOBJS
935LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000936ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000937 ac_precious_vars='build_alias
938host_alias
939target_alias
940CC
941CFLAGS
942LDFLAGS
943CPPFLAGS
944CPP
945CXX
946CXXFLAGS
947CCC
948YACC
949YFLAGS
950CXXCPP
951F77
952FFLAGS'
953ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000954projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000955projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000956projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000957projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000958projects/llvm-reopt
959projects/llvm-gcc
960projects/llvm-java
961projects/llvm-tv
962projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000963projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000965
966# Initialize some variables set by options.
967ac_init_help=
968ac_init_version=false
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000991# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001011
1012ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001013ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001014for ac_option
1015do
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001018 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001019 ac_prev=
1020 continue
1021 fi
1022
Reid Spencera773bd52006-08-04 18:18:08 +00001023 case $ac_option in
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *) ac_optarg=yes ;;
1026 esac
John Criswell7a73b802003-06-30 21:59:07 +00001027
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1029
Reid Spencera773bd52006-08-04 18:18:08 +00001030 case $ac_dashdash$ac_option in
1031 --)
1032 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001033
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 ac_prev=bindir ;;
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1038
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1043
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1050
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001055 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001057 datadir=$ac_optarg ;;
1058
Reid Spencera773bd52006-08-04 18:18:08 +00001059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1065
John Criswell7a73b802003-06-30 21:59:07 +00001066 -disable-* | --disable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001073 eval enable_$ac_feature=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001084
1085 -enable-* | --enable-*)
1086 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001088 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001089 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001091 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001092 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001093
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1102
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1106
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1113
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1118
Reid Spencera773bd52006-08-04 18:18:08 +00001119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1124
John Criswell7a73b802003-06-30 21:59:07 +00001125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1131
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1136
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1141
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1148
Reid Spencera773bd52006-08-04 18:18:08 +00001149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1153
John Criswell7a73b802003-06-30 21:59:07 +00001154 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001159 localstatedir=$ac_optarg ;;
1160
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1165
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1169
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1173
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1177
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1186
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1191
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1198
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1205
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1222
Reid Spencera773bd52006-08-04 18:18:08 +00001223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1227
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1232
John Criswell7a73b802003-06-30 21:59:07 +00001233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1281
1282 -with-* | --with-*)
1283 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001285 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001288 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001289 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001290
1291 -without-* | --without-*)
1292 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001297 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001298 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001299
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1303
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1310
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1317
1318 -*) { echo "$as_me: error: unrecognized option: $ac_option
1319Try \`$0 --help' for more information." >&2
1320 { (exit 1); exit 1; }; }
1321 ;;
1322
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001329 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001330 export $ac_envvar ;;
1331
1332 *)
1333 # FIXME: should be removed in autoconf 3.0.
1334 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 ;;
1339
1340 esac
1341done
1342
1343if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 { echo "$as_me: error: missing argument to $ac_option" >&2
1346 { (exit 1); exit 1; }; }
1347fi
1348
Reid Spencera773bd52006-08-04 18:18:08 +00001349# Be sure to have absolute directory names.
1350for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001354do
Reid Spencera773bd52006-08-04 18:18:08 +00001355 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001356 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001359 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001360 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001362done
1363
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380fi
1381
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
1386
1387
Reid Spencera773bd52006-08-04 18:18:08 +00001388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { echo "$as_me: error: Working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1396
1397
John Criswell7a73b802003-06-30 21:59:07 +00001398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001403$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001404 X"$0" : 'X\(//\)[^/]' \| \
1405 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001407echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\).*/{
1421 s//\1/
1422 q
1423 }
1424 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001425 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001426 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001427 srcdir=..
1428 fi
1429else
1430 ac_srcdir_defaulted=no
1431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001435 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001436fi
Reid Spencera773bd52006-08-04 18:18:08 +00001437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001440 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001441 pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001466\`configure' configures llvm 2.5svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
John Criswell7a73b802003-06-30 21:59:07 +00001486Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001488 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001490 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001519_ACEOF
1520
1521 cat <<\_ACEOF
1522
1523System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531 case $ac_init_help in
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001532 short | recursive ) echo "Configuration of llvm 2.5svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001533 esac
1534 cat <<\_ACEOF
1535
1536Optional Features:
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001540 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001541 --enable-expensive-checks
1542
Reid Spencer8b2e1412006-11-17 03:32:33 +00001543 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001545 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001546 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001547 --enable-pic Build LLVM with Position Independent Code (default
1548 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001549 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001550 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001551 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1552 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001553 --enable-bindings Build specific language bindings:
1554 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001555 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001556 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001558 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001559 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001560 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001561 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001562 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001563 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001564
1565Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001568 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1569 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001570 --with-llvmgcc Specify location of llvm-gcc driver (default
1571 searches PATH)
1572 --with-llvmgxx Specify location of llvm-g++ driver (default
1573 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001574 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001575 --with-ocaml-libdir Specify install location for ocaml bindings (default
1576 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001577 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001581 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001582 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001583
1584Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001585 CC C compiler command
1586 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001591 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001594 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1595 the first program found out of: `bison -y', `byacc', `yacc'.
1596 YFLAGS The list of arguments that will be passed by default to $YACC.
1597 This script will default YFLAGS to the empty string to avoid a
1598 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603Use these variables to override the choices made by `configure' or to help
1604it to find libraries and programs with nonstandard names/locations.
1605
1606Report bugs to <llvmbugs@cs.uiuc.edu>.
1607_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001608ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001614 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_builddir=.
1616
Reid Spencera773bd52006-08-04 18:18:08 +00001617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
John Criswell7a73b802003-06-30 21:59:07 +00001620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001632
1633case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001634 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001639 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001646esac
Reid Spencera773bd52006-08-04 18:18:08 +00001647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001648
Reid Spencera773bd52006-08-04 18:18:08 +00001649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001657 else
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001661 done
1662fi
1663
Reid Spencera773bd52006-08-04 18:18:08 +00001664test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001665if $ac_init_version; then
1666 cat <<\_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001667llvm configure 2.5svn
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001668generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001669
Reid Spencera773bd52006-08-04 18:18:08 +00001670Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001674
Tanya Lattnercf067672008-01-17 05:57:22 +00001675Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001677 exit
John Criswell7a73b802003-06-30 21:59:07 +00001678fi
Reid Spencera773bd52006-08-04 18:18:08 +00001679cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001683It was created by llvm $as_me 2.5svn, which was
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001684generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001685
1686 $ $0 $@
1687
1688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001689exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001690{
1691cat <<_ASUNAME
1692## --------- ##
1693## Platform. ##
1694## --------- ##
1695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704
1705/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001708/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001709/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712
1713_ASUNAME
1714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 echo "PATH: $as_dir"
1721done
Reid Spencera773bd52006-08-04 18:18:08 +00001722IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001723
1724} >&5
1725
1726cat >&5 <<_ACEOF
1727
1728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
1735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001738# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001739# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001740# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001741ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001742ac_configure_args0=
1743ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001744ac_must_keep_next=false
1745for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001746do
John Criswell0c38eaf2003-09-10 15:17:25 +00001747 for ac_arg
1748 do
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001754 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 2)
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001762 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1772 ;;
1773 -* ) ac_must_keep_next=true ;;
1774 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001776 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001777 ;;
1778 esac
1779 done
John Criswell7a73b802003-06-30 21:59:07 +00001780done
John Criswell0c38eaf2003-09-10 15:17:25 +00001781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$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 +00001783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log. We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001789trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
1791 {
1792 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794 cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001801(
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
1807 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
1812 *) $as_unset $ac_var ;;
1813 esac ;;
1814 esac
1815 done
John Criswell7a73b802003-06-30 21:59:07 +00001816 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001819 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001823 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001825 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001826 esac |
1827 sort
1828)
John Criswell7a73b802003-06-30 21:59:07 +00001829 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001830
1831 cat <<\_ASBOX
1832## ----------------- ##
1833## Output variables. ##
1834## ----------------- ##
1835_ASBOX
1836 echo
1837 for ac_var in $ac_subst_vars
1838 do
Reid Spencera773bd52006-08-04 18:18:08 +00001839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001844 done | sort
1845 echo
1846
1847 if test -n "$ac_subst_files"; then
1848 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001849## ------------------- ##
1850## File substitutions. ##
1851## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001852_ASBOX
1853 echo
1854 for ac_var in $ac_subst_files
1855 do
Reid Spencera773bd52006-08-04 18:18:08 +00001856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001861 done | sort
1862 echo
1863 fi
1864
John Criswell7a73b802003-06-30 21:59:07 +00001865 if test -s confdefs.h; then
1866 cat <<\_ASBOX
1867## ----------- ##
1868## confdefs.h. ##
1869## ----------- ##
1870_ASBOX
1871 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001872 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001873 echo
1874 fi
1875 test "$ac_signal" != 0 &&
1876 echo "$as_me: caught signal $ac_signal"
1877 echo "$as_me: exit $exit_status"
1878 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001881 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001882' 0
John Criswell7a73b802003-06-30 21:59:07 +00001883for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885done
1886ac_signal=0
1887
1888# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001889rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001890
1891# Predefined preprocessor variables.
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_NAME "$PACKAGE_NAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_VERSION "$PACKAGE_VERSION"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_STRING "$PACKAGE_STRING"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915_ACEOF
1916
1917
1918# Let the site file select an alternate cache file if it wants to.
1919# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001920if test -n "$CONFIG_SITE"; then
1921 set x "$CONFIG_SITE"
1922elif test "x$prefix" != xNONE; then
1923 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924else
1925 set x "$ac_default_prefix/share/config.site" \
1926 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001927fi
Reid Spencera773bd52006-08-04 18:18:08 +00001928shift
1929for ac_site_file
1930do
John Criswell7a73b802003-06-30 21:59:07 +00001931 if test -r "$ac_site_file"; then
1932 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1935 . "$ac_site_file"
1936 fi
1937done
1938
1939if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944echo "$as_me: loading cache $cache_file" >&6;}
1945 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001948 esac
1949 fi
1950else
1951 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952echo "$as_me: creating cache $cache_file" >&6;}
1953 >$cache_file
1954fi
1955
1956# Check that the precious variables saved in the cache have kept the same
1957# value.
1958ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001959for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001964 case $ac_old_set,$ac_new_set in
1965 set,)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,set)
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,);;
1974 *)
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001976 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001978 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001979echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001980 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001982 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001988 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1995 fi
1996done
1997if $ac_cache_corrupted; then
1998 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2003fi
2004
Reid Spencera773bd52006-08-04 18:18:08 +00002005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
John Criswell7a73b802003-06-30 21:59:07 +00002029ac_ext=c
2030ac_cpp='$CPP $CPPFLAGS'
2031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034
2035
2036
Tanya Lattnercf067672008-01-17 05:57:22 +00002037LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038
2039
2040
2041
2042
2043
2044
John Criswell7a73b802003-06-30 21:59:07 +00002045ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002046for ac_dir in autoconf "$srcdir"/autoconf; do
2047 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 break
Reid Spencera773bd52006-08-04 18:18:08 +00002051 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 break
Reid Spencera773bd52006-08-04 18:18:08 +00002055 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 break
2059 fi
2060done
2061if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002062 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002064 { (exit 1); exit 1; }; }
2065fi
Reid Spencera773bd52006-08-04 18:18:08 +00002066
2067# These three variables are undocumented and unsupported,
2068# and are intended to be withdrawn in a future Autoconf release.
2069# They can cause serious problems if a builder's source tree is in a directory
2070# whose full name contains unusual characters.
2071ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2074
John Criswell7a73b802003-06-30 21:59:07 +00002075
John Criswell392aaa32003-07-22 19:18:09 +00002076
Reid Spencer2706f8c2004-09-19 23:53:36 +00002077if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2079 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002080echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002082 fi
John Criswell93e1c722003-09-15 17:04:06 +00002083fi
2084
John Criswell33a911a2003-11-25 20:36:46 +00002085for i in `ls ${srcdir}/projects`
2086do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 if test -d ${srcdir}/projects/${i} ; then
2088 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 CVS) ;;
2090 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002093 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002096 # llvm-test is the old name of the test-suite, kept here for backwards
2097 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002098 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002100 test-suite) subdirs="$subdirs projects/test-suite"
2101 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002107 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002109 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002110 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002111 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002112 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002113 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002115 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002116 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002117 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002119 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 esac
John Criswell33a911a2003-11-25 20:36:46 +00002121 fi
2122done
John Criswell559a6c12003-09-30 16:31:48 +00002123
John Criswell7a73b802003-06-30 21:59:07 +00002124
2125# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002126$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002129 { (exit 1); exit 1; }; }
2130
Reid Spencera773bd52006-08-04 18:18:08 +00002131{ echo "$as_me:$LINENO: checking build system type" >&5
2132echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002133if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
Reid Spencera773bd52006-08-04 18:18:08 +00002136 ac_build_alias=$build_alias
2137test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002146 { (exit 1); exit 1; }; }
2147
2148fi
Reid Spencera773bd52006-08-04 18:18:08 +00002149{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150echo "${ECHO_T}$ac_cv_build" >&6; }
2151case $ac_cv_build in
2152*-*-*) ;;
2153*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156esac
John Criswell7a73b802003-06-30 21:59:07 +00002157build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_build
2160shift
2161build_cpu=$1
2162build_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166build_os=$*
2167IFS=$ac_save_IFS
2168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002169
2170
Reid Spencera773bd52006-08-04 18:18:08 +00002171{ echo "$as_me:$LINENO: checking host system type" >&5
2172echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002173if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
Reid Spencera773bd52006-08-04 18:18:08 +00002176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002183fi
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185fi
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187echo "${ECHO_T}$ac_cv_host" >&6; }
2188case $ac_cv_host in
2189*-*-*) ;;
2190*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193esac
John Criswell7a73b802003-06-30 21:59:07 +00002194host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_host
2197shift
2198host_cpu=$1
2199host_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203host_os=$*
2204IFS=$ac_save_IFS
2205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002206
2207
Reid Spencera773bd52006-08-04 18:18:08 +00002208{ echo "$as_me:$LINENO: checking target system type" >&5
2209echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002210if test "${ac_cv_target+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
Reid Spencera773bd52006-08-04 18:18:08 +00002213 if test "x$target_alias" = x; then
2214 ac_cv_target=$ac_cv_host
2215else
2216 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002219 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002220fi
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222fi
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224echo "${ECHO_T}$ac_cv_target" >&6; }
2225case $ac_cv_target in
2226*-*-*) ;;
2227*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228echo "$as_me: error: invalid value of canonical target" >&2;}
2229 { (exit 1); exit 1; }; };;
2230esac
John Criswell7a73b802003-06-30 21:59:07 +00002231target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_target
2234shift
2235target_cpu=$1
2236target_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240target_os=$*
2241IFS=$ac_save_IFS
2242case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002243
2244
2245# The aliases save the names the user supplied, while $host etc.
2246# will get canonicalized.
2247test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2249 NONENONEs,x,x, &&
2250 program_prefix=${target_alias}-
2251
Reid Spencera773bd52006-08-04 18:18:08 +00002252{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002254if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002257 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="AIX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002263 *-*-irix*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="IRIX"
2267 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Cygwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002275 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="Darwin"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="FreeBSD"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002283 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002286 llvm_cv_os_type="OpenBSD"
2287 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002288 *-*-netbsd*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="NetBSD"
2292 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002293 *-*-dragonfly*)
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="DragonFly"
2297 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002298 *-*-hpux*)
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"
Duraid Madina775afa52005-05-16 16:33:34 +00002301 llvm_cv_os_type="HP-UX"
2302 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="Interix"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-linux*)
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="Linux"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,-z,allextract"
2315 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 llvm_cv_os_type="SunOS"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="Win32"
2322 llvm_cv_platform_type="Win32" ;;
2323 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="MingW"
2327 llvm_cv_platform_type="Win32" ;;
2328 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option=""
2330 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 llvm_cv_os_type="Unknown"
2332 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002333esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002334fi
Reid Spencera773bd52006-08-04 18:18:08 +00002335{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002337
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338if test "$llvm_cv_os_type" = "Unknown" ; then
2339 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002341 { (exit 1); exit 1; }; }
2342fi
2343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345
2346
Reid Spencera773bd52006-08-04 18:18:08 +00002347LINKALL=$llvm_cv_link_all_option
2348
2349NOLINKALL=$llvm_cv_no_link_all_option
2350
2351
Reid Spencer7b3e8512004-12-24 06:29:05 +00002352case $llvm_cv_platform_type in
2353 Unix)
2354
2355cat >>confdefs.h <<\_ACEOF
2356#define LLVM_ON_UNIX 1
2357_ACEOF
2358
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002359 LLVM_ON_UNIX=1
2360
2361 LLVM_ON_WIN32=0
2362
Reid Spencer7b3e8512004-12-24 06:29:05 +00002363 ;;
2364 Win32)
2365
2366cat >>confdefs.h <<\_ACEOF
2367#define LLVM_ON_WIN32 1
2368_ACEOF
2369
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002370 LLVM_ON_UNIX=0
2371
2372 LLVM_ON_WIN32=1
2373
Reid Spencer7b3e8512004-12-24 06:29:05 +00002374 ;;
2375esac
2376
Reid Spencera773bd52006-08-04 18:18:08 +00002377{ echo "$as_me:$LINENO: checking target architecture" >&5
2378echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379if test "${llvm_cv_target_arch+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002383 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002384 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002385 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2386 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002387 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002388 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002389 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002390 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002391 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002392 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002393esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394fi
Reid Spencera773bd52006-08-04 18:18:08 +00002395{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2396echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002397
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398if test "$llvm_cv_target_arch" = "Unknown" ; then
2399 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2400echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2401fi
John Criswell76595452003-07-01 22:07:39 +00002402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002404
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002411if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416if test "${ac_cv_prog_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002428 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 +00002429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433done
2434done
Reid Spencera773bd52006-08-04 18:18:08 +00002435IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436
2437fi
2438fi
2439CC=$ac_cv_prog_CC
2440if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002441 { echo "$as_me:$LINENO: result: $CC" >&5
2442echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443else
Reid Spencera773bd52006-08-04 18:18:08 +00002444 { echo "$as_me:$LINENO: result: no" >&5
2445echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446fi
2447
Reid Spencera773bd52006-08-04 18:18:08 +00002448
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449fi
2450if test -z "$ac_cv_prog_CC"; then
2451 ac_ct_CC=$CC
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002468 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 +00002469 ac_cv_prog_ac_ct_CC="gcc"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473done
2474done
Reid Spencera773bd52006-08-04 18:18:08 +00002475IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476
2477fi
2478fi
2479ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002481 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483else
Reid Spencera773bd52006-08-04 18:18:08 +00002484 { echo "$as_me:$LINENO: result: no" >&5
2485echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486fi
2487
Reid Spencera773bd52006-08-04 18:18:08 +00002488 if test "x$ac_ct_CC" = x; then
2489 CC=""
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492yes:)
2493{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&5
2496echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2497whose name does not start with the host triplet. If you think this
2498configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2499ac_tool_warned=yes ;;
2500esac
2501 CC=$ac_ct_CC
2502 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503else
2504 CC="$ac_cv_prog_CC"
2505fi
2506
2507if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002508 if test -n "$ac_tool_prefix"; then
2509 # 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 +00002510set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513if test "${ac_cv_prog_CC+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002525 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 +00002526 ac_cv_prog_CC="${ac_tool_prefix}cc"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530done
2531done
Reid Spencera773bd52006-08-04 18:18:08 +00002532IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533
2534fi
2535fi
2536CC=$ac_cv_prog_CC
2537if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002538 { echo "$as_me:$LINENO: result: $CC" >&5
2539echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540else
Reid Spencera773bd52006-08-04 18:18:08 +00002541 { echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543fi
2544
Reid Spencera773bd52006-08-04 18:18:08 +00002545
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547fi
2548if test -z "$CC"; then
2549 # Extract the first word of "cc", so it can be a program name with args.
2550set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2558else
2559 ac_prog_rejected=no
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002566 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 +00002567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2568 ac_prog_rejected=yes
2569 continue
2570 fi
2571 ac_cv_prog_CC="cc"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575done
2576done
Reid Spencera773bd52006-08-04 18:18:08 +00002577IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578
2579if test $ac_prog_rejected = yes; then
2580 # We found a bogon in the path, so make sure we never use it.
2581 set dummy $ac_cv_prog_CC
2582 shift
2583 if test $# != 0; then
2584 # We chose a different compiler from the bogus one.
2585 # However, it has the same basename, so the bogon will be chosen
2586 # first if we set CC to just the basename; use the full file name.
2587 shift
2588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2589 fi
2590fi
2591fi
2592fi
2593CC=$ac_cv_prog_CC
2594if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002595 { echo "$as_me:$LINENO: result: $CC" >&5
2596echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597else
Reid Spencera773bd52006-08-04 18:18:08 +00002598 { echo "$as_me:$LINENO: result: no" >&5
2599echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600fi
2601
Reid Spencera773bd52006-08-04 18:18:08 +00002602
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603fi
2604if test -z "$CC"; then
2605 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002606 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002607 do
2608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002624 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 +00002625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630done
Reid Spencera773bd52006-08-04 18:18:08 +00002631IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002632
2633fi
2634fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002637 { echo "$as_me:$LINENO: result: $CC" >&5
2638echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002639else
Reid Spencera773bd52006-08-04 18:18:08 +00002640 { echo "$as_me:$LINENO: result: no" >&5
2641echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002642fi
2643
Reid Spencera773bd52006-08-04 18:18:08 +00002644
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002646 done
2647fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648if test -z "$CC"; then
2649 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002650 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002651do
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002661else
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002668 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 +00002669 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673done
2674done
Reid Spencera773bd52006-08-04 18:18:08 +00002675IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002676
2677fi
2678fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002681 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2682echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002683else
Reid Spencera773bd52006-08-04 18:18:08 +00002684 { echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002686fi
2687
Reid Spencera773bd52006-08-04 18:18:08 +00002688
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002690done
John Criswell7a73b802003-06-30 21:59:07 +00002691
Reid Spencera773bd52006-08-04 18:18:08 +00002692 if test "x$ac_ct_CC" = x; then
2693 CC=""
2694 else
2695 case $cross_compiling:$ac_tool_warned in
2696yes:)
2697{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet. If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&5
2700echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2701whose name does not start with the host triplet. If you think this
2702configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2703ac_tool_warned=yes ;;
2704esac
2705 CC=$ac_ct_CC
2706 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002707fi
2708
John Criswell7a73b802003-06-30 21:59:07 +00002709fi
2710
2711
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002712test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2713See \`config.log' for more details." >&5
2714echo "$as_me: error: no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }
2717
John Criswell7a73b802003-06-30 21:59:07 +00002718# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002719echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002720ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002721{ (ac_try="$ac_compiler --version >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002731{ (ac_try="$ac_compiler -v >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002741{ (ac_try="$ac_compiler -V >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751
2752cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002753/* confdefs.h. */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002758
John Criswell7a73b802003-06-30 21:59:07 +00002759int
2760main ()
2761{
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002768ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002769# Try to create an executable without -o first, disregard a.out.
2770# It will help us diagnose broken compilers, and finding out an intuition
2771# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002772{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2773echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002774ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002775#
2776# List of possible output files, starting from the most likely.
2777# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2778# only as a last resort. b.out is created by i960 compilers.
2779ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2780#
2781# The IRIX 6 linker writes into existing files which may not be
2782# executable, retaining their permissions. Remove them first so a
2783# subsequent execution test works.
2784ac_rmfiles=
2785for ac_file in $ac_files
2786do
2787 case $ac_file in
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2789 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2790 esac
2791done
2792rm -f $ac_rmfiles
2793
2794if { (ac_try="$ac_link_default"
2795case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002804 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806# in a Makefile. We should not override ac_cv_exeext if it was cached,
2807# so that the user can short-circuit this test for compilers unknown to
2808# Autoconf.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002809for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002810do
2811 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002812 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002815 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 # We found the default executable, but exeext='' is most
2817 # certainly right.
2818 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002819 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002820 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821 then :; else
2822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 fi
2824 # We set ac_cv_exeext here because the later test for it is not
2825 # safe: cross compilers may not add the suffix if given an `-o'
2826 # argument, so we may need to know it at that point already.
2827 # Even if this section looks crufty: it has the advantage of
2828 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002829 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002830 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002831 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002832 esac
2833done
Reid Spencera773bd52006-08-04 18:18:08 +00002834test "$ac_cv_exeext" = no && ac_cv_exeext=
2835
John Criswell7a73b802003-06-30 21:59:07 +00002836else
2837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002838sed 's/^/| /' conftest.$ac_ext >&5
2839
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002840{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002841See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002842echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002843See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002844 { (exit 77); exit 77; }; }
2845fi
2846
2847ac_exeext=$ac_cv_exeext
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002848{ echo "$as_me:$LINENO: result: $ac_file" >&5
2849echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002850
Reid Spencera773bd52006-08-04 18:18:08 +00002851# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002852# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002853{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2854echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002855# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2856# If not cross compiling, check that we can run a simple program.
2857if test "$cross_compiling" != yes; then
2858 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002859 { (case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
2863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 cross_compiling=no
2869 else
2870 if test "$cross_compiling" = maybe; then
2871 cross_compiling=yes
2872 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002873 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002876echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002877If you meant to cross compile, use \`--host'.
2878See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002879 { (exit 1); exit 1; }; }
2880 fi
2881 fi
2882fi
Reid Spencera773bd52006-08-04 18:18:08 +00002883{ echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002885
John Criswell0c38eaf2003-09-10 15:17:25 +00002886rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002887ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002888# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002889# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002890{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2891echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2892{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2893echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002894
Reid Spencera773bd52006-08-04 18:18:08 +00002895{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2896echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2897if { (ac_try="$ac_link"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; then
2907 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2908# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2909# work properly (i.e., refer to `conftest.exe'), while it won't with
2910# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002911for ac_file in conftest.exe conftest conftest.*; do
2912 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002913 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002916 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002917 * ) break;;
2918 esac
2919done
2920else
John Criswell0c38eaf2003-09-10 15:17:25 +00002921 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2922See \`config.log' for more details." >&5
2923echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2924See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002925 { (exit 1); exit 1; }; }
2926fi
2927
2928rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002929{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2930echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002931
2932rm -f conftest.$ac_ext
2933EXEEXT=$ac_cv_exeext
2934ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002935{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2936echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002937if test "${ac_cv_objext+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002946
John Criswell7a73b802003-06-30 21:59:07 +00002947int
2948main ()
2949{
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002966 for ac_file in conftest.o conftest.obj conftest.*; do
2967 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002968 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2971 break;;
2972 esac
2973done
2974else
2975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2979See \`config.log' for more details." >&5
2980echo "$as_me: error: cannot compute suffix of object files: cannot compile
2981See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002982 { (exit 1); exit 1; }; }
2983fi
2984
2985rm -f conftest.$ac_cv_objext conftest.$ac_ext
2986fi
Reid Spencera773bd52006-08-04 18:18:08 +00002987{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2988echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002989OBJEXT=$ac_cv_objext
2990ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002991{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2992echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002993if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003002
John Criswell7a73b802003-06-30 21:59:07 +00003003int
3004main ()
3005{
3006#ifndef __GNUC__
3007 choke me
3008#endif
3009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003015if { (ac_try="$ac_compile"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003022 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003048 ac_compiler_gnu=yes
3049else
3050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003051sed 's/^/| /' conftest.$ac_ext >&5
3052
Reid Spencera773bd52006-08-04 18:18:08 +00003053 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003054fi
Reid Spencera773bd52006-08-04 18:18:08 +00003055
3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003057ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003058
3059fi
Reid Spencera773bd52006-08-04 18:18:08 +00003060{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3061echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003062GCC=`test $ac_compiler_gnu = yes && echo yes`
3063ac_test_CFLAGS=${CFLAGS+set}
3064ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003065{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003067if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
Reid Spencera773bd52006-08-04 18:18:08 +00003070 ac_save_c_werror_flag=$ac_c_werror_flag
3071 ac_c_werror_flag=yes
3072 ac_cv_prog_cc_g=no
3073 CFLAGS="-g"
3074 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003080
John Criswell7a73b802003-06-30 21:59:07 +00003081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003123 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003124else
3125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003126sed 's/^/| /' conftest.$ac_ext >&5
3127
Reid Spencera773bd52006-08-04 18:18:08 +00003128 CFLAGS=""
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135
3136int
3137main ()
3138{
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003157 (exit $ac_status); } &&
3158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159 { (case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_try") 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003178 :
3179else
3180 echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 ac_c_werror_flag=$ac_save_c_werror_flag
3184 CFLAGS="-g"
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191
3192int
3193main ()
3194{
3195
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
3201if { (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
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +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 Spencera773bd52006-08-04 18:18:08 +00003234 ac_cv_prog_cc_g=yes
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239
John Criswell7a73b802003-06-30 21:59:07 +00003240fi
Reid Spencera773bd52006-08-04 18:18:08 +00003241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003243fi
Reid Spencera773bd52006-08-04 18:18:08 +00003244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246fi
3247
3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 ac_c_werror_flag=$ac_save_c_werror_flag
3250fi
3251{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3252echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253if test "$ac_test_CFLAGS" = set; then
3254 CFLAGS=$ac_save_CFLAGS
3255elif test $ac_cv_prog_cc_g = yes; then
3256 if test "$GCC" = yes; then
3257 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003258 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003260 fi
3261else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 if test "$GCC" = yes; then
3263 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003264 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003266 fi
3267fi
Reid Spencera773bd52006-08-04 18:18:08 +00003268{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3269echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3270if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
Reid Spencera773bd52006-08-04 18:18:08 +00003273 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274ac_save_CC=$CC
3275cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281#include <stdarg.h>
3282#include <stdio.h>
3283#include <sys/types.h>
3284#include <sys/stat.h>
3285/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3286struct buf { int x; };
3287FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288static char *e (p, i)
3289 char **p;
3290 int i;
3291{
3292 return p[i];
3293}
3294static char *f (char * (*g) (char **, int), char **p, ...)
3295{
3296 char *s;
3297 va_list v;
3298 va_start (v,p);
3299 s = g (p, va_arg (v,int));
3300 va_end (v);
3301 return s;
3302}
3303
3304/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3305 function prototypes and stuff, but not '\xHH' hex character constants.
3306 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003307 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3309 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003310 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312
Reid Spencera773bd52006-08-04 18:18:08 +00003313/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3314 inside strings and character constants. */
3315#define FOO(x) 'x'
3316int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318int test (int i, double x);
3319struct s1 {int (*f) (int a);};
3320struct s2 {int (*f) (double a);};
3321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322int argc;
3323char **argv;
3324int
3325main ()
3326{
3327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 ;
3329 return 0;
3330}
3331_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003332for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3333 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334do
3335 CC="$ac_save_CC $ac_arg"
3336 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003337if { (ac_try="$ac_compile"
3338case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354esac
3355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003370 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371else
3372 echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
Reid Spencera773bd52006-08-04 18:18:08 +00003375
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376fi
Reid Spencera773bd52006-08-04 18:18:08 +00003377
3378rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380done
Reid Spencera773bd52006-08-04 18:18:08 +00003381rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382CC=$ac_save_CC
3383
3384fi
Reid Spencera773bd52006-08-04 18:18:08 +00003385# AC_CACHE_VAL
3386case "x$ac_cv_prog_cc_c89" in
3387 x)
3388 { echo "$as_me:$LINENO: result: none needed" >&5
3389echo "${ECHO_T}none needed" >&6; } ;;
3390 xno)
3391 { echo "$as_me:$LINENO: result: unsupported" >&5
3392echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003394 CC="$CC $ac_cv_prog_cc_c89"
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3396echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397esac
3398
John Criswell0c38eaf2003-09-10 15:17:25 +00003399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003412{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3413echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414# On Suns, sometimes $CPP names a directory.
3415if test -n "$CPP" && test -d "$CPP"; then
3416 CPP=
3417fi
3418if test -z "$CPP"; then
3419 if test "${ac_cv_prog_CPP+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422 # Double quotes because CPP needs to be expanded
3423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3424 do
3425 ac_preproc_ok=false
3426for ac_c_preproc_warn_flag in '' yes
3427do
3428 # Use a header file that comes with gcc, so configuring glibc
3429 # with a fresh cross-compiler works.
3430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3431 # <limits.h> exists even on freestanding compilers.
3432 # On the NeXT, cc -E runs the code through the compiler's parser,
3433 # not just through cpp. "Syntax error" is here to catch this case.
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440#ifdef __STDC__
3441# include <limits.h>
3442#else
3443# include <assert.h>
3444#endif
3445 Syntax error
3446_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003447if { (ac_try="$ac_cpp conftest.$ac_ext"
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
3452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003459 (exit $ac_status); } >/dev/null; then
3460 if test -s conftest.err; then
3461 ac_cpp_err=$ac_c_preproc_warn_flag
3462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463 else
3464 ac_cpp_err=
3465 fi
3466else
3467 ac_cpp_err=yes
3468fi
3469if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470 :
3471else
3472 echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 # Broken: fails on valid input.
3476continue
3477fi
Reid Spencera773bd52006-08-04 18:18:08 +00003478
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479rm -f conftest.err conftest.$ac_ext
3480
Reid Spencera773bd52006-08-04 18:18:08 +00003481 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482 # can be detected and how.
3483 cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h. */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h. */
3489#include <ac_nonexistent.h>
3490_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003491if { (ac_try="$ac_cpp conftest.$ac_ext"
3492case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495esac
3496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003503 (exit $ac_status); } >/dev/null; then
3504 if test -s conftest.err; then
3505 ac_cpp_err=$ac_c_preproc_warn_flag
3506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3507 else
3508 ac_cpp_err=
3509 fi
3510else
3511 ac_cpp_err=yes
3512fi
3513if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514 # Broken: success on invalid input.
3515continue
3516else
3517 echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
Reid Spencera773bd52006-08-04 18:18:08 +00003524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525rm -f conftest.err conftest.$ac_ext
3526
3527done
3528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529rm -f conftest.err conftest.$ac_ext
3530if $ac_preproc_ok; then
3531 break
3532fi
3533
3534 done
3535 ac_cv_prog_CPP=$CPP
3536
3537fi
3538 CPP=$ac_cv_prog_CPP
3539else
3540 ac_cv_prog_CPP=$CPP
3541fi
Reid Spencera773bd52006-08-04 18:18:08 +00003542{ echo "$as_me:$LINENO: result: $CPP" >&5
3543echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544ac_preproc_ok=false
3545for ac_c_preproc_warn_flag in '' yes
3546do
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559#ifdef __STDC__
3560# include <limits.h>
3561#else
3562# include <assert.h>
3563#endif
3564 Syntax error
3565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003566if { (ac_try="$ac_cpp conftest.$ac_ext"
3567case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003578 (exit $ac_status); } >/dev/null; then
3579 if test -s conftest.err; then
3580 ac_cpp_err=$ac_c_preproc_warn_flag
3581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 else
3583 ac_cpp_err=
3584 fi
3585else
3586 ac_cpp_err=yes
3587fi
3588if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003589 :
3590else
3591 echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 # Broken: fails on valid input.
3595continue
3596fi
Reid Spencera773bd52006-08-04 18:18:08 +00003597
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598rm -f conftest.err conftest.$ac_ext
3599
Reid Spencera773bd52006-08-04 18:18:08 +00003600 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003601 # can be detected and how.
3602 cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h. */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h. */
3608#include <ac_nonexistent.h>
3609_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003610if { (ac_try="$ac_cpp conftest.$ac_ext"
3611case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614esac
3615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003622 (exit $ac_status); } >/dev/null; then
3623 if test -s conftest.err; then
3624 ac_cpp_err=$ac_c_preproc_warn_flag
3625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3626 else
3627 ac_cpp_err=
3628 fi
3629else
3630 ac_cpp_err=yes
3631fi
3632if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003633 # Broken: success on invalid input.
3634continue
3635else
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 # Passes both tests.
3640ac_preproc_ok=:
3641break
3642fi
Reid Spencera773bd52006-08-04 18:18:08 +00003643
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003644rm -f conftest.err conftest.$ac_ext
3645
3646done
3647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648rm -f conftest.err conftest.$ac_ext
3649if $ac_preproc_ok; then
3650 :
3651else
3652 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3653See \`config.log' for more details." >&5
3654echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3655See \`config.log' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3657fi
3658
John Criswell7a73b802003-06-30 21:59:07 +00003659ac_ext=c
3660ac_cpp='$CPP $CPPFLAGS'
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
John Criswell7a73b802003-06-30 21:59:07 +00003665
Reid Spencera773bd52006-08-04 18:18:08 +00003666{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3667echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003668if test "${ac_cv_path_GREP+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
Reid Spencera773bd52006-08-04 18:18:08 +00003671 # Extract the first word of "grep ggrep" to use in msg output
3672if test -z "$GREP"; then
3673set dummy grep ggrep; ac_prog_name=$2
3674if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
Reid Spencera773bd52006-08-04 18:18:08 +00003677 ac_path_GREP_found=false
3678# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003684 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003685 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003686 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003687 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003688 # Check for GNU ac_path_GREP and select it if it is found.
3689 # Check for GNU $ac_path_GREP
3690case `"$ac_path_GREP" --version 2>&1` in
3691*GNU*)
3692 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3693*)
3694 ac_count=0
3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 while :
3697 do
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 echo 'GREP' >> "conftest.nl"
3702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 ac_count=`expr $ac_count + 1`
3705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_GREP="$ac_path_GREP"
3708 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003709 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3712 done
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714esac
3715
3716
3717 $ac_path_GREP_found && break 3
3718 done
3719done
3720
3721done
3722IFS=$as_save_IFS
3723
3724
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003725fi
Reid Spencera773bd52006-08-04 18:18:08 +00003726
3727GREP="$ac_cv_path_GREP"
3728if test -z "$GREP"; then
3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3732fi
3733
3734else
3735 ac_cv_path_GREP=$GREP
3736fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003737
John Criswell7a73b802003-06-30 21:59:07 +00003738
Reid Spencera773bd52006-08-04 18:18:08 +00003739fi
3740{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3741echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3742 GREP="$ac_cv_path_GREP"
3743
3744
3745{ echo "$as_me:$LINENO: checking for egrep" >&5
3746echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3747if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3751 then ac_cv_path_EGREP="$GREP -E"
3752 else
3753 # Extract the first word of "egrep" to use in msg output
3754if test -z "$EGREP"; then
3755set dummy egrep; ac_prog_name=$2
3756if test "${ac_cv_path_EGREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 ac_path_EGREP_found=false
3760# Loop through the user's path and test for each of PROGNAME-LIST
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in egrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003769 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003770 # Check for GNU ac_path_EGREP and select it if it is found.
3771 # Check for GNU $ac_path_EGREP
3772case `"$ac_path_EGREP" --version 2>&1` in
3773*GNU*)
3774 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3775*)
3776 ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 while :
3779 do
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'EGREP' >> "conftest.nl"
3784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_EGREP="$ac_path_EGREP"
3790 ac_path_EGREP_max=$ac_count
3791 fi
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3794 done
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796esac
3797
3798
3799 $ac_path_EGREP_found && break 3
3800 done
3801done
3802
3803done
3804IFS=$as_save_IFS
3805
3806
3807fi
3808
3809EGREP="$ac_cv_path_EGREP"
3810if test -z "$EGREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3814fi
3815
3816else
3817 ac_cv_path_EGREP=$EGREP
3818fi
3819
3820
3821 fi
3822fi
3823{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3825 EGREP="$ac_cv_path_EGREP"
3826
3827
3828{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003830if test "${ac_cv_header_stdc+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003839#include <stdlib.h>
3840#include <stdarg.h>
3841#include <string.h>
3842#include <float.h>
3843
John Criswell0c38eaf2003-09-10 15:17:25 +00003844int
3845main ()
3846{
3847
3848 ;
3849 return 0;
3850}
John Criswell7a73b802003-06-30 21:59:07 +00003851_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003852rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003853if { (ac_try="$ac_compile"
3854case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3867 { (case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870esac
3871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_try") 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003886 ac_cv_header_stdc=yes
3887else
3888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003889sed 's/^/| /' conftest.$ac_ext >&5
3890
Reid Spencera773bd52006-08-04 18:18:08 +00003891 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003892fi
Reid Spencera773bd52006-08-04 18:18:08 +00003893
3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003895
3896if test $ac_cv_header_stdc = yes; then
3897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003904#include <string.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003908 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003909 :
3910else
3911 ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003920/* confdefs.h. */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003925#include <stdlib.h>
3926
3927_ACEOF
3928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003929 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003930 :
3931else
3932 ac_cv_header_stdc=no
3933fi
3934rm -f conftest*
3935
3936fi
3937
3938if test $ac_cv_header_stdc = yes; then
3939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3940 if test "$cross_compiling" = yes; then
3941 :
3942else
3943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003949#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003950#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003951#if ((' ' & 0x0FF) == 0x020)
3952# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3953# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3954#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003955# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003956 (('a' <= (c) && (c) <= 'i') \
3957 || ('j' <= (c) && (c) <= 'r') \
3958 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003959# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3960#endif
3961
3962#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3963int
3964main ()
3965{
3966 int i;
3967 for (i = 0; i < 256; i++)
3968 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003969 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003970 return 2;
3971 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003972}
3973_ACEOF
3974rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003975if { (ac_try="$ac_link"
3976case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979esac
3980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988esac
3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 :
3995else
3996 echo "$as_me: program exited with status $ac_status" >&5
3997echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003998sed 's/^/| /' conftest.$ac_ext >&5
3999
John Criswell7a73b802003-06-30 21:59:07 +00004000( exit $ac_status )
4001ac_cv_header_stdc=no
4002fi
Reid Spencera773bd52006-08-04 18:18:08 +00004003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4004fi
4005
4006
John Criswell7a73b802003-06-30 21:59:07 +00004007fi
4008fi
Reid Spencera773bd52006-08-04 18:18:08 +00004009{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4010echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004011if test $ac_cv_header_stdc = yes; then
4012
4013cat >>confdefs.h <<\_ACEOF
4014#define STDC_HEADERS 1
4015_ACEOF
4016
4017fi
4018
Reid Spencera773bd52006-08-04 18:18:08 +00004019# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4030 inttypes.h stdint.h unistd.h
4031do
4032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038 cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */
4044$ac_includes_default
4045
4046#include <$ac_header>
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (ac_try="$ac_compile"
4050case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_compile") 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4063 { (case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_try") 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004082 eval "$as_ac_Header=yes"
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 eval "$as_ac_Header=no"
4088fi
4089
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091fi
4092ac_res=`eval echo '${'$as_ac_Header'}'`
4093 { echo "$as_me:$LINENO: result: $ac_res" >&5
4094echo "${ECHO_T}$ac_res" >&6; }
4095if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098_ACEOF
4099
4100fi
4101
4102done
4103
4104
4105{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4106echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4107if test "${ac_cv_c_bigendian+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 # See if sys/param.h defines the BYTE_ORDER macro.
4111cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h. */
4117#include <sys/types.h>
4118#include <sys/param.h>
4119
4120int
4121main ()
4122{
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004123#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004124 bogus endian macros
4125#endif
4126
4127 ;
4128 return 0;
4129}
4130_ACEOF
4131rm -f conftest.$ac_objext
4132if { (ac_try="$ac_compile"
4133case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004165 # It does; now see whether it defined to BIG_ENDIAN or not.
4166cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
4172#include <sys/types.h>
4173#include <sys/param.h>
4174
4175int
4176main ()
4177{
4178#if BYTE_ORDER != BIG_ENDIAN
4179 not big endian
4180#endif
4181
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186rm -f conftest.$ac_objext
4187if { (ac_try="$ac_compile"
4188case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191esac
4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_compile") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4201 { (case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_try") 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214esac
4215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_try") 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004220 ac_cv_c_bigendian=yes
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_cv_c_bigendian=no
4226fi
4227
4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229else
4230 echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 # It does not; compile a test program.
4234if test "$cross_compiling" = yes; then
4235 # try to guess the endianness by grepping values into an object file
4236 ac_cv_c_bigendian=unknown
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
4243short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4244short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4245void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4246short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4247short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4248void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4249int
4250main ()
4251{
4252 _ascii (); _ebcdic ();
4253 ;
4254 return 0;
4255}
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (ac_try="$ac_compile"
4259case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004291 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4292 ac_cv_c_bigendian=yes
4293fi
4294if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4295 if test "$ac_cv_c_bigendian" = unknown; then
4296 ac_cv_c_bigendian=no
4297 else
4298 # finding both strings is unlikely to happen, but who knows?
4299 ac_cv_c_bigendian=unknown
4300 fi
4301fi
4302else
4303 echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306
4307fi
4308
4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310else
4311 cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317$ac_includes_default
4318int
4319main ()
4320{
4321
4322 /* Are we little or big endian? From Harbison&Steele. */
4323 union
4324 {
4325 long int l;
4326 char c[sizeof (long int)];
4327 } u;
4328 u.l = 1;
4329 return u.c[sizeof (long int) - 1] == 1;
4330
4331 ;
4332 return 0;
4333}
4334_ACEOF
4335rm -f conftest$ac_exeext
4336if { (ac_try="$ac_link"
4337case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340esac
4341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_link") 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_c_bigendian=no
4356else
4357 echo "$as_me: program exited with status $ac_status" >&5
4358echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361( exit $ac_status )
4362ac_cv_c_bigendian=yes
4363fi
4364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4365fi
4366
4367
4368fi
4369
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371fi
4372{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4373echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4374case $ac_cv_c_bigendian in
4375 yes)
4376 ENDIAN=big
4377 ;;
4378 no)
4379 ENDIAN=little
4380 ;;
4381 *)
4382 { { echo "$as_me:$LINENO: error: unknown endianness
4383presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4384echo "$as_me: error: unknown endianness
4385presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4386 { (exit 1); exit 1; }; } ;;
4387esac
4388
4389
4390if test "$cross_compiling" = yes; then
4391 LLVM_CROSS_COMPILING=1
4392
4393
4394{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4395echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4396if test "${ac_cv_build_exeext+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4400 ac_cv_build_exeext=.exe
4401else
4402 ac_build_prefix=${build_alias}-
4403
4404 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4405set dummy ${ac_build_prefix}gcc; ac_word=$2
4406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 if test -n "$BUILD_CC"; then
4412 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004420 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 +00004421 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431BUILD_CC=$ac_cv_prog_BUILD_CC
4432if test -n "$BUILD_CC"; then
4433 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434echo "${ECHO_T}$BUILD_CC" >&6; }
4435else
4436 { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441 if test -z "$BUILD_CC"; then
4442 # Extract the first word of "gcc", so it can be a program name with args.
4443set dummy gcc; ac_word=$2
4444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449 if test -n "$BUILD_CC"; then
4450 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004458 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 +00004459 ac_cv_prog_BUILD_CC="gcc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463done
4464done
4465IFS=$as_save_IFS
4466
4467fi
4468fi
4469BUILD_CC=$ac_cv_prog_BUILD_CC
4470if test -n "$BUILD_CC"; then
4471 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472echo "${ECHO_T}$BUILD_CC" >&6; }
4473else
4474 { echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6; }
4476fi
4477
4478
4479 if test -z "$BUILD_CC"; then
4480 # Extract the first word of "cc", so it can be a program name with args.
4481set dummy cc; ac_word=$2
4482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487 if test -n "$BUILD_CC"; then
4488 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4489else
4490 ac_prog_rejected=no
4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004497 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 +00004498 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4499 ac_prog_rejected=yes
4500 continue
4501 fi
4502 ac_cv_prog_BUILD_CC="cc"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506done
4507done
4508IFS=$as_save_IFS
4509
4510if test $ac_prog_rejected = yes; then
4511 # We found a bogon in the path, so make sure we never use it.
4512 set dummy $ac_cv_prog_BUILD_CC
4513 shift
4514 if test $# != 0; then
4515 # We chose a different compiler from the bogus one.
4516 # However, it has the same basename, so the bogon will be chosen
4517 # first if we set BUILD_CC to just the basename; use the full file name.
4518 shift
4519 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4520 fi
4521fi
4522fi
4523fi
4524BUILD_CC=$ac_cv_prog_BUILD_CC
4525if test -n "$BUILD_CC"; then
4526 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527echo "${ECHO_T}$BUILD_CC" >&6; }
4528else
4529 { echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6; }
4531fi
4532
4533
4534 fi
4535 fi
4536 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4537echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4538 { (exit 1); exit 1; }; }
4539 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4540 rm -f conftest*
4541 echo 'int main () { return 0; }' > conftest.$ac_ext
4542 ac_cv_build_exeext=
4543 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4544 (eval $ac_build_link) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; then
4548 for file in conftest.*; do
4549 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004550 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004551 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4552 esac
4553 done
4554 else
4555 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4556echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4557 { (exit 1); exit 1; }; }
4558 fi
4559 rm -f conftest*
4560 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4561fi
4562fi
4563
4564BUILD_EXEEXT=""
4565test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4566{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4567echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4568ac_build_exeext=$BUILD_EXEEXT
4569
Jim Grosbach673612e2008-10-02 22:56:44 +00004570 ac_build_prefix=${build_alias}-
4571 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4572set dummy ${ac_build_prefix}g++; ac_word=$2
4573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578 if test -n "$BUILD_CXX"; then
4579 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4580else
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004587 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 +00004588 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592done
4593done
4594IFS=$as_save_IFS
4595
4596fi
4597fi
4598BUILD_CXX=$ac_cv_prog_BUILD_CXX
4599if test -n "$BUILD_CXX"; then
4600 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4601echo "${ECHO_T}$BUILD_CXX" >&6; }
4602else
4603 { echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6; }
4605fi
4606
4607
4608 if test -z "$BUILD_CXX"; then
4609 # Extract the first word of "g++", so it can be a program name with args.
4610set dummy g++; ac_word=$2
4611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 if test -n "$BUILD_CXX"; then
4617 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004625 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 +00004626 ac_cv_prog_BUILD_CXX="g++"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630done
4631done
4632IFS=$as_save_IFS
4633
4634fi
4635fi
4636BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637if test -n "$BUILD_CXX"; then
4638 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639echo "${ECHO_T}$BUILD_CXX" >&6; }
4640else
4641 { echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; }
4643fi
4644
4645
4646 if test -z "$BUILD_CXX"; then
4647 # Extract the first word of "c++", so it can be a program name with args.
4648set dummy c++; ac_word=$2
4649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$BUILD_CXX"; then
4655 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4656else
4657 ac_prog_rejected=no
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004664 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 +00004665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4666 ac_prog_rejected=yes
4667 continue
4668 fi
4669 ac_cv_prog_BUILD_CXX="c++"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673done
4674done
4675IFS=$as_save_IFS
4676
4677if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_BUILD_CXX
4680 shift
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set BUILD_CXX to just the basename; use the full file name.
4685 shift
4686 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4687 fi
4688fi
4689fi
4690fi
4691BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692if test -n "$BUILD_CXX"; then
4693 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694echo "${ECHO_T}$BUILD_CXX" >&6; }
4695else
4696 { echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6; }
4698fi
4699
4700
4701 fi
4702 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004703else
4704 LLVM_CROSS_COMPILING=0
4705
4706fi
4707
Reid Spencer0b1e4662007-04-02 15:41:39 +00004708if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004709 cvsbuild="yes"
4710 optimize="no"
4711 CVSBUILD=CVSBUILD=1
4712
4713else
4714 cvsbuild="no"
4715 optimize="yes"
4716fi
4717
4718
4719# Check whether --enable-optimized was given.
4720if test "${enable_optimized+set}" = set; then
4721 enableval=$enable_optimized;
4722else
4723 enableval=$optimize
4724fi
4725
4726if test ${enableval} = "no" ; then
4727 ENABLE_OPTIMIZED=
4728
4729else
4730 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4731
4732fi
4733
4734# Check whether --enable-assertions was given.
4735if test "${enable_assertions+set}" = set; then
4736 enableval=$enable_assertions;
4737else
4738 enableval="yes"
4739fi
4740
4741if test ${enableval} = "yes" ; then
4742 DISABLE_ASSERTIONS=
4743
4744else
4745 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4746
4747fi
4748
David Greenea696d242007-06-28 19:36:08 +00004749# Check whether --enable-expensive-checks was given.
4750if test "${enable_expensive_checks+set}" = set; then
4751 enableval=$enable_expensive_checks;
4752else
4753 enableval="no"
4754fi
4755
4756if test ${enableval} = "yes" ; then
4757 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758
4759 EXPENSIVE_CHECKS=yes
4760
4761else
4762 ENABLE_EXPENSIVE_CHECKS=
4763
4764 EXPENSIVE_CHECKS=no
4765
4766fi
4767
Reid Spencer8b2e1412006-11-17 03:32:33 +00004768# Check whether --enable-debug-runtime was given.
4769if test "${enable_debug_runtime+set}" = set; then
4770 enableval=$enable_debug_runtime;
4771else
4772 enableval=no
4773fi
4774
4775if test ${enableval} = "no" ; then
4776 DEBUG_RUNTIME=
4777
4778else
4779 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4780
4781fi
4782
Reid Spencera773bd52006-08-04 18:18:08 +00004783# Check whether --enable-jit was given.
4784if test "${enable_jit+set}" = set; then
4785 enableval=$enable_jit;
4786else
4787 enableval=default
4788fi
4789
4790if test ${enableval} = "no"
4791then
4792 JIT=
4793
4794else
4795 case "$llvm_cv_target_arch" in
4796 x86) TARGET_HAS_JIT=1
4797 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004798 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004799 ;;
4800 PowerPC) TARGET_HAS_JIT=1
4801 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004802 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004803 ;;
4804 Alpha) TARGET_HAS_JIT=1
4805 ;;
4806 IA64) TARGET_HAS_JIT=0
4807 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004808 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004809 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004810 Mips) TARGET_HAS_JIT=0
4811 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004812 PIC16) TARGET_HAS_JIT=0
4813 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004814 *) TARGET_HAS_JIT=0
4815 ;;
4816 esac
4817fi
4818
4819# Check whether --enable-doxygen was given.
4820if test "${enable_doxygen+set}" = set; then
4821 enableval=$enable_doxygen;
4822else
4823 enableval=default
4824fi
4825
4826case "$enableval" in
4827 yes) ENABLE_DOXYGEN=1
4828 ;;
4829 no) ENABLE_DOXYGEN=0
4830 ;;
4831 default) ENABLE_DOXYGEN=0
4832 ;;
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4834echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4836esac
4837
4838# Check whether --enable-threads was given.
4839if test "${enable_threads+set}" = set; then
4840 enableval=$enable_threads;
4841else
Reid Spencer65c5d752006-11-05 17:08:18 +00004842 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004843fi
4844
4845case "$enableval" in
4846 yes) ENABLE_THREADS=1
4847 ;;
4848 no) ENABLE_THREADS=0
4849 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004850 default) ENABLE_THREADS=1
4851 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4855esac
4856
4857cat >>confdefs.h <<_ACEOF
4858#define ENABLE_THREADS $ENABLE_THREADS
4859_ACEOF
4860
4861
Reid Spencer89b0d992006-12-16 22:07:52 +00004862# Check whether --enable-pic was given.
4863if test "${enable_pic+set}" = set; then
4864 enableval=$enable_pic;
4865else
4866 enableval=default
4867fi
4868
4869case "$enableval" in
4870 yes) ENABLE_PIC=1
4871 ;;
4872 no) ENABLE_PIC=0
4873 ;;
4874 default) ENABLE_PIC=0
4875 ;;
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4877echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4879esac
4880
4881cat >>confdefs.h <<_ACEOF
4882#define ENABLE_PIC $ENABLE_PIC
4883_ACEOF
4884
4885
Reid Spencera773bd52006-08-04 18:18:08 +00004886TARGETS_TO_BUILD=""
4887# Check whether --enable-targets was given.
4888if test "${enable_targets+set}" = set; then
4889 enableval=$enable_targets;
4890else
4891 enableval=all
4892fi
4893
4894case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004895 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004896 host-only)
4897 case "$llvm_cv_target_arch" in
4898 x86) TARGETS_TO_BUILD="X86" ;;
4899 x86_64) TARGETS_TO_BUILD="X86" ;;
4900 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4901 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4902 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4903 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004904 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004905 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004906 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004907 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004908 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4909echo "$as_me: error: Can not set target to build" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4911 esac
4912 ;;
4913 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4914 case "$a_target" in
4915 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4917 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4918 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4919 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4920 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004921 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004922 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004923 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004924 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004925 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4926 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004927 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004928 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4929echo "$as_me: error: Unrecognized target $a_target" >&2;}
4930 { (exit 1); exit 1; }; } ;;
4931 esac
4932 done
4933 ;;
4934esac
Reid Spencera773bd52006-08-04 18:18:08 +00004935TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4936
4937
Reid Spencer65c5d752006-11-05 17:08:18 +00004938# Check whether --enable-cbe-printf-a was given.
4939if test "${enable_cbe_printf_a+set}" = set; then
4940 enableval=$enable_cbe_printf_a;
4941else
4942 enableval=default
4943fi
4944
4945case "$enableval" in
4946 yes) ENABLE_CBE_PRINTF_A=1
4947 ;;
4948 no) ENABLE_CBE_PRINTF_A=0
4949 ;;
4950 default) ENABLE_CBE_PRINTF_A=1
4951 ;;
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4953echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4955esac
4956
4957cat >>confdefs.h <<_ACEOF
4958#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4959_ACEOF
4960
4961
Reid Spencera773bd52006-08-04 18:18:08 +00004962
4963# Check whether --with-llvmgccdir was given.
4964if test "${with_llvmgccdir+set}" = set; then
4965 withval=$with_llvmgccdir;
4966else
4967 withval=default
4968fi
4969
4970case "$withval" in
4971 default) WITH_LLVMGCCDIR=default ;;
4972 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4973 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4974echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4976esac
4977
4978
Devang Patel5d28b882007-12-04 22:54:47 +00004979# Check whether --with-llvmgcc was given.
4980if test "${with_llvmgcc+set}" = set; then
4981 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4982 WITH_LLVMGCCDIR=""
4983fi
4984
4985
4986
4987# Check whether --with-llvmgxx was given.
4988if test "${with_llvmgxx+set}" = set; then
4989 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4990 WITH_LLVMGCCDIR=""
4991fi
4992
4993
4994if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4995 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4996echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4997 { (exit 1); exit 1; }; };
4998fi
4999
5000if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5001 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5002echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5003 { (exit 1); exit 1; }; };
5004fi
5005
5006
Reid Spencera773bd52006-08-04 18:18:08 +00005007# Check whether --with-extra-options was given.
5008if test "${with_extra_options+set}" = set; then
5009 withval=$with_extra_options;
5010else
5011 withval=default
5012fi
5013
5014case "$withval" in
5015 default) EXTRA_OPTIONS= ;;
5016 *) EXTRA_OPTIONS=$withval ;;
5017esac
5018EXTRA_OPTIONS=$EXTRA_OPTIONS
5019
5020
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005021# Check whether --enable-bindings was given.
5022if test "${enable_bindings+set}" = set; then
5023 enableval=$enable_bindings;
5024else
5025 enableval=default
5026fi
5027
5028BINDINGS_TO_BUILD=""
5029case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005030 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005031 all ) BINDINGS_TO_BUILD="ocaml" ;;
5032 none | no) BINDINGS_TO_BUILD="" ;;
5033 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5034 case "$a_binding" in
5035 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5036 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5037echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5038 { (exit 1); exit 1; }; } ;;
5039 esac
5040 done
5041 ;;
5042esac
5043
Reid Spencera773bd52006-08-04 18:18:08 +00005044
Gordon Henriksenf0915682007-10-02 16:42:22 +00005045# Check whether --with-ocaml-libdir was given.
5046if test "${with_ocaml_libdir+set}" = set; then
5047 withval=$with_ocaml_libdir;
5048else
5049 withval=auto
5050fi
5051
5052case "$withval" in
5053 auto) with_ocaml_libdir="$withval" ;;
5054 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5055 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5056echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5058esac
5059
5060
Reid Spencera773bd52006-08-04 18:18:08 +00005061ac_ext=c
5062ac_cpp='$CPP $CPPFLAGS'
5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5067echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5068# On Suns, sometimes $CPP names a directory.
5069if test -n "$CPP" && test -d "$CPP"; then
5070 CPP=
5071fi
5072if test -z "$CPP"; then
5073 if test "${ac_cv_prog_CPP+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076 # Double quotes because CPP needs to be expanded
5077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078 do
5079 ac_preproc_ok=false
5080for ac_c_preproc_warn_flag in '' yes
5081do
5082 # Use a header file that comes with gcc, so configuring glibc
5083 # with a fresh cross-compiler works.
5084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085 # <limits.h> exists even on freestanding compilers.
5086 # On the NeXT, cc -E runs the code through the compiler's parser,
5087 # not just through cpp. "Syntax error" is here to catch this case.
5088 cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#ifdef __STDC__
5095# include <limits.h>
5096#else
5097# include <assert.h>
5098#endif
5099 Syntax error
5100_ACEOF
5101if { (ac_try="$ac_cpp conftest.$ac_ext"
5102case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_c_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5117 else
5118 ac_cpp_err=
5119 fi
5120else
5121 ac_cpp_err=yes
5122fi
5123if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005124 :
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 # Broken: fails on valid input.
5130continue
5131fi
5132
5133rm -f conftest.err conftest.$ac_ext
5134
5135 # OK, works on sane cases. Now check whether nonexistent headers
5136 # can be detected and how.
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143#include <ac_nonexistent.h>
5144_ACEOF
5145if { (ac_try="$ac_cpp conftest.$ac_ext"
5146case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5149esac
5150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_c_preproc_warn_flag
5160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5161 else
5162 ac_cpp_err=
5163 fi
5164else
5165 ac_cpp_err=yes
5166fi
5167if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005168 # Broken: success on invalid input.
5169continue
5170else
5171 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 # Passes both tests.
5175ac_preproc_ok=:
5176break
5177fi
5178
5179rm -f conftest.err conftest.$ac_ext
5180
5181done
5182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5183rm -f conftest.err conftest.$ac_ext
5184if $ac_preproc_ok; then
5185 break
5186fi
5187
5188 done
5189 ac_cv_prog_CPP=$CPP
5190
5191fi
5192 CPP=$ac_cv_prog_CPP
5193else
5194 ac_cv_prog_CPP=$CPP
5195fi
5196{ echo "$as_me:$LINENO: result: $CPP" >&5
5197echo "${ECHO_T}$CPP" >&6; }
5198ac_preproc_ok=false
5199for ac_c_preproc_warn_flag in '' yes
5200do
5201 # Use a header file that comes with gcc, so configuring glibc
5202 # with a fresh cross-compiler works.
5203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 # <limits.h> exists even on freestanding compilers.
5205 # On the NeXT, cc -E runs the code through the compiler's parser,
5206 # not just through cpp. "Syntax error" is here to catch this case.
5207 cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h. */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h. */
5213#ifdef __STDC__
5214# include <limits.h>
5215#else
5216# include <assert.h>
5217#endif
5218 Syntax error
5219_ACEOF
5220if { (ac_try="$ac_cpp conftest.$ac_ext"
5221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005232 (exit $ac_status); } >/dev/null; then
5233 if test -s conftest.err; then
5234 ac_cpp_err=$ac_c_preproc_warn_flag
5235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5236 else
5237 ac_cpp_err=
5238 fi
5239else
5240 ac_cpp_err=yes
5241fi
5242if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005243 :
5244else
5245 echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 # Broken: fails on valid input.
5249continue
5250fi
5251
5252rm -f conftest.err conftest.$ac_ext
5253
5254 # OK, works on sane cases. Now check whether nonexistent headers
5255 # can be detected and how.
5256 cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if { (ac_try="$ac_cpp conftest.$ac_ext"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005276 (exit $ac_status); } >/dev/null; then
5277 if test -s conftest.err; then
5278 ac_cpp_err=$ac_c_preproc_warn_flag
5279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280 else
5281 ac_cpp_err=
5282 fi
5283else
5284 ac_cpp_err=yes
5285fi
5286if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005287 # Broken: success on invalid input.
5288continue
5289else
5290 echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 # Passes both tests.
5294ac_preproc_ok=:
5295break
5296fi
5297
5298rm -f conftest.err conftest.$ac_ext
5299
5300done
5301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302rm -f conftest.err conftest.$ac_ext
5303if $ac_preproc_ok; then
5304 :
5305else
5306 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5307See \`config.log' for more details." >&5
5308echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5309See \`config.log' for more details." >&2;}
5310 { (exit 1); exit 1; }; }
5311fi
5312
5313ac_ext=c
5314ac_cpp='$CPP $CPPFLAGS'
5315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318
5319ac_ext=c
5320ac_cpp='$CPP $CPPFLAGS'
5321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324if test -n "$ac_tool_prefix"; then
5325 for ac_prog in gcc
5326 do
5327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331if test "${ac_cv_prog_CC+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334 if test -n "$CC"; then
5335 ac_cv_prog_CC="$CC" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005343 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 +00005344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348done
5349done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354CC=$ac_cv_prog_CC
5355if test -n "$CC"; then
5356 { echo "$as_me:$LINENO: result: $CC" >&5
5357echo "${ECHO_T}$CC" >&6; }
5358else
5359 { echo "$as_me:$LINENO: result: no" >&5
5360echo "${ECHO_T}no" >&6; }
5361fi
5362
5363
5364 test -n "$CC" && break
5365 done
5366fi
5367if test -z "$CC"; then
5368 ac_ct_CC=$CC
5369 for ac_prog in gcc
5370do
5371 # Extract the first word of "$ac_prog", so it can be a program name with args.
5372set dummy $ac_prog; ac_word=$2
5373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 if test -n "$ac_ct_CC"; then
5379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005387 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 +00005388 ac_cv_prog_ac_ct_CC="$ac_prog"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392done
5393done
5394IFS=$as_save_IFS
5395
5396fi
5397fi
5398ac_ct_CC=$ac_cv_prog_ac_ct_CC
5399if test -n "$ac_ct_CC"; then
5400 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5401echo "${ECHO_T}$ac_ct_CC" >&6; }
5402else
5403 { echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6; }
5405fi
5406
5407
5408 test -n "$ac_ct_CC" && break
5409done
5410
5411 if test "x$ac_ct_CC" = x; then
5412 CC=""
5413 else
5414 case $cross_compiling:$ac_tool_warned in
5415yes:)
5416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5417whose name does not start with the host triplet. If you think this
5418configuration is useful to you, please write to autoconf@gnu.org." >&5
5419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5420whose name does not start with the host triplet. If you think this
5421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5422ac_tool_warned=yes ;;
5423esac
5424 CC=$ac_ct_CC
5425 fi
5426fi
5427
5428
5429test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5430See \`config.log' for more details." >&5
5431echo "$as_me: error: no acceptable C compiler found in \$PATH
5432See \`config.log' for more details." >&2;}
5433 { (exit 1); exit 1; }; }
5434
5435# Provide some information about the compiler.
5436echo "$as_me:$LINENO: checking for C compiler version" >&5
5437ac_compiler=`set X $ac_compile; echo $2`
5438{ (ac_try="$ac_compiler --version >&5"
5439case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compiler --version >&5") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5448{ (ac_try="$ac_compiler -v >&5"
5449case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compiler -v >&5") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458{ (ac_try="$ac_compiler -V >&5"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compiler -V >&5") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }
5468
5469{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5470echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5471if test "${ac_cv_c_compiler_gnu+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474 cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h. */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
5479/* end confdefs.h. */
5480
5481int
5482main ()
5483{
5484#ifndef __GNUC__
5485 choke me
5486#endif
5487
5488 ;
5489 return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext
5493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
5500 ac_status=$?
5501 grep -v '^ *+' conftest.er1 >conftest.err
5502 rm -f conftest.er1
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005505 (exit $ac_status); } &&
5506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507 { (case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510esac
5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_try") 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005526 ac_compiler_gnu=yes
5527else
5528 echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 ac_compiler_gnu=no
5532fi
5533
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535ac_cv_c_compiler_gnu=$ac_compiler_gnu
5536
5537fi
5538{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5540GCC=`test $ac_compiler_gnu = yes && echo yes`
5541ac_test_CFLAGS=${CFLAGS+set}
5542ac_save_CFLAGS=$CFLAGS
5543{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5544echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5545if test "${ac_cv_prog_cc_g+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548 ac_save_c_werror_flag=$ac_c_werror_flag
5549 ac_c_werror_flag=yes
5550 ac_cv_prog_cc_g=no
5551 CFLAGS="-g"
5552 cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h. */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h. */
5558
5559int
5560main ()
5561{
5562
5563 ;
5564 return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext
5568if { (ac_try="$ac_compile"
5569case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572esac
5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5582 { (case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_try") 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; } &&
5591 { ac_try='test -s conftest.$ac_objext'
5592 { (case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595esac
5596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_try") 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005601 ac_cv_prog_cc_g=yes
5602else
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 CFLAGS=""
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613
5614int
5615main ()
5616{
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5637 { (case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640esac
5641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_try") 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005656 :
5657else
5658 echo "$as_me: failed program was:" >&5
5659sed 's/^/| /' conftest.$ac_ext >&5
5660
5661 ac_c_werror_flag=$ac_save_c_werror_flag
5662 CFLAGS="-g"
5663 cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669
5670int
5671main ()
5672{
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (ac_try="$ac_compile"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5693 { (case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_try") 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005712 ac_cv_prog_cc_g=yes
5713else
5714 echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717
5718fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724fi
5725
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 ac_c_werror_flag=$ac_save_c_werror_flag
5728fi
5729{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5730echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5731if test "$ac_test_CFLAGS" = set; then
5732 CFLAGS=$ac_save_CFLAGS
5733elif test $ac_cv_prog_cc_g = yes; then
5734 if test "$GCC" = yes; then
5735 CFLAGS="-g -O2"
5736 else
5737 CFLAGS="-g"
5738 fi
5739else
5740 if test "$GCC" = yes; then
5741 CFLAGS="-O2"
5742 else
5743 CFLAGS=
5744 fi
5745fi
5746{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5747echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5748if test "${ac_cv_prog_cc_c89+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751 ac_cv_prog_cc_c89=no
5752ac_save_CC=$CC
5753cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h. */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h. */
5759#include <stdarg.h>
5760#include <stdio.h>
5761#include <sys/types.h>
5762#include <sys/stat.h>
5763/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5764struct buf { int x; };
5765FILE * (*rcsopen) (struct buf *, struct stat *, int);
5766static char *e (p, i)
5767 char **p;
5768 int i;
5769{
5770 return p[i];
5771}
5772static char *f (char * (*g) (char **, int), char **p, ...)
5773{
5774 char *s;
5775 va_list v;
5776 va_start (v,p);
5777 s = g (p, va_arg (v,int));
5778 va_end (v);
5779 return s;
5780}
5781
5782/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5783 function prototypes and stuff, but not '\xHH' hex character constants.
5784 These don't provoke an error unfortunately, instead are silently treated
5785 as 'x'. The following induces an error, until -std is added to get
5786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5787 array size at least. It's necessary to write '\x00'==0 to get something
5788 that's true only with -std. */
5789int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5790
5791/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5792 inside strings and character constants. */
5793#define FOO(x) 'x'
5794int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5795
5796int test (int i, double x);
5797struct s1 {int (*f) (int a);};
5798struct s2 {int (*f) (double a);};
5799int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5800int argc;
5801char **argv;
5802int
5803main ()
5804{
5805return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5806 ;
5807 return 0;
5808}
5809_ACEOF
5810for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5812do
5813 CC="$ac_save_CC $ac_arg"
5814 rm -f conftest.$ac_objext
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832esac
5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005848 ac_cv_prog_cc_c89=$ac_arg
5849else
5850 echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853
5854fi
5855
5856rm -f core conftest.err conftest.$ac_objext
5857 test "x$ac_cv_prog_cc_c89" != "xno" && break
5858done
5859rm -f conftest.$ac_ext
5860CC=$ac_save_CC
5861
5862fi
5863# AC_CACHE_VAL
5864case "x$ac_cv_prog_cc_c89" in
5865 x)
5866 { echo "$as_me:$LINENO: result: none needed" >&5
5867echo "${ECHO_T}none needed" >&6; } ;;
5868 xno)
5869 { echo "$as_me:$LINENO: result: unsupported" >&5
5870echo "${ECHO_T}unsupported" >&6; } ;;
5871 *)
5872 CC="$CC $ac_cv_prog_cc_c89"
5873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5874echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5875esac
5876
5877
5878ac_ext=c
5879ac_cpp='$CPP $CPPFLAGS'
5880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883
5884ac_ext=cpp
5885ac_cpp='$CXXCPP $CPPFLAGS'
5886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889if test -z "$CXX"; then
5890 if test -n "$CCC"; then
5891 CXX=$CCC
5892 else
5893 if test -n "$ac_tool_prefix"; then
5894 for ac_prog in g++
5895 do
5896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900if test "${ac_cv_prog_CXX+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903 if test -n "$CXX"; then
5904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005912 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 +00005913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917done
5918done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923CXX=$ac_cv_prog_CXX
5924if test -n "$CXX"; then
5925 { echo "$as_me:$LINENO: result: $CXX" >&5
5926echo "${ECHO_T}$CXX" >&6; }
5927else
5928 { echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6; }
5930fi
5931
5932
5933 test -n "$CXX" && break
5934 done
5935fi
5936if test -z "$CXX"; then
5937 ac_ct_CXX=$CXX
5938 for ac_prog in g++
5939do
5940 # Extract the first word of "$ac_prog", so it can be a program name with args.
5941set dummy $ac_prog; ac_word=$2
5942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 if test -n "$ac_ct_CXX"; then
5948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005956 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 +00005957 ac_cv_prog_ac_ct_CXX="$ac_prog"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961done
5962done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5968if test -n "$ac_ct_CXX"; then
5969 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5970echo "${ECHO_T}$ac_ct_CXX" >&6; }
5971else
5972 { echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6; }
5974fi
5975
5976
5977 test -n "$ac_ct_CXX" && break
5978done
5979
5980 if test "x$ac_ct_CXX" = x; then
5981 CXX="g++"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984yes:)
5985{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986whose name does not start with the host triplet. If you think this
5987configuration is useful to you, please write to autoconf@gnu.org." >&5
5988echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989whose name does not start with the host triplet. If you think this
5990configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993 CXX=$ac_ct_CXX
5994 fi
5995fi
5996
5997 fi
5998fi
5999# Provide some information about the compiler.
6000echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6001ac_compiler=`set X $ac_compile; echo $2`
6002{ (ac_try="$ac_compiler --version >&5"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compiler --version >&5") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }
6012{ (ac_try="$ac_compiler -v >&5"
6013case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compiler -v >&5") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }
6022{ (ac_try="$ac_compiler -V >&5"
6023case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compiler -V >&5") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }
6032
6033{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6034echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6035if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048#ifndef __GNUC__
6049 choke me
6050#endif
6051
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext
6057if { (ac_try="$ac_compile"
6058case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006069 (exit $ac_status); } &&
6070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6071 { (case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_try") 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; } &&
6080 { ac_try='test -s conftest.$ac_objext'
6081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006090 ac_compiler_gnu=yes
6091else
6092 echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_compiler_gnu=no
6096fi
6097
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6100
6101fi
6102{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6103echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6104GXX=`test $ac_compiler_gnu = yes && echo yes`
6105ac_test_CXXFLAGS=${CXXFLAGS+set}
6106ac_save_CXXFLAGS=$CXXFLAGS
6107{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6108echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6109if test "${ac_cv_prog_cxx_g+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6113 ac_cxx_werror_flag=yes
6114 ac_cv_prog_cxx_g=no
6115 CXXFLAGS="-g"
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122
6123int
6124main ()
6125{
6126
6127 ;
6128 return 0;
6129}
6130_ACEOF
6131rm -f conftest.$ac_objext
6132if { (ac_try="$ac_compile"
6133case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136esac
6137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_try") 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006165 ac_cv_prog_cxx_g=yes
6166else
6167 echo "$as_me: failed program was:" >&5
6168sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 CXXFLAGS=""
6171 cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
6177
6178int
6179main ()
6180{
6181
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext
6187if { (ac_try="$ac_compile"
6188case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191esac
6192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6194 ac_status=$?
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6201 { (case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204esac
6205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_try") 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_try") 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006220 :
6221else
6222 echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6226 CXXFLAGS="-g"
6227 cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
6233
6234int
6235main ()
6236{
6237
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006276 ac_cv_prog_cxx_g=yes
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285fi
6286
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288fi
6289
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6292fi
6293{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6294echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6295if test "$ac_test_CXXFLAGS" = set; then
6296 CXXFLAGS=$ac_save_CXXFLAGS
6297elif test $ac_cv_prog_cxx_g = yes; then
6298 if test "$GXX" = yes; then
6299 CXXFLAGS="-g -O2"
6300 else
6301 CXXFLAGS="-g"
6302 fi
6303else
6304 if test "$GXX" = yes; then
6305 CXXFLAGS="-O2"
6306 else
6307 CXXFLAGS=
6308 fi
6309fi
6310ac_ext=c
6311ac_cpp='$CPP $CPPFLAGS'
6312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315
6316{ echo "$as_me:$LINENO: checking " >&5
6317echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318if test "${ac_cv_has_flex+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 for ac_prog in flex lex
6322do
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324set dummy $ac_prog; ac_word=$2
6325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327if test "${ac_cv_prog_LEX+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330 if test -n "$LEX"; then
6331 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006339 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 +00006340 ac_cv_prog_LEX="$ac_prog"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344done
6345done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350LEX=$ac_cv_prog_LEX
6351if test -n "$LEX"; then
6352 { echo "$as_me:$LINENO: result: $LEX" >&5
6353echo "${ECHO_T}$LEX" >&6; }
6354else
6355 { echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6; }
6357fi
6358
6359
6360 test -n "$LEX" && break
6361done
6362test -n "$LEX" || LEX=":"
6363
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006364if test -z "$LEXLIB"
6365then
6366 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6367echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6368if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371 ac_check_lib_save_LIBS=$LIBS
6372LIBS="-lfl $LIBS"
6373cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379
6380/* Override any GCC internal prototype to avoid an error.
6381 Use char because int might match the return type of a GCC
6382 builtin and then its argument prototype would still apply. */
6383#ifdef __cplusplus
6384extern "C"
Torok Edwincc499a42008-10-22 09:56:27 +00006385#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006386char yywrap ();
Torok Edwincc499a42008-10-22 09:56:27 +00006387int
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006388main ()
Torok Edwincc499a42008-10-22 09:56:27 +00006389{
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006390return yywrap ();
6391 ;
6392 return 0;
Torok Edwincc499a42008-10-22 09:56:27 +00006393}
Tanya Lattnercf067672008-01-17 05:57:22 +00006394_ACEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006395rm -f conftest.$ac_objext conftest$ac_exeext
6396if { (ac_try="$ac_link"
6397case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_lib_fl_yywrap=yes
6430else
6431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_lib_fl_yywrap=no
6435fi
6436
6437rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439LIBS=$ac_check_lib_save_LIBS
6440fi
6441{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6442echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6443if test $ac_cv_lib_fl_yywrap = yes; then
6444 LEXLIB="-lfl"
6445else
6446 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6447echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6448if test "${ac_cv_lib_l_yywrap+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 ac_check_lib_save_LIBS=$LIBS
6452LIBS="-ll $LIBS"
6453cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459
6460/* Override any GCC internal prototype to avoid an error.
6461 Use char because int might match the return type of a GCC
6462 builtin and then its argument prototype would still apply. */
6463#ifdef __cplusplus
6464extern "C"
6465#endif
6466char yywrap ();
6467int
6468main ()
6469{
6470return yywrap ();
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475rm -f conftest.$ac_objext conftest$ac_exeext
6476if { (ac_try="$ac_link"
6477case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_link") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490 { (case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_try") 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest$ac_exeext'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_lib_l_yywrap=yes
6510else
6511 echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 ac_cv_lib_l_yywrap=no
6515fi
6516
6517rm -f core conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519LIBS=$ac_check_lib_save_LIBS
6520fi
6521{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6522echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6523if test $ac_cv_lib_l_yywrap = yes; then
6524 LEXLIB="-ll"
6525fi
6526
6527fi
6528
6529fi
6530
6531if test "x$LEX" != "x:"; then
6532 { echo "$as_me:$LINENO: checking lex output file root" >&5
6533echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6534if test "${ac_cv_prog_lex_root+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537 # The minimal lex program is just a single line: %%. But some broken lexes
6538# (Solaris, I think it was) want two %% lines, so accommodate them.
6539cat >conftest.l <<_ACEOF
6540%%
6541%%
6542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006543{ (ac_try="$LEX conftest.l"
6544case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547esac
6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$LEX conftest.l") 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }
6553if test -f lex.yy.c; then
6554 ac_cv_prog_lex_root=lex.yy
6555elif test -f lexyy.c; then
6556 ac_cv_prog_lex_root=lexyy
6557else
6558 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6559echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6560 { (exit 1); exit 1; }; }
6561fi
6562fi
6563{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6564echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006565rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006566LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6567
Torok Edwincc499a42008-10-22 09:56:27 +00006568{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6569echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6570if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 # POSIX says lex can declare yytext either as a pointer or an array; the
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006574# default is implementation-dependent. Figure out which it is, since
Torok Edwincc499a42008-10-22 09:56:27 +00006575# not all implementations provide the %pointer and %array declarations.
6576ac_cv_prog_lex_yytext_pointer=no
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006577echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Torok Edwincc499a42008-10-22 09:56:27 +00006578ac_save_LIBS=$LIBS
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006579LIBS="$LIBS $LEXLIB"
Torok Edwincc499a42008-10-22 09:56:27 +00006580cat >conftest.$ac_ext <<_ACEOF
Torok Edwincc499a42008-10-22 09:56:27 +00006581`cat $LEX_OUTPUT_ROOT.c`
6582_ACEOF
6583rm -f conftest.$ac_objext conftest$ac_exeext
6584if { (ac_try="$ac_link"
6585case "(($ac_try" in
Tanya Lattnercf067672008-01-17 05:57:22 +00006586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588esac
6589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Torok Edwincc499a42008-10-22 09:56:27 +00006590 (eval "$ac_link") 2>conftest.er1
Tanya Lattnercf067672008-01-17 05:57:22 +00006591 ac_status=$?
Torok Edwincc499a42008-10-22 09:56:27 +00006592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_try") 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006617 ac_cv_prog_lex_yytext_pointer=yes
6618else
6619 echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622
6623fi
6624
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006625rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006626 conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_save_LIBS
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006628rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006629
6630fi
6631{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6632echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6633if test $ac_cv_prog_lex_yytext_pointer = yes; then
6634
6635cat >>confdefs.h <<\_ACEOF
6636#define YYTEXT_POINTER 1
6637_ACEOF
6638
6639fi
6640
6641fi
6642
6643fi
6644{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6645echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6646if test "$LEX" != "flex"; then
6647 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6648echo "$as_me: error: flex not found but required" >&2;}
6649 { (exit 1); exit 1; }; }
6650else
6651 FLEX=flex
6652
6653fi
6654
6655{ echo "$as_me:$LINENO: checking " >&5
6656echo $ECHO_N "checking ... $ECHO_C" >&6; }
6657if test "${llvm_cv_has_bison+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 for ac_prog in 'bison -y' byacc
6661do
6662 # Extract the first word of "$ac_prog", so it can be a program name with args.
6663set dummy $ac_prog; ac_word=$2
6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666if test "${ac_cv_prog_YACC+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669 if test -n "$YACC"; then
6670 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006678 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 +00006679 ac_cv_prog_YACC="$ac_prog"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689YACC=$ac_cv_prog_YACC
6690if test -n "$YACC"; then
6691 { echo "$as_me:$LINENO: result: $YACC" >&5
6692echo "${ECHO_T}$YACC" >&6; }
6693else
6694 { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698
6699 test -n "$YACC" && break
6700done
6701test -n "$YACC" || YACC="yacc"
6702
6703fi
6704{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6705echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6706if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006707
6708 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6709echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006710else
6711 BISON=bison
6712
6713fi
6714
6715{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6716echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6717if test "${lt_cv_path_NM+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720 if test -n "$NM"; then
6721 # Let the user override the test.
6722 lt_cv_path_NM="$NM"
6723else
6724 lt_nm_to_check="${ac_tool_prefix}nm"
6725 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6726 lt_nm_to_check="$lt_nm_to_check nm"
6727 fi
6728 for lt_tmp_nm in $lt_nm_to_check; do
6729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6730 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6731 IFS="$lt_save_ifs"
6732 test -z "$ac_dir" && ac_dir=.
6733 tmp_nm="$ac_dir/$lt_tmp_nm"
6734 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6735 # Check to see if the nm accepts a BSD-compat flag.
6736 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6737 # nm: unknown option "B" ignored
6738 # Tru64's nm complains that /dev/null is an invalid object file
6739 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6740 */dev/null* | *'Invalid file or object type'*)
6741 lt_cv_path_NM="$tmp_nm -B"
6742 break
6743 ;;
6744 *)
6745 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6746 */dev/null*)
6747 lt_cv_path_NM="$tmp_nm -p"
6748 break
6749 ;;
6750 *)
6751 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6752 continue # so that we can try to find one that supports BSD flags
6753 ;;
6754 esac
6755 ;;
6756 esac
6757 fi
6758 done
6759 IFS="$lt_save_ifs"
6760 done
6761 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6762fi
6763fi
6764{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6765echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6766NM="$lt_cv_path_NM"
6767
6768
6769
6770{ echo "$as_me:$LINENO: checking for GNU make" >&5
6771echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6772if test "${llvm_cv_gnu_make_command+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775 llvm_cv_gnu_make_command=''
6776 for a in "$MAKE" make gmake gnumake ; do
6777 if test -z "$a" ; then continue ; fi ;
6778 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6779 then
6780 llvm_cv_gnu_make_command=$a ;
6781 break;
6782 fi
6783 done
6784fi
6785{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6786echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6787 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6788 ifGNUmake='' ;
6789 else
6790 ifGNUmake='#' ;
6791 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6792echo "${ECHO_T}\"Not found\"" >&6; };
6793 fi
6794
6795
6796{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6797echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6798LN_S=$as_ln_s
6799if test "$LN_S" = "ln -s"; then
6800 { echo "$as_me:$LINENO: result: yes" >&5
6801echo "${ECHO_T}yes" >&6; }
6802else
6803 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6804echo "${ECHO_T}no, using $LN_S" >&6; }
6805fi
6806
6807# Extract the first word of "cmp", so it can be a program name with args.
6808set dummy cmp; ac_word=$2
6809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_CMP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 case $CMP in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006825 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 +00006826 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6835 ;;
6836esac
6837fi
6838CMP=$ac_cv_path_CMP
6839if test -n "$CMP"; then
6840 { echo "$as_me:$LINENO: result: $CMP" >&5
6841echo "${ECHO_T}$CMP" >&6; }
6842else
6843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
6845fi
6846
6847
6848# Extract the first word of "cp", so it can be a program name with args.
6849set dummy cp; ac_word=$2
6850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_path_CP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855 case $CP in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6858 ;;
6859 *)
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006866 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 +00006867 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872done
6873IFS=$as_save_IFS
6874
6875 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6876 ;;
6877esac
6878fi
6879CP=$ac_cv_path_CP
6880if test -n "$CP"; then
6881 { echo "$as_me:$LINENO: result: $CP" >&5
6882echo "${ECHO_T}$CP" >&6; }
6883else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
6886fi
6887
6888
6889# Extract the first word of "date", so it can be a program name with args.
6890set dummy date; ac_word=$2
6891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_DATE+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896 case $DATE in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006907 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 +00006908 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6917 ;;
6918esac
6919fi
6920DATE=$ac_cv_path_DATE
6921if test -n "$DATE"; then
6922 { echo "$as_me:$LINENO: result: $DATE" >&5
6923echo "${ECHO_T}$DATE" >&6; }
6924else
6925 { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
6927fi
6928
6929
6930# Extract the first word of "find", so it can be a program name with args.
6931set dummy find; ac_word=$2
6932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934if test "${ac_cv_path_FIND+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 case $FIND in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6940 ;;
6941 *)
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006948 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 +00006949 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954done
6955IFS=$as_save_IFS
6956
6957 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6958 ;;
6959esac
6960fi
6961FIND=$ac_cv_path_FIND
6962if test -n "$FIND"; then
6963 { echo "$as_me:$LINENO: result: $FIND" >&5
6964echo "${ECHO_T}$FIND" >&6; }
6965else
6966 { echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6; }
6968fi
6969
6970
6971# Extract the first word of "grep", so it can be a program name with args.
6972set dummy grep; ac_word=$2
6973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975if test "${ac_cv_path_GREP+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978 case $GREP in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6981 ;;
6982 *)
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006989 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 +00006990 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994done
6995done
6996IFS=$as_save_IFS
6997
6998 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6999 ;;
7000esac
7001fi
7002GREP=$ac_cv_path_GREP
7003if test -n "$GREP"; then
7004 { echo "$as_me:$LINENO: result: $GREP" >&5
7005echo "${ECHO_T}$GREP" >&6; }
7006else
7007 { echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6; }
7009fi
7010
7011
7012# Extract the first word of "mkdir", so it can be a program name with args.
7013set dummy mkdir; ac_word=$2
7014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_path_MKDIR+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 case $MKDIR in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7022 ;;
7023 *)
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007030 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 +00007031 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035done
7036done
7037IFS=$as_save_IFS
7038
7039 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7040 ;;
7041esac
7042fi
7043MKDIR=$ac_cv_path_MKDIR
7044if test -n "$MKDIR"; then
7045 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7046echo "${ECHO_T}$MKDIR" >&6; }
7047else
7048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
7050fi
7051
7052
7053# Extract the first word of "mv", so it can be a program name with args.
7054set dummy mv; ac_word=$2
7055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057if test "${ac_cv_path_MV+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060 case $MV in
7061 [\\/]* | ?:[\\/]*)
7062 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7063 ;;
7064 *)
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007071 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 +00007072 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7075 fi
7076done
7077done
7078IFS=$as_save_IFS
7079
7080 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7081 ;;
7082esac
7083fi
7084MV=$ac_cv_path_MV
7085if test -n "$MV"; then
7086 { echo "$as_me:$LINENO: result: $MV" >&5
7087echo "${ECHO_T}$MV" >&6; }
7088else
7089 { echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6; }
7091fi
7092
7093
7094if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099if test "${ac_cv_prog_RANLIB+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102 if test -n "$RANLIB"; then
7103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007111 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 +00007112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122RANLIB=$ac_cv_prog_RANLIB
7123if test -n "$RANLIB"; then
7124 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7125echo "${ECHO_T}$RANLIB" >&6; }
7126else
7127 { echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_RANLIB"; then
7134 ac_ct_RANLIB=$RANLIB
7135 # Extract the first word of "ranlib", so it can be a program name with args.
7136set dummy ranlib; ac_word=$2
7137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 if test -n "$ac_ct_RANLIB"; then
7143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007151 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 +00007152 ac_cv_prog_ac_ct_RANLIB="ranlib"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163if test -n "$ac_ct_RANLIB"; then
7164 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7165echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7166else
7167 { echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6; }
7169fi
7170
7171 if test "x$ac_ct_RANLIB" = x; then
7172 RANLIB=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177whose name does not start with the host triplet. If you think this
7178configuration is useful to you, please write to autoconf@gnu.org." >&5
7179echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180whose name does not start with the host triplet. If you think this
7181configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184 RANLIB=$ac_ct_RANLIB
7185 fi
7186else
7187 RANLIB="$ac_cv_prog_RANLIB"
7188fi
7189
7190# Extract the first word of "rm", so it can be a program name with args.
7191set dummy rm; ac_word=$2
7192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_path_RM+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 case $RM in
7198 [\\/]* | ?:[\\/]*)
7199 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7200 ;;
7201 *)
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007208 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 +00007209 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214done
7215IFS=$as_save_IFS
7216
7217 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7218 ;;
7219esac
7220fi
7221RM=$ac_cv_path_RM
7222if test -n "$RM"; then
7223 { echo "$as_me:$LINENO: result: $RM" >&5
7224echo "${ECHO_T}$RM" >&6; }
7225else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230
7231# Extract the first word of "sed", so it can be a program name with args.
7232set dummy sed; ac_word=$2
7233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235if test "${ac_cv_path_SED+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238 case $SED in
7239 [\\/]* | ?:[\\/]*)
7240 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7241 ;;
7242 *)
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007249 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 +00007250 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256IFS=$as_save_IFS
7257
7258 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7259 ;;
7260esac
7261fi
7262SED=$ac_cv_path_SED
7263if test -n "$SED"; then
7264 { echo "$as_me:$LINENO: result: $SED" >&5
7265echo "${ECHO_T}$SED" >&6; }
7266else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
7269fi
7270
7271
7272# Extract the first word of "tar", so it can be a program name with args.
7273set dummy tar; ac_word=$2
7274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276if test "${ac_cv_path_TAR+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279 case $TAR in
7280 [\\/]* | ?:[\\/]*)
7281 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7282 ;;
7283 *)
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285for as_dir in $PATH
7286do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007290 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 +00007291 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295done
7296done
7297IFS=$as_save_IFS
7298
7299 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7300 ;;
7301esac
7302fi
7303TAR=$ac_cv_path_TAR
7304if test -n "$TAR"; then
7305 { echo "$as_me:$LINENO: result: $TAR" >&5
7306echo "${ECHO_T}$TAR" >&6; }
7307else
7308 { echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6; }
7310fi
7311
7312
7313# Extract the first word of "pwd", so it can be a program name with args.
7314set dummy pwd; ac_word=$2
7315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317if test "${ac_cv_path_BINPWD+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 case $BINPWD in
7321 [\\/]* | ?:[\\/]*)
7322 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7323 ;;
7324 *)
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007331 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 +00007332 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337done
7338IFS=$as_save_IFS
7339
7340 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7341 ;;
7342esac
7343fi
7344BINPWD=$ac_cv_path_BINPWD
7345if test -n "$BINPWD"; then
7346 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7347echo "${ECHO_T}$BINPWD" >&6; }
7348else
7349 { echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6; }
7351fi
7352
7353
7354
7355# Extract the first word of "Graphviz", so it can be a program name with args.
7356set dummy Graphviz; ac_word=$2
7357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7359if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362 case $GRAPHVIZ in
7363 [\\/]* | ?:[\\/]*)
7364 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7365 ;;
7366 *)
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007373 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 +00007374 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379done
7380IFS=$as_save_IFS
7381
7382 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7383 ;;
7384esac
7385fi
7386GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7387if test -n "$GRAPHVIZ"; then
7388 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7389echo "${ECHO_T}$GRAPHVIZ" >&6; }
7390else
7391 { echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6; }
7393fi
7394
7395
7396if test "$GRAPHVIZ" != "echo Graphviz" ; then
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define HAVE_GRAPHVIZ 1
7400_ACEOF
7401
Jeff Cohen28783c32007-01-12 18:22:38 +00007402 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007403 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7404 fi
7405
7406cat >>confdefs.h <<_ACEOF
7407#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7408_ACEOF
7409
7410fi
7411# Extract the first word of "dot", so it can be a program name with args.
7412set dummy dot; ac_word=$2
7413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415if test "${ac_cv_path_DOT+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 case $DOT in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007429 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 +00007430 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435done
7436IFS=$as_save_IFS
7437
7438 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7439 ;;
7440esac
7441fi
7442DOT=$ac_cv_path_DOT
7443if test -n "$DOT"; then
7444 { echo "$as_me:$LINENO: result: $DOT" >&5
7445echo "${ECHO_T}$DOT" >&6; }
7446else
7447 { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
7449fi
7450
7451
7452if test "$DOT" != "echo dot" ; then
7453
7454cat >>confdefs.h <<\_ACEOF
7455#define HAVE_DOT 1
7456_ACEOF
7457
Jeff Cohen28783c32007-01-12 18:22:38 +00007458 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007459 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7460 fi
7461
7462cat >>confdefs.h <<_ACEOF
7463#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7464_ACEOF
7465
7466fi
7467for ac_prog in gv gsview32
7468do
7469 # Extract the first word of "$ac_prog", so it can be a program name with args.
7470set dummy $ac_prog; ac_word=$2
7471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473if test "${ac_cv_path_GV+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476 case $GV in
7477 [\\/]* | ?:[\\/]*)
7478 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7479 ;;
7480 *)
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007487 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 +00007488 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492done
7493done
7494IFS=$as_save_IFS
7495
7496 ;;
7497esac
7498fi
7499GV=$ac_cv_path_GV
7500if test -n "$GV"; then
7501 { echo "$as_me:$LINENO: result: $GV" >&5
7502echo "${ECHO_T}$GV" >&6; }
7503else
7504 { echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6; }
7506fi
7507
7508
7509 test -n "$GV" && break
7510done
7511test -n "$GV" || GV="echo gv"
7512
7513if test "$GV" != "echo gv" ; then
7514
7515cat >>confdefs.h <<\_ACEOF
7516#define HAVE_GV 1
7517_ACEOF
7518
Jeff Cohen28783c32007-01-12 18:22:38 +00007519 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007520 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7521 fi
7522
7523cat >>confdefs.h <<_ACEOF
7524#define LLVM_PATH_GV "$GV${EXEEXT}"
7525_ACEOF
7526
7527fi
7528# Extract the first word of "dotty", so it can be a program name with args.
7529set dummy dotty; ac_word=$2
7530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532if test "${ac_cv_path_DOTTY+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 case $DOTTY in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007546 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 +00007547 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551done
7552done
7553IFS=$as_save_IFS
7554
7555 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7556 ;;
7557esac
7558fi
7559DOTTY=$ac_cv_path_DOTTY
7560if test -n "$DOTTY"; then
7561 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7562echo "${ECHO_T}$DOTTY" >&6; }
7563else
7564 { echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6; }
7566fi
7567
7568
7569if test "$DOTTY" != "echo dotty" ; then
7570
7571cat >>confdefs.h <<\_ACEOF
7572#define HAVE_DOTTY 1
7573_ACEOF
7574
Jeff Cohen28783c32007-01-12 18:22:38 +00007575 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007576 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7577 fi
7578
7579cat >>confdefs.h <<_ACEOF
7580#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7581_ACEOF
7582
7583fi
7584
7585
7586# Extract the first word of "perl", so it can be a program name with args.
7587set dummy perl; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_PERL+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 case $PERL in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007604 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 +00007605 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7614 ;;
7615esac
7616fi
7617PERL=$ac_cv_path_PERL
7618if test -n "$PERL"; then
7619 { echo "$as_me:$LINENO: result: $PERL" >&5
7620echo "${ECHO_T}$PERL" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627if test "$PERL" != "none"; then
7628 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7629echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7630 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7631 { echo "$as_me:$LINENO: result: yes" >&5
7632echo "${ECHO_T}yes" >&6; }
7633 else
7634 PERL=none
7635 { echo "$as_me:$LINENO: result: not found" >&5
7636echo "${ECHO_T}not found" >&6; }
7637 fi
7638fi
7639
7640
7641if test x"$PERL" = xnone; then
7642 HAVE_PERL=0
7643
Reid Spencer59807fa2007-05-17 18:11:03 +00007644 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7645echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7646 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007647else
7648 HAVE_PERL=1
7649
7650fi
7651
7652# Find a good install program. We prefer a C program (faster),
7653# so one script is as good as another. But avoid the broken or
7654# incompatible versions:
7655# SysV /etc/install, /usr/sbin/install
7656# SunOS /usr/etc/install
7657# IRIX /sbin/install
7658# AIX /bin/install
7659# AmigaOS /C/install, which installs bootblocks on floppy discs
7660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7663# OS/2's system install, which has a completely different semantic
7664# ./install, which can be erroneously created by make from ./install.sh.
7665{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7667if test -z "$INSTALL"; then
7668if test "${ac_cv_path_install+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 # Account for people who put trailing slashes in PATH elements.
7677case $as_dir/ in
7678 ./ | .// | /cC/* | \
7679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7681 /usr/ucb/* ) ;;
7682 *)
7683 # OSF1 and SCO ODT 3.0 have their own names for install.
7684 # Don't use installbsd from OSF since it installs stuff as root
7685 # by default.
7686 for ac_prog in ginstall scoinst install; do
7687 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007688 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 +00007689 if test $ac_prog = install &&
7690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7691 # AIX install. It has an incompatible calling convention.
7692 :
7693 elif test $ac_prog = install &&
7694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7695 # program-specific install script used by HP pwplus--don't use.
7696 :
7697 else
7698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7699 break 3
7700 fi
7701 fi
7702 done
7703 done
7704 ;;
7705esac
7706done
7707IFS=$as_save_IFS
7708
7709
7710fi
7711 if test "${ac_cv_path_install+set}" = set; then
7712 INSTALL=$ac_cv_path_install
7713 else
7714 # As a last resort, use the slow shell script. Don't cache a
7715 # value for INSTALL within a source directory, because that will
7716 # break other packages using the cache if that directory is
7717 # removed, or if the value is a relative name.
7718 INSTALL=$ac_install_sh
7719 fi
7720fi
7721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7722echo "${ECHO_T}$INSTALL" >&6; }
7723
7724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7725# It thinks the first close brace ends the variable substitution.
7726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7727
7728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7729
7730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7731
7732
7733# Extract the first word of "bzip2", so it can be a program name with args.
7734set dummy bzip2; ac_word=$2
7735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7737if test "${ac_cv_path_BZIP2+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 case $BZIP2 in
7741 [\\/]* | ?:[\\/]*)
7742 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7743 ;;
7744 *)
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007751 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 +00007752 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756done
7757done
7758IFS=$as_save_IFS
7759
Reid Spencera773bd52006-08-04 18:18:08 +00007760 ;;
7761esac
7762fi
7763BZIP2=$ac_cv_path_BZIP2
7764if test -n "$BZIP2"; then
7765 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7766echo "${ECHO_T}$BZIP2" >&6; }
7767else
7768 { echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6; }
7770fi
7771
7772
7773# Extract the first word of "doxygen", so it can be a program name with args.
7774set dummy doxygen; ac_word=$2
7775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_DOXYGEN+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780 case $DOXYGEN in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7783 ;;
7784 *)
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007791 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 +00007792 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796done
7797done
7798IFS=$as_save_IFS
7799
Reid Spencera773bd52006-08-04 18:18:08 +00007800 ;;
7801esac
7802fi
7803DOXYGEN=$ac_cv_path_DOXYGEN
7804if test -n "$DOXYGEN"; then
7805 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7806echo "${ECHO_T}$DOXYGEN" >&6; }
7807else
7808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
7810fi
7811
7812
Reid Spencera773bd52006-08-04 18:18:08 +00007813# Extract the first word of "groff", so it can be a program name with args.
7814set dummy groff; ac_word=$2
7815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817if test "${ac_cv_path_GROFF+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820 case $GROFF in
7821 [\\/]* | ?:[\\/]*)
7822 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7823 ;;
7824 *)
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007831 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 +00007832 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836done
7837done
7838IFS=$as_save_IFS
7839
Reid Spencera773bd52006-08-04 18:18:08 +00007840 ;;
7841esac
7842fi
7843GROFF=$ac_cv_path_GROFF
7844if test -n "$GROFF"; then
7845 { echo "$as_me:$LINENO: result: $GROFF" >&5
7846echo "${ECHO_T}$GROFF" >&6; }
7847else
7848 { echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6; }
7850fi
7851
7852
7853# Extract the first word of "gzip", so it can be a program name with args.
7854set dummy gzip; ac_word=$2
7855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857if test "${ac_cv_path_GZIP+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860 case $GZIP in
7861 [\\/]* | ?:[\\/]*)
7862 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7863 ;;
7864 *)
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007871 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 +00007872 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876done
7877done
7878IFS=$as_save_IFS
7879
Reid Spencera773bd52006-08-04 18:18:08 +00007880 ;;
7881esac
7882fi
7883GZIP=$ac_cv_path_GZIP
7884if test -n "$GZIP"; then
7885 { echo "$as_me:$LINENO: result: $GZIP" >&5
7886echo "${ECHO_T}$GZIP" >&6; }
7887else
7888 { echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6; }
7890fi
7891
7892
7893# Extract the first word of "pod2html", so it can be a program name with args.
7894set dummy pod2html; ac_word=$2
7895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897if test "${ac_cv_path_POD2HTML+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 case $POD2HTML in
7901 [\\/]* | ?:[\\/]*)
7902 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7903 ;;
7904 *)
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007911 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 +00007912 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916done
7917done
7918IFS=$as_save_IFS
7919
Reid Spencera773bd52006-08-04 18:18:08 +00007920 ;;
7921esac
7922fi
7923POD2HTML=$ac_cv_path_POD2HTML
7924if test -n "$POD2HTML"; then
7925 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7926echo "${ECHO_T}$POD2HTML" >&6; }
7927else
7928 { echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6; }
7930fi
7931
7932
7933# Extract the first word of "pod2man", so it can be a program name with args.
7934set dummy pod2man; ac_word=$2
7935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937if test "${ac_cv_path_POD2MAN+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940 case $POD2MAN in
7941 [\\/]* | ?:[\\/]*)
7942 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7943 ;;
7944 *)
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007951 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 +00007952 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956done
7957done
7958IFS=$as_save_IFS
7959
Reid Spencera773bd52006-08-04 18:18:08 +00007960 ;;
7961esac
7962fi
7963POD2MAN=$ac_cv_path_POD2MAN
7964if test -n "$POD2MAN"; then
7965 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7966echo "${ECHO_T}$POD2MAN" >&6; }
7967else
7968 { echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6; }
7970fi
7971
7972
7973# Extract the first word of "runtest", so it can be a program name with args.
7974set dummy runtest; ac_word=$2
7975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7977if test "${ac_cv_path_RUNTEST+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979else
7980 case $RUNTEST in
7981 [\\/]* | ?:[\\/]*)
7982 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7983 ;;
7984 *)
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007991 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 +00007992 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996done
7997done
7998IFS=$as_save_IFS
7999
Reid Spencera773bd52006-08-04 18:18:08 +00008000 ;;
8001esac
8002fi
8003RUNTEST=$ac_cv_path_RUNTEST
8004if test -n "$RUNTEST"; then
8005 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8006echo "${ECHO_T}$RUNTEST" >&6; }
8007else
8008 { echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6; }
8010fi
8011
8012
8013
8014no_itcl=true
8015{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8016echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8017
8018# Check whether --with-tclinclude was given.
8019if test "${with_tclinclude+set}" = set; then
8020 withval=$with_tclinclude; with_tclinclude=${withval}
8021else
8022 with_tclinclude=''
8023fi
8024
8025if test "${ac_cv_path_tclsh+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028
8029if test x"${with_tclinclude}" != x ; then
8030 if test -f ${with_tclinclude}/tclsh ; then
8031 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8032 elif test -f ${with_tclinclude}/src/tclsh ; then
8033 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8034 else
8035 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8036echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8037 { (exit 1); exit 1; }; }
8038 fi
8039fi
8040
8041if test x"${ac_cv_path_tclsh}" = x ; then
8042 { echo "$as_me:$LINENO: result: none" >&5
8043echo "${ECHO_T}none" >&6; }
8044 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
8045do
8046 # Extract the first word of "$ac_prog", so it can be a program name with args.
8047set dummy $ac_prog; ac_word=$2
8048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050if test "${ac_cv_path_TCLSH+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 case $TCLSH in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8056 ;;
8057 *)
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008064 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 +00008065 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069done
8070done
8071IFS=$as_save_IFS
8072
8073 ;;
8074esac
8075fi
8076TCLSH=$ac_cv_path_TCLSH
8077if test -n "$TCLSH"; then
8078 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8079echo "${ECHO_T}$TCLSH" >&6; }
8080else
8081 { echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6; }
8083fi
8084
8085
8086 test -n "$TCLSH" && break
8087done
8088
8089 if test x"${TCLSH}" = x ; then
8090 ac_cv_path_tclsh='';
8091 else
8092 ac_cv_path_tclsh="${TCLSH}";
8093 fi
8094else
8095 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8096echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8097 TCLSH="${ac_cv_path_tclsh}"
8098
8099fi
8100
8101fi
8102
8103# Extract the first word of "zip", so it can be a program name with args.
8104set dummy zip; ac_word=$2
8105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107if test "${ac_cv_path_ZIP+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110 case $ZIP in
8111 [\\/]* | ?:[\\/]*)
8112 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8113 ;;
8114 *)
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008121 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 +00008122 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127done
8128IFS=$as_save_IFS
8129
Reid Spencera773bd52006-08-04 18:18:08 +00008130 ;;
8131esac
8132fi
8133ZIP=$ac_cv_path_ZIP
8134if test -n "$ZIP"; then
8135 { echo "$as_me:$LINENO: result: $ZIP" >&5
8136echo "${ECHO_T}$ZIP" >&6; }
8137else
8138 { echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6; }
8140fi
8141
8142
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008143for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008144do
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149if test "${ac_cv_path_OCAMLC+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 case $OCAMLC in
8153 [\\/]* | ?:[\\/]*)
8154 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8155 ;;
8156 *)
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008163 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 +00008164 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168done
8169done
8170IFS=$as_save_IFS
8171
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008172 ;;
8173esac
8174fi
8175OCAMLC=$ac_cv_path_OCAMLC
8176if test -n "$OCAMLC"; then
8177 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8178echo "${ECHO_T}$OCAMLC" >&6; }
8179else
8180 { echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6; }
8182fi
8183
8184
Gordon Henriksene7072162008-03-07 18:20:01 +00008185 test -n "$OCAMLC" && break
8186done
8187
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008188for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008189do
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197 case $OCAMLOPT in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8200 ;;
8201 *)
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008208 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 +00008209 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213done
8214done
8215IFS=$as_save_IFS
8216
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008217 ;;
8218esac
8219fi
8220OCAMLOPT=$ac_cv_path_OCAMLOPT
8221if test -n "$OCAMLOPT"; then
8222 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8223echo "${ECHO_T}$OCAMLOPT" >&6; }
8224else
8225 { echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; }
8227fi
8228
8229
Gordon Henriksene7072162008-03-07 18:20:01 +00008230 test -n "$OCAMLOPT" && break
8231done
8232
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008233for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008234do
8235 # Extract the first word of "$ac_prog", so it can be a program name with args.
8236set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8239if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242 case $OCAMLDEP in
8243 [\\/]* | ?:[\\/]*)
8244 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8245 ;;
8246 *)
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008253 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 +00008254 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258done
8259done
8260IFS=$as_save_IFS
8261
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008262 ;;
8263esac
8264fi
8265OCAMLDEP=$ac_cv_path_OCAMLDEP
8266if test -n "$OCAMLDEP"; then
8267 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8268echo "${ECHO_T}$OCAMLDEP" >&6; }
8269else
8270 { echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6; }
8272fi
8273
8274
Gordon Henriksene7072162008-03-07 18:20:01 +00008275 test -n "$OCAMLDEP" && break
8276done
8277
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008278for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008279do
8280 # Extract the first word of "$ac_prog", so it can be a program name with args.
8281set dummy $ac_prog; ac_word=$2
8282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286else
8287 case $OCAMLDOC in
8288 [\\/]* | ?:[\\/]*)
8289 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8290 ;;
8291 *)
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008298 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 +00008299 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303done
8304done
8305IFS=$as_save_IFS
8306
8307 ;;
8308esac
8309fi
8310OCAMLDOC=$ac_cv_path_OCAMLDOC
8311if test -n "$OCAMLDOC"; then
8312 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8313echo "${ECHO_T}$OCAMLDOC" >&6; }
8314else
8315 { echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6; }
8317fi
8318
8319
8320 test -n "$OCAMLDOC" && break
8321done
8322
Torok Edwincc499a42008-10-22 09:56:27 +00008323for ac_prog in gas as
8324do
8325 # Extract the first word of "$ac_prog", so it can be a program name with args.
8326set dummy $ac_prog; ac_word=$2
8327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8329if test "${ac_cv_path_GAS+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332 case $GAS in
8333 [\\/]* | ?:[\\/]*)
8334 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8335 ;;
8336 *)
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008343 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 +00008344 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 break 2
8347 fi
8348done
8349done
8350IFS=$as_save_IFS
8351
8352 ;;
8353esac
8354fi
8355GAS=$ac_cv_path_GAS
8356if test -n "$GAS"; then
8357 { echo "$as_me:$LINENO: result: $GAS" >&5
8358echo "${ECHO_T}$GAS" >&6; }
8359else
8360 { echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6; }
8362fi
8363
8364
8365 test -n "$GAS" && break
8366done
8367
Reid Spencera773bd52006-08-04 18:18:08 +00008368
8369{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8370echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8371if test "${llvm_cv_link_use_r+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374 ac_ext=c
8375ac_cpp='$CPP $CPPFLAGS'
8376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380 oldcflags="$CFLAGS"
8381 CFLAGS="$CFLAGS -Wl,-R."
8382 cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h. */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h. */
8388
8389int
8390main ()
8391{
8392int main() { return 0; }
8393 ;
8394 return 0;
8395}
8396_ACEOF
8397rm -f conftest.$ac_objext conftest$ac_exeext
8398if { (ac_try="$ac_link"
8399case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402esac
8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_link") 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415esac
8416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008431 llvm_cv_link_use_r=yes
8432else
8433 echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 llvm_cv_link_use_r=no
8437fi
8438
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008439rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008440 conftest$ac_exeext conftest.$ac_ext
8441 CFLAGS="$oldcflags"
8442 ac_ext=c
8443ac_cpp='$CPP $CPPFLAGS'
8444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446ac_compiler_gnu=$ac_cv_c_compiler_gnu
8447
8448
8449fi
8450{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8451echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8452if test "$llvm_cv_link_use_r" = yes ; then
8453
8454cat >>confdefs.h <<\_ACEOF
8455#define HAVE_LINK_R 1
8456_ACEOF
8457
8458 fi
8459
8460
8461
8462
8463{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8464echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8465if test "${ac_cv_c_const+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467else
8468 cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474
8475int
8476main ()
8477{
8478/* FIXME: Include the comments suggested by Paul. */
8479#ifndef __cplusplus
8480 /* Ultrix mips cc rejects this. */
8481 typedef int charset[2];
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008482 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008483 /* SunOS 4.1.1 cc rejects this. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008484 char const *const *ccp;
8485 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008486 /* NEC SVR4.0.2 mips cc rejects this. */
8487 struct point {int x, y;};
8488 static struct point const zero = {0,0};
8489 /* AIX XL C 1.02.0.0 rejects this.
8490 It does not let you subtract one const X* pointer from another in
8491 an arm of an if-expression whose if-part is not a constant
8492 expression */
8493 const char *g = "string";
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008494 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008495 /* HPUX 7.0 cc rejects these. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008496 ++ccp;
8497 p = (char**) ccp;
8498 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008499 { /* SCO 3.2v4 cc rejects this. */
8500 char *t;
8501 char const *s = 0 ? (char *) 0 : (char const *) 0;
8502
8503 *t++ = 0;
8504 if (s) return 0;
8505 }
8506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8507 int x[] = {25, 17};
8508 const int *foo = &x[0];
8509 ++foo;
8510 }
8511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8512 typedef const int *iptr;
8513 iptr p = 0;
8514 ++p;
8515 }
8516 { /* AIX XL C 1.02.0.0 rejects this saying
8517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8518 struct s { int j; const int *ap[3]; };
8519 struct s *b; b->j = 5;
8520 }
8521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8522 const int foo = 10;
8523 if (!foo) return 0;
8524 }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008525 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008526#endif
8527
8528 ;
8529 return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext
8533if { (ac_try="$ac_compile"
8534case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_compile") 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550esac
8551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest.$ac_objext'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560esac
8561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008566 ac_cv_c_const=yes
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_c_const=no
8572fi
8573
8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575fi
8576{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8577echo "${ECHO_T}$ac_cv_c_const" >&6; }
8578if test $ac_cv_c_const = no; then
8579
8580cat >>confdefs.h <<\_ACEOF
8581#define const
8582_ACEOF
8583
8584fi
8585
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008586
8587
8588
8589
8590
8591ac_header_dirent=no
8592for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8593 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008594{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8595echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599 cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h. */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h. */
8605#include <sys/types.h>
8606#include <$ac_hdr>
8607
8608int
8609main ()
8610{
8611if ((DIR *) 0)
8612return 0;
8613 ;
8614 return 0;
8615}
8616_ACEOF
8617rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008618if { (ac_try="$ac_compile"
8619case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8622esac
8623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008625 ac_status=$?
8626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008630 (exit $ac_status); } &&
8631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8632 { (case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_try") 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645esac
8646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_try") 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008651 eval "$as_ac_Header=yes"
8652else
8653 echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
Reid Spencera773bd52006-08-04 18:18:08 +00008656 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008657fi
Reid Spencera773bd52006-08-04 18:18:08 +00008658
8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008660fi
Reid Spencera773bd52006-08-04 18:18:08 +00008661ac_res=`eval echo '${'$as_ac_Header'}'`
8662 { echo "$as_me:$LINENO: result: $ac_res" >&5
8663echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008664if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665 cat >>confdefs.h <<_ACEOF
8666#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8667_ACEOF
8668
8669ac_header_dirent=$ac_hdr; break
8670fi
8671
8672done
8673# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8674if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008675 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8676echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008677if test "${ac_cv_search_opendir+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008681cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h. */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h. */
8687
Reid Spencera773bd52006-08-04 18:18:08 +00008688/* Override any GCC internal prototype to avoid an error.
8689 Use char because int might match the return type of a GCC
8690 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008691#ifdef __cplusplus
8692extern "C"
8693#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008694char opendir ();
8695int
8696main ()
8697{
Reid Spencera773bd52006-08-04 18:18:08 +00008698return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699 ;
8700 return 0;
8701}
8702_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008703for ac_lib in '' dir; do
8704 if test -z "$ac_lib"; then
8705 ac_res="none required"
8706 else
8707 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008709 fi
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711if { (ac_try="$ac_link"
8712case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715esac
8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725 { (case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_try") 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008744 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008745else
8746 echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008749
8750fi
8751
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008752rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008753 conftest$ac_exeext
8754 if test "${ac_cv_search_opendir+set}" = set; then
8755 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008756fi
John Criswell7a73b802003-06-30 21:59:07 +00008757done
Reid Spencera773bd52006-08-04 18:18:08 +00008758if test "${ac_cv_search_opendir+set}" = set; then
8759 :
8760else
8761 ac_cv_search_opendir=no
8762fi
8763rm conftest.$ac_ext
8764LIBS=$ac_func_search_save_LIBS
8765fi
8766{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8767echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8768ac_res=$ac_cv_search_opendir
8769if test "$ac_res" != no; then
8770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008771
Reid Spencera773bd52006-08-04 18:18:08 +00008772fi
8773
8774else
8775 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8776echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8777if test "${ac_cv_search_opendir+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
8780 ac_func_search_save_LIBS=$LIBS
8781cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h. */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h. */
8787
8788/* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791#ifdef __cplusplus
8792extern "C"
8793#endif
8794char opendir ();
8795int
8796main ()
8797{
8798return opendir ();
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803for ac_lib in '' x; do
8804 if test -z "$ac_lib"; then
8805 ac_res="none required"
8806 else
8807 ac_res=-l$ac_lib
8808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8809 fi
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811if { (ac_try="$ac_link"
8812case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815esac
8816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_link") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828esac
8829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_try") 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest$ac_exeext'
8835 { (case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838esac
8839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_try") 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008844 ac_cv_search_opendir=$ac_res
8845else
8846 echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849
8850fi
8851
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008852rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008853 conftest$ac_exeext
8854 if test "${ac_cv_search_opendir+set}" = set; then
8855 break
8856fi
8857done
8858if test "${ac_cv_search_opendir+set}" = set; then
8859 :
8860else
8861 ac_cv_search_opendir=no
8862fi
8863rm conftest.$ac_ext
8864LIBS=$ac_func_search_save_LIBS
8865fi
8866{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8867echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8868ac_res=$ac_cv_search_opendir
8869if test "$ac_res" != no; then
8870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8871
8872fi
8873
8874fi
John Criswell7a73b802003-06-30 21:59:07 +00008875
8876
8877for ac_header in dlfcn.h
8878do
8879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008884 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +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; }
John Criswell7a73b802003-06-30 21:59:07 +00008889else
Brian Gaeke0a621332004-09-08 20:38:05 +00008890 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008891{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008893cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008899$ac_includes_default
8900#include <$ac_header>
8901_ACEOF
8902rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008903if { (ac_try="$ac_compile"
8904case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907esac
8908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008910 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8917 { (case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920esac
8921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_try") 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; } &&
8926 { ac_try='test -s conftest.$ac_objext'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930esac
8931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008936 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008937else
8938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008939sed 's/^/| /' conftest.$ac_ext >&5
8940
Reid Spencera773bd52006-08-04 18:18:08 +00008941 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008942fi
Reid Spencera773bd52006-08-04 18:18:08 +00008943
8944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008947
8948# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008949{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008951cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957#include <$ac_header>
8958_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008959if { (ac_try="$ac_cpp conftest.$ac_ext"
8960case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008971 (exit $ac_status); } >/dev/null; then
8972 if test -s conftest.err; then
8973 ac_cpp_err=$ac_c_preproc_warn_flag
8974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8975 else
8976 ac_cpp_err=
8977 fi
8978else
8979 ac_cpp_err=yes
8980fi
8981if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008982 ac_header_preproc=yes
8983else
8984 echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_header_preproc=no
8988fi
Reid Spencera773bd52006-08-04 18:18:08 +00008989
Brian Gaeke0a621332004-09-08 20:38:05 +00008990rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008991{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008993
8994# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8996 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9001 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009002 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009003 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9007echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9011echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009016 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009017## ----------------------------------- ##
9018## Report this to llvmbugs@cs.uiuc.edu ##
9019## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009020_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009021 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009022 ;;
9023esac
Reid Spencera773bd52006-08-04 18:18:08 +00009024{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009029 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009030fi
Reid Spencera773bd52006-08-04 18:18:08 +00009031ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009034
9035fi
John Criswell7a73b802003-06-30 21:59:07 +00009036if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037 cat >>confdefs.h <<_ACEOF
9038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039_ACEOF
9040
9041fi
9042
9043done
9044
Reid Spencera773bd52006-08-04 18:18:08 +00009045# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009046if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009047 enableval=$enable_ltdl_install;
9048fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009049
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009050
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009051
9052
9053if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009054 INSTALL_LTDL_TRUE=
9055 INSTALL_LTDL_FALSE='#'
9056else
9057 INSTALL_LTDL_TRUE='#'
9058 INSTALL_LTDL_FALSE=
9059fi
9060
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009061
9062
9063if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009064 CONVENIENCE_LTDL_TRUE=
9065 CONVENIENCE_LTDL_FALSE='#'
9066else
9067 CONVENIENCE_LTDL_TRUE='#'
9068 CONVENIENCE_LTDL_FALSE=
9069fi
9070
9071
Reid Spencera773bd52006-08-04 18:18:08 +00009072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009074library_names_spec=
9075libname_spec='lib$name'
9076soname_spec=
9077shrext_cmds=".so"
9078postinstall_cmds=
9079postuninstall_cmds=
9080finish_cmds=
9081finish_eval=
9082shlibpath_var=
9083shlibpath_overrides_runpath=unknown
9084version_type=none
9085dynamic_linker="$host_os ld.so"
9086sys_lib_dlsearch_path_spec="/lib /usr/lib"
9087if test "$GCC" = yes; then
9088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9090 # if the path contains ";" then we assume it to be the separator
9091 # otherwise default to the standard path separator (i.e. ":") - it is
9092 # assumed that no part of a normal pathname contains ";" but that should
9093 # okay in the real world where ";" in dirpaths is itself problematic.
9094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9095 else
9096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9097 fi
9098else
9099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100fi
9101need_lib_prefix=unknown
9102hardcode_into_libs=no
9103
9104# when you set need_version to no, make sure it does not cause -set_version
9105# flags to be left without arguments
9106need_version=unknown
9107
9108case $host_os in
9109aix3*)
9110 version_type=linux
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9112 shlibpath_var=LIBPATH
9113
9114 # AIX 3 has no versioning support, so we append a major version to the name.
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 ;;
9117
9118aix4* | aix5*)
9119 version_type=linux
9120 need_lib_prefix=no
9121 need_version=no
9122 hardcode_into_libs=yes
9123 if test "$host_cpu" = ia64; then
9124 # AIX 5 supports IA64
9125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 else
9128 # With GCC up to 2.95.x, collect2 would create an import file
9129 # for dependence libraries. The import file would start with
9130 # the line `#! .'. This would cause the generated library to
9131 # depend on `.', always an invalid library. This was fixed in
9132 # development snapshots of GCC prior to 3.0.
9133 case $host_os in
9134 aix4 | aix4.[01] | aix4.[01].*)
9135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136 echo ' yes '
9137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9138 :
9139 else
9140 can_build_shared=no
9141 fi
9142 ;;
9143 esac
9144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9145 # soname into executable. Probably we can add versioning support to
9146 # collect2, so additional links can be useful in future.
9147 if test "$aix_use_runtimelinking" = yes; then
9148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9149 # instead of lib<name>.a to let people know that these are not
9150 # typical AIX shared libraries.
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 else
9153 # We preserve .a as extension for shared libraries through AIX4.2
9154 # and later when we are not doing run time linking.
9155 library_names_spec='${libname}${release}.a $libname.a'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 fi
9158 shlibpath_var=LIBPATH
9159 fi
9160 ;;
9161
9162amigaos*)
9163 library_names_spec='$libname.ixlibrary $libname.a'
9164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9165 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'
9166 ;;
9167
9168beos*)
9169 library_names_spec='${libname}${shared_ext}'
9170 dynamic_linker="$host_os ld.so"
9171 shlibpath_var=LIBRARY_PATH
9172 ;;
9173
9174bsdi[45]*)
9175 version_type=linux
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9183 # the default ld.so.conf also contains /usr/contrib/lib and
9184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9185 # libtool to hard-code these into programs
9186 ;;
9187
9188cygwin* | mingw* | pw32*)
9189 version_type=windows
9190 shrext_cmds=".dll"
9191 need_version=no
9192 need_lib_prefix=no
9193
9194 case $GCC,$host_os in
9195 yes,cygwin* | yes,mingw* | yes,pw32*)
9196 library_names_spec='$libname.dll.a'
9197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9198 postinstall_cmds='base_file=`basename \${file}`~
9199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9200 dldir=$destdir/`dirname \$dlpath`~
9201 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009202 $install_prog $dir/$dlname \$dldir/$dlname~
9203 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9205 dlpath=$dir/\$dldll~
9206 $rm \$dlpath'
9207 shlibpath_overrides_runpath=yes
9208
9209 case $host_os in
9210 cygwin*)
9211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9214 ;;
9215 mingw*)
9216 # MinGW DLLs use traditional 'lib' prefix
9217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9220 # It is most probably a Windows format PATH printed by
9221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9222 # path with ; separators, and with drive letters. We can handle the
9223 # drive letters (cygwin fileutils understands them), so leave them,
9224 # especially as we might pass files found there to a mingw objdump,
9225 # which wouldn't understand a cygwinified path. Ahh.
9226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227 else
9228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9229 fi
9230 ;;
9231 pw32*)
9232 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009233 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 +00009234 ;;
9235 esac
9236 ;;
9237
9238 *)
9239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9240 ;;
9241 esac
9242 dynamic_linker='Win32 ld.exe'
9243 # FIXME: first we should search . and the directory the executable is in
9244 shlibpath_var=PATH
9245 ;;
9246
9247darwin* | rhapsody*)
9248 dynamic_linker="$host_os dyld"
9249 version_type=darwin
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9253 soname_spec='${libname}${release}${major}$shared_ext'
9254 shlibpath_overrides_runpath=yes
9255 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009256 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9258 if test "$GCC" = yes; then
9259 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"`
9260 else
9261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9262 fi
9263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9264 ;;
9265
9266dgux*)
9267 version_type=linux
9268 need_lib_prefix=no
9269 need_version=no
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 ;;
9274
9275freebsd1*)
9276 dynamic_linker=no
9277 ;;
9278
9279kfreebsd*-gnu)
9280 version_type=linux
9281 need_lib_prefix=no
9282 need_version=no
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 dynamic_linker='GNU ld.so'
9289 ;;
9290
Reid Spencera773bd52006-08-04 18:18:08 +00009291freebsd* | dragonfly*)
9292 # DragonFly does not have aout. When/if they implement a new
9293 # versioning mechanism, adjust this.
9294 if test -x /usr/bin/objformat; then
9295 objformat=`/usr/bin/objformat`
9296 else
9297 case $host_os in
9298 freebsd[123]*) objformat=aout ;;
9299 *) objformat=elf ;;
9300 esac
9301 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302 version_type=freebsd-$objformat
9303 case $version_type in
9304 freebsd-elf*)
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306 need_version=no
9307 need_lib_prefix=no
9308 ;;
9309 freebsd-*)
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9311 need_version=yes
9312 ;;
9313 esac
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_os in
9316 freebsd2*)
9317 shlibpath_overrides_runpath=yes
9318 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009319 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320 shlibpath_overrides_runpath=yes
9321 hardcode_into_libs=yes
9322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325 shlibpath_overrides_runpath=no
9326 hardcode_into_libs=yes
9327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009328 freebsd*) # from 4.6 on
9329 shlibpath_overrides_runpath=yes
9330 hardcode_into_libs=yes
9331 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332 esac
9333 ;;
9334
9335gnu*)
9336 version_type=linux
9337 need_lib_prefix=no
9338 need_version=no
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 hardcode_into_libs=yes
9343 ;;
9344
9345hpux9* | hpux10* | hpux11*)
9346 # Give a soname corresponding to the major version so that dld.sl refuses to
9347 # link against other versions.
9348 version_type=sunos
9349 need_lib_prefix=no
9350 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009351 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009352 ia64*)
9353 shrext_cmds='.so'
9354 hardcode_into_libs=yes
9355 dynamic_linker="$host_os dld.so"
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 if test "X$HPUX_IA64_MODE" = X32; then
9361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9362 else
9363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9364 fi
9365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366 ;;
9367 hppa*64*)
9368 shrext_cmds='.sl'
9369 hardcode_into_libs=yes
9370 dynamic_linker="$host_os dld.sl"
9371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377 ;;
9378 *)
9379 shrext_cmds='.sl'
9380 dynamic_linker="$host_os dld.sl"
9381 shlibpath_var=SHLIB_PATH
9382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 ;;
9386 esac
9387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9388 postinstall_cmds='chmod 555 $lib'
9389 ;;
9390
Reid Spencera773bd52006-08-04 18:18:08 +00009391interix3*)
9392 version_type=linux
9393 need_lib_prefix=no
9394 need_version=no
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 shlibpath_overrides_runpath=no
9400 hardcode_into_libs=yes
9401 ;;
9402
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403irix5* | irix6* | nonstopux*)
9404 case $host_os in
9405 nonstopux*) version_type=nonstopux ;;
9406 *)
9407 if test "$lt_cv_prog_gnu_ld" = yes; then
9408 version_type=linux
9409 else
9410 version_type=irix
9411 fi ;;
9412 esac
9413 need_lib_prefix=no
9414 need_version=no
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9417 case $host_os in
9418 irix5* | nonstopux*)
9419 libsuff= shlibsuff=
9420 ;;
9421 *)
9422 case $LD in # libtool.m4 will add one of these switches to LD
9423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9424 libsuff= shlibsuff= libmagic=32-bit;;
9425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9426 libsuff=32 shlibsuff=N32 libmagic=N32;;
9427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9429 *) libsuff= shlibsuff= libmagic=never-match;;
9430 esac
9431 ;;
9432 esac
9433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9434 shlibpath_overrides_runpath=no
9435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9437 hardcode_into_libs=yes
9438 ;;
9439
9440# No shared lib support for Linux oldld, aout, or coff.
9441linux*oldld* | linux*aout* | linux*coff*)
9442 dynamic_linker=no
9443 ;;
9444
9445# This must be Linux ELF.
9446linux*)
9447 version_type=linux
9448 need_lib_prefix=no
9449 need_version=no
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=no
9455 # This implies no fast_install, which is unacceptable.
9456 # Some rework will be needed to allow for fast_install
9457 # before this can be enabled.
9458 hardcode_into_libs=yes
9459
9460 # Append ld.so.conf contents to the search path
9461 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009462 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 +00009463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9464 fi
9465
9466 # We used to test for /lib/ld.so.1 and disable shared libraries on
9467 # powerpc, because MkLinux only supported shared libraries with the
9468 # GNU dynamic linker. Since this was broken with cross compilers,
9469 # most powerpc-linux boxes support dynamic linking these days and
9470 # people can always --disable-shared, the test was removed, and we
9471 # assume the GNU/Linux dynamic linker is in use.
9472 dynamic_linker='GNU/Linux ld.so'
9473 ;;
9474
9475knetbsd*-gnu)
9476 version_type=linux
9477 need_lib_prefix=no
9478 need_version=no
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 shlibpath_overrides_runpath=no
9483 hardcode_into_libs=yes
9484 dynamic_linker='GNU ld.so'
9485 ;;
9486
9487netbsd*)
9488 version_type=sunos
9489 need_lib_prefix=no
9490 need_version=no
9491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9494 dynamic_linker='NetBSD (a.out) ld.so'
9495 else
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 dynamic_linker='NetBSD ld.elf_so'
9499 fi
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9503 ;;
9504
9505newsos6)
9506 version_type=linux
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 shlibpath_overrides_runpath=yes
9510 ;;
9511
9512nto-qnx*)
9513 version_type=linux
9514 need_lib_prefix=no
9515 need_version=no
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 shlibpath_overrides_runpath=yes
9520 ;;
9521
9522openbsd*)
9523 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009524 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9527 case $host_os in
9528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9529 *) need_version=no ;;
9530 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535 case $host_os in
9536 openbsd2.[89] | openbsd2.[89].*)
9537 shlibpath_overrides_runpath=no
9538 ;;
9539 *)
9540 shlibpath_overrides_runpath=yes
9541 ;;
9542 esac
9543 else
9544 shlibpath_overrides_runpath=yes
9545 fi
9546 ;;
9547
9548os2*)
9549 libname_spec='$name'
9550 shrext_cmds=".dll"
9551 need_lib_prefix=no
9552 library_names_spec='$libname${shared_ext} $libname.a'
9553 dynamic_linker='OS/2 ld.exe'
9554 shlibpath_var=LIBPATH
9555 ;;
9556
9557osf3* | osf4* | osf5*)
9558 version_type=osf
9559 need_lib_prefix=no
9560 need_version=no
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9566 ;;
9567
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009568solaris*)
9569 version_type=linux
9570 need_lib_prefix=no
9571 need_version=no
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=yes
9576 hardcode_into_libs=yes
9577 # ldd complains unless libraries are executable
9578 postinstall_cmds='chmod +x $lib'
9579 ;;
9580
9581sunos4*)
9582 version_type=sunos
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=yes
9587 if test "$with_gnu_ld" = yes; then
9588 need_lib_prefix=no
9589 fi
9590 need_version=yes
9591 ;;
9592
Reid Spencera773bd52006-08-04 18:18:08 +00009593sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009594 version_type=linux
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 case $host_vendor in
9599 sni)
9600 shlibpath_overrides_runpath=no
9601 need_lib_prefix=no
9602 export_dynamic_flag_spec='${wl}-Blargedynsym'
9603 runpath_var=LD_RUN_PATH
9604 ;;
9605 siemens)
9606 need_lib_prefix=no
9607 ;;
9608 motorola)
9609 need_lib_prefix=no
9610 need_version=no
9611 shlibpath_overrides_runpath=no
9612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9613 ;;
9614 esac
9615 ;;
9616
9617sysv4*MP*)
9618 if test -d /usr/nec ;then
9619 version_type=linux
9620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9621 soname_spec='$libname${shared_ext}.$major'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 fi
9624 ;;
9625
Reid Spencera773bd52006-08-04 18:18:08 +00009626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9627 version_type=freebsd-elf
9628 need_lib_prefix=no
9629 need_version=no
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 hardcode_into_libs=yes
9634 if test "$with_gnu_ld" = yes; then
9635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9636 shlibpath_overrides_runpath=no
9637 else
9638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9639 shlibpath_overrides_runpath=yes
9640 case $host_os in
9641 sco3.2v5*)
9642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9643 ;;
9644 esac
9645 fi
9646 sys_lib_dlsearch_path_spec='/usr/lib'
9647 ;;
9648
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649uts4*)
9650 version_type=linux
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 ;;
9655
9656*)
9657 dynamic_linker=no
9658 ;;
9659esac
Reid Spencera773bd52006-08-04 18:18:08 +00009660{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9661echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662test "$dynamic_linker" = no && can_build_shared=no
9663
Reid Spencera773bd52006-08-04 18:18:08 +00009664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9665if test "$GCC" = yes; then
9666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9667fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668
Reid Spencera773bd52006-08-04 18:18:08 +00009669
9670{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9671echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009672if test "${libltdl_cv_shlibext+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674else
9675
9676module=yes
9677eval libltdl_cv_shlibext=$shrext_cmds
9678
9679fi
Reid Spencera773bd52006-08-04 18:18:08 +00009680{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9681echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682if test -n "$libltdl_cv_shlibext"; then
9683
9684cat >>confdefs.h <<_ACEOF
9685#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9686_ACEOF
9687
9688fi
9689
9690
Reid Spencera773bd52006-08-04 18:18:08 +00009691{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9692echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693if test "${libltdl_cv_shlibpath_var+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696 libltdl_cv_shlibpath_var="$shlibpath_var"
9697fi
Reid Spencera773bd52006-08-04 18:18:08 +00009698{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9699echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700if test -n "$libltdl_cv_shlibpath_var"; then
9701
9702cat >>confdefs.h <<_ACEOF
9703#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9704_ACEOF
9705
9706fi
9707
9708
Reid Spencera773bd52006-08-04 18:18:08 +00009709{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9710echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711if test "${libltdl_cv_sys_search_path+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9715fi
Reid Spencera773bd52006-08-04 18:18:08 +00009716{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9717echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009718if test -n "$libltdl_cv_sys_search_path"; then
9719 sys_search_path=
9720 for dir in $libltdl_cv_sys_search_path; do
9721 if test -z "$sys_search_path"; then
9722 sys_search_path="$dir"
9723 else
9724 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9725 fi
9726 done
9727
9728cat >>confdefs.h <<_ACEOF
9729#define LTDL_SYSSEARCHPATH "$sys_search_path"
9730_ACEOF
9731
9732fi
9733
Reid Spencera773bd52006-08-04 18:18:08 +00009734{ echo "$as_me:$LINENO: checking for objdir" >&5
9735echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736if test "${libltdl_cv_objdir+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738else
9739 libltdl_cv_objdir="$objdir"
9740 if test -n "$objdir"; then
9741 :
9742 else
9743 rm -f .libs 2>/dev/null
9744 mkdir .libs 2>/dev/null
9745 if test -d .libs; then
9746 libltdl_cv_objdir=.libs
9747 else
9748 # MS-DOS does not allow filenames that begin with a dot.
9749 libltdl_cv_objdir=_libs
9750 fi
9751 rmdir .libs 2>/dev/null
9752 fi
9753
9754fi
Reid Spencera773bd52006-08-04 18:18:08 +00009755{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9756echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757
9758cat >>confdefs.h <<_ACEOF
9759#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9760_ACEOF
9761
9762
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763
9764
9765
9766
9767# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009768{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9769echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773
9774# These are sane defaults that work on at least a few old systems.
9775# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9776
9777# Character class describing NM global symbol codes.
9778symcode='[BCDEGRST]'
9779
9780# Regexp to match symbols that can be accessed directly from C.
9781sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9782
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783# Transform an extracted symbol line into a proper C declaration
9784lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9785
9786# Transform an extracted symbol line into symbol name and symbol address
9787lt_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'"
9788
9789# Define system-specific variables.
9790case $host_os in
9791aix*)
9792 symcode='[BCDT]'
9793 ;;
9794cygwin* | mingw* | pw32*)
9795 symcode='[ABCDGISTW]'
9796 ;;
9797hpux*) # Its linker distinguishes data from code symbols
9798 if test "$host_cpu" = ia64; then
9799 symcode='[ABCDEGRST]'
9800 fi
9801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9802 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'"
9803 ;;
9804linux*)
9805 if test "$host_cpu" = ia64; then
9806 symcode='[ABCDGIRSTW]'
9807 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9808 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'"
9809 fi
9810 ;;
9811irix* | nonstopux*)
9812 symcode='[BCDEGRST]'
9813 ;;
9814osf*)
9815 symcode='[BCDEGQRST]'
9816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009817solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818 symcode='[BDRT]'
9819 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009820sco3.2v5*)
9821 symcode='[DT]'
9822 ;;
9823sysv4.2uw2*)
9824 symcode='[DT]'
9825 ;;
9826sysv5* | sco5v6* | unixware* | OpenUNIX*)
9827 symcode='[ABDT]'
9828 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829sysv4)
9830 symcode='[DFNSTU]'
9831 ;;
9832esac
9833
9834# Handle CRLF in mingw tool chain
9835opt_cr=
9836case $build_os in
9837mingw*)
9838 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9839 ;;
9840esac
9841
9842# If we're using GNU nm, then use its standard symbol codes.
9843case `$NM -V 2>&1` in
9844*GNU* | *'with BFD'*)
9845 symcode='[ABCDGIRSTW]' ;;
9846esac
9847
9848# Try without a prefix undercore, then with it.
9849for ac_symprfx in "" "_"; do
9850
Reid Spencera773bd52006-08-04 18:18:08 +00009851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9852 symxfrm="\\1 $ac_symprfx\\2 \\2"
9853
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009855 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 +00009856
9857 # Check to see that the pipe works correctly.
9858 pipe_works=no
9859
9860 rm -f conftest*
9861 cat > conftest.$ac_ext <<EOF
9862#ifdef __cplusplus
9863extern "C" {
9864#endif
9865char nm_test_var;
9866void nm_test_func(){}
9867#ifdef __cplusplus
9868}
9869#endif
9870int main(){nm_test_var='a';nm_test_func();return(0);}
9871EOF
9872
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; then
9878 # Now try to grab the symbols.
9879 nlist=conftest.nm
9880 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9881 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } && test -s "$nlist"; then
9885 # Try sorting and uniquifying the output.
9886 if sort "$nlist" | uniq > "$nlist"T; then
9887 mv -f "$nlist"T "$nlist"
9888 else
9889 rm -f "$nlist"T
9890 fi
9891
9892 # Make sure that we snagged all the symbols we need.
9893 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9894 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9895 cat <<EOF > conftest.$ac_ext
9896#ifdef __cplusplus
9897extern "C" {
9898#endif
9899
9900EOF
9901 # Now generate the symbol file.
9902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9903
9904 cat <<EOF >> conftest.$ac_ext
9905#if defined (__STDC__) && __STDC__
9906# define lt_ptr_t void *
9907#else
9908# define lt_ptr_t char *
9909# define const
9910#endif
9911
9912/* The mapping between symbol names and symbols. */
9913const struct {
9914 const char *name;
9915 lt_ptr_t address;
9916}
9917lt_preloaded_symbols[] =
9918{
9919EOF
9920 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9921 cat <<\EOF >> conftest.$ac_ext
9922 {0, (lt_ptr_t) 0}
9923};
9924
9925#ifdef __cplusplus
9926}
9927#endif
9928EOF
9929 # Now try linking the two files.
9930 mv conftest.$ac_objext conftstm.$ac_objext
9931 lt_save_LIBS="$LIBS"
9932 lt_save_CFLAGS="$CFLAGS"
9933 LIBS="conftstm.$ac_objext"
9934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9940 pipe_works=yes
9941 fi
9942 LIBS="$lt_save_LIBS"
9943 CFLAGS="$lt_save_CFLAGS"
9944 else
9945 echo "cannot find nm_test_func in $nlist" >&5
9946 fi
9947 else
9948 echo "cannot find nm_test_var in $nlist" >&5
9949 fi
9950 else
9951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9952 fi
9953 else
9954 echo "$progname: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 fi
9957 rm -f conftest* conftst*
9958
9959 # Do not use the global_symbol_pipe unless it works.
9960 if test "$pipe_works" = yes; then
9961 break
9962 else
9963 lt_cv_sys_global_symbol_pipe=
9964 fi
9965done
9966
9967fi
9968
9969if test -z "$lt_cv_sys_global_symbol_pipe"; then
9970 lt_cv_sys_global_symbol_to_cdecl=
9971fi
9972if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009973 { echo "$as_me:$LINENO: result: failed" >&5
9974echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975else
Reid Spencera773bd52006-08-04 18:18:08 +00009976 { echo "$as_me:$LINENO: result: ok" >&5
9977echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978fi
9979
9980
Reid Spencera773bd52006-08-04 18:18:08 +00009981{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9982echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9987 libltdl_cv_preloaded_symbols=yes
9988 else
9989 libltdl_cv_preloaded_symbols=no
9990 fi
9991
9992fi
Reid Spencera773bd52006-08-04 18:18:08 +00009993{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9994echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_PRELOADED_SYMBOLS 1
9999_ACEOF
10000
10001fi
10002
10003LIBADD_DL=
10004
10005ac_ext=c
10006ac_cpp='$CPP $CPPFLAGS'
10007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10009ac_compiler_gnu=$ac_cv_c_compiler_gnu
10010
10011
Reid Spencera773bd52006-08-04 18:18:08 +000010012{ echo "$as_me:$LINENO: checking for shl_load" >&5
10013echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010014if test "${ac_cv_func_shl_load+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017 cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10025#define shl_load innocuous_shl_load
10026
10027/* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char shl_load (); below.
10029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030 <limits.h> exists even on freestanding compilers. */
10031
10032#ifdef __STDC__
10033# include <limits.h>
10034#else
10035# include <assert.h>
10036#endif
10037
10038#undef shl_load
10039
Reid Spencera773bd52006-08-04 18:18:08 +000010040/* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043#ifdef __cplusplus
10044extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010045#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046char shl_load ();
10047/* The GNU C library defines this for functions which it implements
10048 to always fail with ENOSYS. Some functions are actually named
10049 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010050#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052#endif
10053
10054int
10055main ()
10056{
Reid Spencera773bd52006-08-04 18:18:08 +000010057return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058 ;
10059 return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010063if { (ac_try="$ac_link"
10064case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096 ac_cv_func_shl_load=yes
10097else
10098 echo "$as_me: failed program was:" >&5
10099sed 's/^/| /' conftest.$ac_ext >&5
10100
Reid Spencera773bd52006-08-04 18:18:08 +000010101 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102fi
Reid Spencera773bd52006-08-04 18:18:08 +000010103
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010104rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 conftest$ac_exeext conftest.$ac_ext
10106fi
Reid Spencera773bd52006-08-04 18:18:08 +000010107{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10108echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109if test $ac_cv_func_shl_load = yes; then
10110
10111cat >>confdefs.h <<\_ACEOF
10112#define HAVE_SHL_LOAD 1
10113_ACEOF
10114
10115else
Reid Spencera773bd52006-08-04 18:18:08 +000010116 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10117echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121 ac_check_lib_save_LIBS=$LIBS
10122LIBS="-ldld $LIBS"
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129
Reid Spencera773bd52006-08-04 18:18:08 +000010130/* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133#ifdef __cplusplus
10134extern "C"
10135#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136char shl_load ();
10137int
10138main ()
10139{
Reid Spencera773bd52006-08-04 18:18:08 +000010140return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010146if { (ac_try="$ac_link"
10147case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150esac
10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179 ac_cv_lib_dld_shl_load=yes
10180else
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
Reid Spencera773bd52006-08-04 18:18:08 +000010184 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185fi
Reid Spencera773bd52006-08-04 18:18:08 +000010186
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010187rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188 conftest$ac_exeext conftest.$ac_ext
10189LIBS=$ac_check_lib_save_LIBS
10190fi
Reid Spencera773bd52006-08-04 18:18:08 +000010191{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10192echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193if test $ac_cv_lib_dld_shl_load = yes; then
10194
10195cat >>confdefs.h <<\_ACEOF
10196#define HAVE_SHL_LOAD 1
10197_ACEOF
10198
10199 LIBADD_DL="$LIBADD_DL -ldld"
10200else
Reid Spencera773bd52006-08-04 18:18:08 +000010201 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206 ac_check_lib_save_LIBS=$LIBS
10207LIBS="-ldl $LIBS"
10208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h. */
10214
Reid Spencera773bd52006-08-04 18:18:08 +000010215/* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218#ifdef __cplusplus
10219extern "C"
10220#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221char dlopen ();
10222int
10223main ()
10224{
Reid Spencera773bd52006-08-04 18:18:08 +000010225return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264 ac_cv_lib_dl_dlopen=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
Reid Spencera773bd52006-08-04 18:18:08 +000010269 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270fi
Reid Spencera773bd52006-08-04 18:18:08 +000010271
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010272rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273 conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
Reid Spencera773bd52006-08-04 18:18:08 +000010276{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278if test $ac_cv_lib_dl_dlopen = yes; then
10279
10280cat >>confdefs.h <<\_ACEOF
10281#define HAVE_LIBDL 1
10282_ACEOF
10283
10284 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10285else
10286 cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292#if HAVE_DLFCN_H
10293# include <dlfcn.h>
10294#endif
10295
10296int
10297main ()
10298{
10299dlopen(0, 0);
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010305if { (ac_try="$ac_link"
10306case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309esac
10310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322esac
10323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338
10339cat >>confdefs.h <<\_ACEOF
10340#define HAVE_LIBDL 1
10341_ACEOF
10342 libltdl_cv_func_dlopen="yes"
10343else
10344 echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
10346
Reid Spencera773bd52006-08-04 18:18:08 +000010347 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10348echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 ac_check_lib_save_LIBS=$LIBS
10353LIBS="-lsvld $LIBS"
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h. */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h. */
10360
Reid Spencera773bd52006-08-04 18:18:08 +000010361/* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364#ifdef __cplusplus
10365extern "C"
10366#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367char dlopen ();
10368int
10369main ()
10370{
Reid Spencera773bd52006-08-04 18:18:08 +000010371return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372 ;
10373 return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410 ac_cv_lib_svld_dlopen=yes
10411else
10412 echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
Reid Spencera773bd52006-08-04 18:18:08 +000010415 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416fi
Reid Spencera773bd52006-08-04 18:18:08 +000010417
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010418rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 conftest$ac_exeext conftest.$ac_ext
10420LIBS=$ac_check_lib_save_LIBS
10421fi
Reid Spencera773bd52006-08-04 18:18:08 +000010422{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10423echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424if test $ac_cv_lib_svld_dlopen = yes; then
10425
10426cat >>confdefs.h <<\_ACEOF
10427#define HAVE_LIBDL 1
10428_ACEOF
10429
10430 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10431else
Reid Spencera773bd52006-08-04 18:18:08 +000010432 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10433echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436else
10437 ac_check_lib_save_LIBS=$LIBS
10438LIBS="-ldld $LIBS"
10439cat >conftest.$ac_ext <<_ACEOF
10440/* confdefs.h. */
10441_ACEOF
10442cat confdefs.h >>conftest.$ac_ext
10443cat >>conftest.$ac_ext <<_ACEOF
10444/* end confdefs.h. */
10445
Reid Spencera773bd52006-08-04 18:18:08 +000010446/* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449#ifdef __cplusplus
10450extern "C"
10451#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452char dld_link ();
10453int
10454main ()
10455{
Reid Spencera773bd52006-08-04 18:18:08 +000010456return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457 ;
10458 return 0;
10459}
10460_ACEOF
10461rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010462if { (ac_try="$ac_link"
10463case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest$ac_exeext'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495 ac_cv_lib_dld_dld_link=yes
10496else
10497 echo "$as_me: failed program was:" >&5
10498sed 's/^/| /' conftest.$ac_ext >&5
10499
Reid Spencera773bd52006-08-04 18:18:08 +000010500 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501fi
Reid Spencera773bd52006-08-04 18:18:08 +000010502
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010503rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504 conftest$ac_exeext conftest.$ac_ext
10505LIBS=$ac_check_lib_save_LIBS
10506fi
Reid Spencera773bd52006-08-04 18:18:08 +000010507{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10508echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509if test $ac_cv_lib_dld_dld_link = yes; then
10510
10511cat >>confdefs.h <<\_ACEOF
10512#define HAVE_DLD 1
10513_ACEOF
10514
10515 LIBADD_DL="$LIBADD_DL -ldld"
10516else
Reid Spencera773bd52006-08-04 18:18:08 +000010517 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10518echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522 cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
10528/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10530#define _dyld_func_lookup innocuous__dyld_func_lookup
10531
10532/* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char _dyld_func_lookup (); below.
10534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535 <limits.h> exists even on freestanding compilers. */
10536
10537#ifdef __STDC__
10538# include <limits.h>
10539#else
10540# include <assert.h>
10541#endif
10542
10543#undef _dyld_func_lookup
10544
Reid Spencera773bd52006-08-04 18:18:08 +000010545/* Override any GCC internal prototype to avoid an error.
10546 Use char because int might match the return type of a GCC
10547 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548#ifdef __cplusplus
10549extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551char _dyld_func_lookup ();
10552/* The GNU C library defines this for functions which it implements
10553 to always fail with ENOSYS. Some functions are actually named
10554 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010555#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557#endif
10558
10559int
10560main ()
10561{
Reid Spencera773bd52006-08-04 18:18:08 +000010562return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563 ;
10564 return 0;
10565}
10566_ACEOF
10567rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010568if { (ac_try="$ac_link"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest$ac_exeext'
10592 { (case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595esac
10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_try") 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601 ac_cv_func__dyld_func_lookup=yes
10602else
10603 echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
Reid Spencera773bd52006-08-04 18:18:08 +000010606 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607fi
Reid Spencera773bd52006-08-04 18:18:08 +000010608
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010609rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010610 conftest$ac_exeext conftest.$ac_ext
10611fi
Reid Spencera773bd52006-08-04 18:18:08 +000010612{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10613echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614if test $ac_cv_func__dyld_func_lookup = yes; then
10615
10616cat >>confdefs.h <<\_ACEOF
10617#define HAVE_DYLD 1
10618_ACEOF
10619
10620fi
10621
10622
10623fi
10624
10625
10626fi
10627
10628
10629fi
Reid Spencera773bd52006-08-04 18:18:08 +000010630
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010631rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632 conftest$ac_exeext conftest.$ac_ext
10633
10634fi
10635
10636
10637fi
10638
10639
10640fi
10641
10642
10643if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10644then
10645 lt_save_LIBS="$LIBS"
10646 LIBS="$LIBS $LIBADD_DL"
10647
10648for ac_func in dlerror
10649do
10650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656 cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h. */
10662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10664#define $ac_func innocuous_$ac_func
10665
10666/* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
10670
10671#ifdef __STDC__
10672# include <limits.h>
10673#else
10674# include <assert.h>
10675#endif
10676
10677#undef $ac_func
10678
Reid Spencera773bd52006-08-04 18:18:08 +000010679/* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682#ifdef __cplusplus
10683extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685char $ac_func ();
10686/* The GNU C library defines this for functions which it implements
10687 to always fail with ENOSYS. Some functions are actually named
10688 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010689#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691#endif
10692
10693int
10694main ()
10695{
Reid Spencera773bd52006-08-04 18:18:08 +000010696return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697 ;
10698 return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010702if { (ac_try="$ac_link"
10703case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10719esac
10720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10729esac
10730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_try") 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735 eval "$as_ac_var=yes"
10736else
10737 echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
10739
Reid Spencera773bd52006-08-04 18:18:08 +000010740 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741fi
Reid Spencera773bd52006-08-04 18:18:08 +000010742
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010743rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 conftest$ac_exeext conftest.$ac_ext
10745fi
Reid Spencera773bd52006-08-04 18:18:08 +000010746ac_res=`eval echo '${'$as_ac_var'}'`
10747 { echo "$as_me:$LINENO: result: $ac_res" >&5
10748echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749if test `eval echo '${'$as_ac_var'}'` = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10752_ACEOF
10753
10754fi
10755done
10756
10757 LIBS="$lt_save_LIBS"
10758fi
10759ac_ext=c
10760ac_cpp='$CPP $CPPFLAGS'
10761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763ac_compiler_gnu=$ac_cv_c_compiler_gnu
10764
10765
10766
Reid Spencera773bd52006-08-04 18:18:08 +000010767{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10768echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771else
10772 ac_cv_sys_symbol_underscore=no
10773 cat > conftest.$ac_ext <<EOF
10774void nm_test_func(){}
10775int main(){nm_test_func;return 0;}
10776EOF
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; then
10782 # Now try to grab the symbols.
10783 ac_nlist=conftest.nm
10784 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10785 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && test -s "$ac_nlist"; then
10789 # See whether the symbols have a leading underscore.
10790 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10791 ac_cv_sys_symbol_underscore=yes
10792 else
10793 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10794 :
10795 else
10796 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10797 fi
10798 fi
10799 else
10800 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10801 fi
10802 else
10803 echo "configure: failed program was:" >&5
10804 cat conftest.c >&5
10805 fi
10806 rm -rf conftest*
10807
10808fi
Reid Spencera773bd52006-08-04 18:18:08 +000010809{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10810echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811
10812
10813if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10814 if test x"$libltdl_cv_func_dlopen" = xyes ||
10815 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010816 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10817echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818if test "${libltdl_cv_need_uscore+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820else
10821 libltdl_cv_need_uscore=unknown
10822 save_LIBS="$LIBS"
10823 LIBS="$LIBS $LIBADD_DL"
10824 if test "$cross_compiling" = yes; then :
10825 libltdl_cv_need_uscore=cross
10826else
10827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10828 lt_status=$lt_dlunknown
10829 cat > conftest.$ac_ext <<EOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010830#line 10830 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831#include "confdefs.h"
10832
10833#if HAVE_DLFCN_H
10834#include <dlfcn.h>
10835#endif
10836
10837#include <stdio.h>
10838
10839#ifdef RTLD_GLOBAL
10840# define LT_DLGLOBAL RTLD_GLOBAL
10841#else
10842# ifdef DL_GLOBAL
10843# define LT_DLGLOBAL DL_GLOBAL
10844# else
10845# define LT_DLGLOBAL 0
10846# endif
10847#endif
10848
10849/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10850 find out it does not work in some platform. */
10851#ifndef LT_DLLAZY_OR_NOW
10852# ifdef RTLD_LAZY
10853# define LT_DLLAZY_OR_NOW RTLD_LAZY
10854# else
10855# ifdef DL_LAZY
10856# define LT_DLLAZY_OR_NOW DL_LAZY
10857# else
10858# ifdef RTLD_NOW
10859# define LT_DLLAZY_OR_NOW RTLD_NOW
10860# else
10861# ifdef DL_NOW
10862# define LT_DLLAZY_OR_NOW DL_NOW
10863# else
10864# define LT_DLLAZY_OR_NOW 0
10865# endif
10866# endif
10867# endif
10868# endif
10869#endif
10870
10871#ifdef __cplusplus
10872extern "C" void exit (int);
10873#endif
10874
10875void fnord() { int i=42;}
10876int main ()
10877{
10878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10879 int status = $lt_dlunknown;
10880
10881 if (self)
10882 {
10883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10884 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10885 /* dlclose (self); */
10886 }
Reid Spencera773bd52006-08-04 18:18:08 +000010887 else
10888 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889
10890 exit (status);
10891}
10892EOF
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010898 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899 lt_status=$?
10900 case x$lt_status in
10901 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10902 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010903 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 esac
10905 else :
10906 # compilation failed
10907
10908 fi
10909fi
10910rm -fr conftest*
10911
10912 LIBS="$save_LIBS"
10913
10914fi
Reid Spencera773bd52006-08-04 18:18:08 +000010915{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10916echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917 fi
10918fi
10919
10920if test x"$libltdl_cv_need_uscore" = xyes; then
10921
10922cat >>confdefs.h <<\_ACEOF
10923#define NEED_USCORE 1
10924_ACEOF
10925
10926fi
10927
10928
Reid Spencera773bd52006-08-04 18:18:08 +000010929{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10930echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934 # PORTME does your system automatically load deplibs for dlopen?
10935 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10936 # For now, we just catch OSes we know something about -- in the
10937 # future, we'll try test this programmatically.
10938 libltdl_cv_sys_dlopen_deplibs=unknown
10939 case "$host_os" in
10940 aix3*|aix4.1.*|aix4.2.*)
10941 # Unknown whether this is true for these versions of AIX, but
10942 # we want this `case' here to explicitly catch those versions.
10943 libltdl_cv_sys_dlopen_deplibs=unknown
10944 ;;
10945 aix[45]*)
10946 libltdl_cv_sys_dlopen_deplibs=yes
10947 ;;
10948 darwin*)
10949 # Assuming the user has installed a libdl from somewhere, this is true
10950 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10951 libltdl_cv_sys_dlopen_deplibs=yes
10952 ;;
10953 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10954 # GNU and its variants, using gnu ld.so (Glibc)
10955 libltdl_cv_sys_dlopen_deplibs=yes
10956 ;;
10957 hpux10*|hpux11*)
10958 libltdl_cv_sys_dlopen_deplibs=yes
10959 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010960 interix*)
10961 libltdl_cv_sys_dlopen_deplibs=yes
10962 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963 irix[12345]*|irix6.[01]*)
10964 # Catch all versions of IRIX before 6.2, and indicate that we don't
10965 # know how it worked for any of those versions.
10966 libltdl_cv_sys_dlopen_deplibs=unknown
10967 ;;
10968 irix*)
10969 # The case above catches anything before 6.2, and it's known that
10970 # at 6.2 and later dlopen does load deplibs.
10971 libltdl_cv_sys_dlopen_deplibs=yes
10972 ;;
10973 netbsd*)
10974 libltdl_cv_sys_dlopen_deplibs=yes
10975 ;;
10976 openbsd*)
10977 libltdl_cv_sys_dlopen_deplibs=yes
10978 ;;
10979 osf[1234]*)
10980 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10981 # it did *not* use an RPATH in a shared library to find objects the
10982 # library depends on, so we explictly say `no'.
10983 libltdl_cv_sys_dlopen_deplibs=no
10984 ;;
10985 osf5.0|osf5.0a|osf5.1)
10986 # dlopen *does* load deplibs and with the right loader patch applied
10987 # it even uses RPATH in a shared library to search for shared objects
10988 # that the library depends on, but there's no easy way to know if that
10989 # patch is installed. Since this is the case, all we can really
10990 # say is unknown -- it depends on the patch being installed. If
10991 # it is, this changes to `yes'. Without it, it would be `no'.
10992 libltdl_cv_sys_dlopen_deplibs=unknown
10993 ;;
10994 osf*)
10995 # the two cases above should catch all versions of osf <= 5.1. Read
10996 # the comments above for what we know about them.
10997 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10998 # is used to find them so we can finally say `yes'.
10999 libltdl_cv_sys_dlopen_deplibs=yes
11000 ;;
11001 solaris*)
11002 libltdl_cv_sys_dlopen_deplibs=yes
11003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11005 libltdl_cv_sys_dlopen_deplibs=yes
11006 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007 esac
11008
11009fi
Reid Spencera773bd52006-08-04 18:18:08 +000011010{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11011echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11013
11014cat >>confdefs.h <<\_ACEOF
11015#define LTDL_DLOPEN_DEPLIBS 1
11016_ACEOF
11017
11018fi
11019
11020
11021for ac_header in argz.h
11022do
11023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029fi
Reid Spencera773bd52006-08-04 18:18:08 +000011030ac_res=`eval echo '${'$as_ac_Header'}'`
11031 { echo "$as_me:$LINENO: result: $ac_res" >&5
11032echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033else
11034 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043$ac_includes_default
11044#include <$ac_header>
11045_ACEOF
11046rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011047if { (ac_try="$ac_compile"
11048case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080 ac_header_compiler=yes
11081else
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
Reid Spencera773bd52006-08-04 18:18:08 +000011085 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086fi
Reid Spencera773bd52006-08-04 18:18:08 +000011087
11088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091
11092# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011093{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101#include <$ac_header>
11102_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011103if { (ac_try="$ac_cpp conftest.$ac_ext"
11104case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011115 (exit $ac_status); } >/dev/null; then
11116 if test -s conftest.err; then
11117 ac_cpp_err=$ac_c_preproc_warn_flag
11118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11119 else
11120 ac_cpp_err=
11121 fi
11122else
11123 ac_cpp_err=yes
11124fi
11125if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126 ac_header_preproc=yes
11127else
11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131 ac_header_preproc=no
11132fi
Reid Spencera773bd52006-08-04 18:18:08 +000011133
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011135{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137
11138# So? What about this header?
11139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11140 yes:no: )
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145 ac_header_preproc=yes
11146 ;;
11147 no:yes:* )
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11151echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11155echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011160 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161## ----------------------------------- ##
11162## Report this to llvmbugs@cs.uiuc.edu ##
11163## ----------------------------------- ##
11164_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011165 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166 ;;
11167esac
Reid Spencera773bd52006-08-04 18:18:08 +000011168{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172else
11173 eval "$as_ac_Header=\$ac_header_preproc"
11174fi
Reid Spencera773bd52006-08-04 18:18:08 +000011175ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178
11179fi
11180if test `eval echo '${'$as_ac_Header'}'` = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11183_ACEOF
11184
11185fi
11186
11187done
11188
11189
Reid Spencera773bd52006-08-04 18:18:08 +000011190{ echo "$as_me:$LINENO: checking for error_t" >&5
11191echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192if test "${ac_cv_type_error_t+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195 cat >conftest.$ac_ext <<_ACEOF
11196/* confdefs.h. */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
11201#if HAVE_ARGZ_H
11202# include <argz.h>
11203#endif
11204
Reid Spencera773bd52006-08-04 18:18:08 +000011205typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206int
11207main ()
11208{
Reid Spencera773bd52006-08-04 18:18:08 +000011209if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011211if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212 return 0;
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011218if { (ac_try="$ac_compile"
11219case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222esac
11223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11232 { (case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; } &&
11241 { ac_try='test -s conftest.$ac_objext'
11242 { (case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11245esac
11246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_try") 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251 ac_cv_type_error_t=yes
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
Reid Spencera773bd52006-08-04 18:18:08 +000011256 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257fi
Reid Spencera773bd52006-08-04 18:18:08 +000011258
11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260fi
Reid Spencera773bd52006-08-04 18:18:08 +000011261{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11262echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263if test $ac_cv_type_error_t = yes; then
11264
11265cat >>confdefs.h <<_ACEOF
11266#define HAVE_ERROR_T 1
11267_ACEOF
11268
11269
11270else
11271
11272cat >>confdefs.h <<\_ACEOF
11273#define error_t int
11274_ACEOF
11275
11276fi
11277
11278
11279
11280
11281
11282
11283
11284for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11285do
11286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011287{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292 cat >conftest.$ac_ext <<_ACEOF
11293/* confdefs.h. */
11294_ACEOF
11295cat confdefs.h >>conftest.$ac_ext
11296cat >>conftest.$ac_ext <<_ACEOF
11297/* end confdefs.h. */
11298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300#define $ac_func innocuous_$ac_func
11301
11302/* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11306
11307#ifdef __STDC__
11308# include <limits.h>
11309#else
11310# include <assert.h>
11311#endif
11312
11313#undef $ac_func
11314
Reid Spencera773bd52006-08-04 18:18:08 +000011315/* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318#ifdef __cplusplus
11319extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321char $ac_func ();
11322/* The GNU C library defines this for functions which it implements
11323 to always fail with ENOSYS. Some functions are actually named
11324 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011325#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327#endif
11328
11329int
11330main ()
11331{
Reid Spencera773bd52006-08-04 18:18:08 +000011332return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333 ;
11334 return 0;
11335}
11336_ACEOF
11337rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011338if { (ac_try="$ac_link"
11339case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355esac
11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371 eval "$as_ac_var=yes"
11372else
11373 echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
Reid Spencera773bd52006-08-04 18:18:08 +000011376 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011377fi
Reid Spencera773bd52006-08-04 18:18:08 +000011378
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011379rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380 conftest$ac_exeext conftest.$ac_ext
11381fi
Reid Spencera773bd52006-08-04 18:18:08 +000011382ac_res=`eval echo '${'$as_ac_var'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385if test `eval echo '${'$as_ac_var'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388_ACEOF
11389
11390fi
11391done
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11421 stdio.h unistd.h
11422do
11423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429fi
Reid Spencera773bd52006-08-04 18:18:08 +000011430ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011433else
11434 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011435{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011437cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443$ac_includes_default
11444#include <$ac_header>
11445_ACEOF
11446rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011447if { (ac_try="$ac_compile"
11448case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474esac
11475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 ac_header_compiler=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
Reid Spencera773bd52006-08-04 18:18:08 +000011485 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486fi
Reid Spencera773bd52006-08-04 18:18:08 +000011487
11488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491
11492# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011493{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501#include <$ac_header>
11502_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011503if { (ac_try="$ac_cpp conftest.$ac_ext"
11504case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507esac
11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011515 (exit $ac_status); } >/dev/null; then
11516 if test -s conftest.err; then
11517 ac_cpp_err=$ac_c_preproc_warn_flag
11518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11519 else
11520 ac_cpp_err=
11521 fi
11522else
11523 ac_cpp_err=yes
11524fi
11525if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526 ac_header_preproc=yes
11527else
11528 echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 ac_header_preproc=no
11532fi
Reid Spencera773bd52006-08-04 18:18:08 +000011533
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011535{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537
11538# So? What about this header?
11539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 yes:no: )
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11546 ;;
11547 no:yes:* )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011560 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561## ----------------------------------- ##
11562## Report this to llvmbugs@cs.uiuc.edu ##
11563## ----------------------------------- ##
11564_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011565 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566 ;;
11567esac
Reid Spencera773bd52006-08-04 18:18:08 +000011568{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573 eval "$as_ac_Header=\$ac_header_preproc"
11574fi
Reid Spencera773bd52006-08-04 18:18:08 +000011575ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578
11579fi
11580if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583_ACEOF
11584
11585fi
11586
11587done
11588
11589
11590
11591
11592
11593for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11594do
11595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601fi
Reid Spencera773bd52006-08-04 18:18:08 +000011602ac_res=`eval echo '${'$as_ac_Header'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605else
11606 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615$ac_includes_default
11616#include <$ac_header>
11617_ACEOF
11618rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011619if { (ac_try="$ac_compile"
11620case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623esac
11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646esac
11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652 ac_header_compiler=yes
11653else
11654 echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
Reid Spencera773bd52006-08-04 18:18:08 +000011657 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658fi
Reid Spencera773bd52006-08-04 18:18:08 +000011659
11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11662echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663
11664# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673#include <$ac_header>
11674_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011675if { (ac_try="$ac_cpp conftest.$ac_ext"
11676case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011687 (exit $ac_status); } >/dev/null; then
11688 if test -s conftest.err; then
11689 ac_cpp_err=$ac_c_preproc_warn_flag
11690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11691 else
11692 ac_cpp_err=
11693 fi
11694else
11695 ac_cpp_err=yes
11696fi
11697if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698 ac_header_preproc=yes
11699else
11700 echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 ac_header_preproc=no
11704fi
Reid Spencera773bd52006-08-04 18:18:08 +000011705
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709
11710# So? What about this header?
11711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712 yes:no: )
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717 ac_header_preproc=yes
11718 ;;
11719 no:yes:* )
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011732 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733## ----------------------------------- ##
11734## Report this to llvmbugs@cs.uiuc.edu ##
11735## ----------------------------------- ##
11736_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011737 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 ;;
11739esac
Reid Spencera773bd52006-08-04 18:18:08 +000011740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
11745 eval "$as_ac_Header=\$ac_header_preproc"
11746fi
Reid Spencera773bd52006-08-04 18:18:08 +000011747ac_res=`eval echo '${'$as_ac_Header'}'`
11748 { echo "$as_me:$LINENO: result: $ac_res" >&5
11749echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750
11751fi
11752if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755_ACEOF
11756
11757fi
11758
11759done
11760
11761
11762
11763for ac_header in string.h strings.h
11764do
11765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771fi
Reid Spencera773bd52006-08-04 18:18:08 +000011772ac_res=`eval echo '${'$as_ac_Header'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775else
11776 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
11785$ac_includes_default
11786#include <$ac_header>
11787_ACEOF
11788rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011789if { (ac_try="$ac_compile"
11790case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822 ac_header_compiler=yes
11823else
11824 echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
Reid Spencera773bd52006-08-04 18:18:08 +000011827 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828fi
Reid Spencera773bd52006-08-04 18:18:08 +000011829
11830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833
11834# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011835{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837cat >conftest.$ac_ext <<_ACEOF
11838/* confdefs.h. */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h. */
11843#include <$ac_header>
11844_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011845if { (ac_try="$ac_cpp conftest.$ac_ext"
11846case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011857 (exit $ac_status); } >/dev/null; then
11858 if test -s conftest.err; then
11859 ac_cpp_err=$ac_c_preproc_warn_flag
11860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11861 else
11862 ac_cpp_err=
11863 fi
11864else
11865 ac_cpp_err=yes
11866fi
11867if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868 ac_header_preproc=yes
11869else
11870 echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873 ac_header_preproc=no
11874fi
Reid Spencera773bd52006-08-04 18:18:08 +000011875
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879
11880# So? What about this header?
11881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11882 yes:no: )
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11887 ac_header_preproc=yes
11888 ;;
11889 no:yes:* )
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011902 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903## ----------------------------------- ##
11904## Report this to llvmbugs@cs.uiuc.edu ##
11905## ----------------------------------- ##
11906_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011907 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908 ;;
11909esac
Reid Spencera773bd52006-08-04 18:18:08 +000011910{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915 eval "$as_ac_Header=\$ac_header_preproc"
11916fi
Reid Spencera773bd52006-08-04 18:18:08 +000011917ac_res=`eval echo '${'$as_ac_Header'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920
11921fi
11922if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11925_ACEOF
11926 break
11927fi
11928
11929done
11930
11931
11932
11933
11934for ac_func in strchr index
11935do
11936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011937{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950#define $ac_func innocuous_$ac_func
11951
11952/* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11956
11957#ifdef __STDC__
11958# include <limits.h>
11959#else
11960# include <assert.h>
11961#endif
11962
11963#undef $ac_func
11964
Reid Spencera773bd52006-08-04 18:18:08 +000011965/* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968#ifdef __cplusplus
11969extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971char $ac_func ();
11972/* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011975#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977#endif
11978
11979int
11980main ()
11981{
Reid Spencera773bd52006-08-04 18:18:08 +000011982return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983 ;
11984 return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011988if { (ac_try="$ac_link"
11989case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021 eval "$as_ac_var=yes"
12022else
12023 echo "$as_me: failed program was:" >&5
12024sed 's/^/| /' conftest.$ac_ext >&5
12025
Reid Spencera773bd52006-08-04 18:18:08 +000012026 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027fi
Reid Spencera773bd52006-08-04 18:18:08 +000012028
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012029rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030 conftest$ac_exeext conftest.$ac_ext
12031fi
Reid Spencera773bd52006-08-04 18:18:08 +000012032ac_res=`eval echo '${'$as_ac_var'}'`
12033 { echo "$as_me:$LINENO: result: $ac_res" >&5
12034echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035if test `eval echo '${'$as_ac_var'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038_ACEOF
12039 break
12040fi
12041done
12042
12043
12044
12045for ac_func in strrchr rindex
12046do
12047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053 cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061#define $ac_func innocuous_$ac_func
12062
12063/* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12067
12068#ifdef __STDC__
12069# include <limits.h>
12070#else
12071# include <assert.h>
12072#endif
12073
12074#undef $ac_func
12075
Reid Spencera773bd52006-08-04 18:18:08 +000012076/* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079#ifdef __cplusplus
12080extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012081#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082char $ac_func ();
12083/* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012086#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012088#endif
12089
12090int
12091main ()
12092{
Reid Spencera773bd52006-08-04 18:18:08 +000012093return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012099if { (ac_try="$ac_link"
12100case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132 eval "$as_ac_var=yes"
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
Reid Spencera773bd52006-08-04 18:18:08 +000012137 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138fi
Reid Spencera773bd52006-08-04 18:18:08 +000012139
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012140rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012141 conftest$ac_exeext conftest.$ac_ext
12142fi
Reid Spencera773bd52006-08-04 18:18:08 +000012143ac_res=`eval echo '${'$as_ac_var'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012146if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149_ACEOF
12150 break
12151fi
12152done
12153
12154
12155
12156for ac_func in memcpy bcopy
12157do
12158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012159{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12161if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163else
12164 cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12172#define $ac_func innocuous_$ac_func
12173
12174/* System header to define __stub macros and hopefully few prototypes,
12175 which can conflict with char $ac_func (); below.
12176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12177 <limits.h> exists even on freestanding compilers. */
12178
12179#ifdef __STDC__
12180# include <limits.h>
12181#else
12182# include <assert.h>
12183#endif
12184
12185#undef $ac_func
12186
Reid Spencera773bd52006-08-04 18:18:08 +000012187/* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012190#ifdef __cplusplus
12191extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012192#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193char $ac_func ();
12194/* The GNU C library defines this for functions which it implements
12195 to always fail with ENOSYS. Some functions are actually named
12196 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012197#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012199#endif
12200
12201int
12202main ()
12203{
Reid Spencera773bd52006-08-04 18:18:08 +000012204return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205 ;
12206 return 0;
12207}
12208_ACEOF
12209rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012210if { (ac_try="$ac_link"
12211case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227esac
12228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237esac
12238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_try") 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 eval "$as_ac_var=yes"
12244else
12245 echo "$as_me: failed program was:" >&5
12246sed 's/^/| /' conftest.$ac_ext >&5
12247
Reid Spencera773bd52006-08-04 18:18:08 +000012248 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249fi
Reid Spencera773bd52006-08-04 18:18:08 +000012250
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012251rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252 conftest$ac_exeext conftest.$ac_ext
12253fi
Reid Spencera773bd52006-08-04 18:18:08 +000012254ac_res=`eval echo '${'$as_ac_var'}'`
12255 { echo "$as_me:$LINENO: result: $ac_res" >&5
12256echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260_ACEOF
12261 break
12262fi
12263done
12264
12265
12266
12267for ac_func in memmove strcmp
12268do
12269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012270{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12272if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274else
12275 cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12283#define $ac_func innocuous_$ac_func
12284
12285/* System header to define __stub macros and hopefully few prototypes,
12286 which can conflict with char $ac_func (); below.
12287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12288 <limits.h> exists even on freestanding compilers. */
12289
12290#ifdef __STDC__
12291# include <limits.h>
12292#else
12293# include <assert.h>
12294#endif
12295
12296#undef $ac_func
12297
Reid Spencera773bd52006-08-04 18:18:08 +000012298/* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012301#ifdef __cplusplus
12302extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012303#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304char $ac_func ();
12305/* The GNU C library defines this for functions which it implements
12306 to always fail with ENOSYS. Some functions are actually named
12307 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012308#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012309choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012310#endif
12311
12312int
12313main ()
12314{
Reid Spencera773bd52006-08-04 18:18:08 +000012315return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012316 ;
12317 return 0;
12318}
12319_ACEOF
12320rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012321if { (ac_try="$ac_link"
12322case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12325esac
12326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348esac
12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354 eval "$as_ac_var=yes"
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
Reid Spencera773bd52006-08-04 18:18:08 +000012359 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360fi
Reid Spencera773bd52006-08-04 18:18:08 +000012361
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012362rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363 conftest$ac_exeext conftest.$ac_ext
12364fi
Reid Spencera773bd52006-08-04 18:18:08 +000012365ac_res=`eval echo '${'$as_ac_var'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368if test `eval echo '${'$as_ac_var'}'` = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371_ACEOF
12372
12373fi
12374done
12375
12376
12377
12378
12379for ac_func in closedir opendir readdir
12380do
12381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386else
12387 cat >conftest.$ac_ext <<_ACEOF
12388/* confdefs.h. */
12389_ACEOF
12390cat confdefs.h >>conftest.$ac_ext
12391cat >>conftest.$ac_ext <<_ACEOF
12392/* end confdefs.h. */
12393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12395#define $ac_func innocuous_$ac_func
12396
12397/* System header to define __stub macros and hopefully few prototypes,
12398 which can conflict with char $ac_func (); below.
12399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400 <limits.h> exists even on freestanding compilers. */
12401
12402#ifdef __STDC__
12403# include <limits.h>
12404#else
12405# include <assert.h>
12406#endif
12407
12408#undef $ac_func
12409
Reid Spencera773bd52006-08-04 18:18:08 +000012410/* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012413#ifdef __cplusplus
12414extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012415#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416char $ac_func ();
12417/* The GNU C library defines this for functions which it implements
12418 to always fail with ENOSYS. Some functions are actually named
12419 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012420#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012421choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012422#endif
12423
12424int
12425main ()
12426{
Reid Spencera773bd52006-08-04 18:18:08 +000012427return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428 ;
12429 return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012433if { (ac_try="$ac_link"
12434case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437esac
12438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450esac
12451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12460esac
12461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_try") 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466 eval "$as_ac_var=yes"
12467else
12468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
Reid Spencera773bd52006-08-04 18:18:08 +000012471 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012472fi
Reid Spencera773bd52006-08-04 18:18:08 +000012473
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012474rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475 conftest$ac_exeext conftest.$ac_ext
12476fi
Reid Spencera773bd52006-08-04 18:18:08 +000012477ac_res=`eval echo '${'$as_ac_var'}'`
12478 { echo "$as_me:$LINENO: result: $ac_res" >&5
12479echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480if test `eval echo '${'$as_ac_var'}'` = yes; then
12481 cat >>confdefs.h <<_ACEOF
12482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12483_ACEOF
12484
12485fi
12486done
12487
12488
Reid Spencera773bd52006-08-04 18:18:08 +000012489# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012491 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492 case $enableval in
12493 yes) enable_shared=yes ;;
12494 no) enable_shared=no ;;
12495 *)
12496 enable_shared=no
12497 # Look at the argument we got. We use all the common list separators.
12498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12499 for pkg in $enableval; do
12500 IFS="$lt_save_ifs"
12501 if test "X$pkg" = "X$p"; then
12502 enable_shared=yes
12503 fi
12504 done
12505 IFS="$lt_save_ifs"
12506 ;;
12507 esac
12508else
12509 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012510fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012511
Reid Spencera773bd52006-08-04 18:18:08 +000012512
12513# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012514if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012515 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516 case $enableval in
12517 yes) enable_static=yes ;;
12518 no) enable_static=no ;;
12519 *)
12520 enable_static=no
12521 # Look at the argument we got. We use all the common list separators.
12522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12523 for pkg in $enableval; do
12524 IFS="$lt_save_ifs"
12525 if test "X$pkg" = "X$p"; then
12526 enable_static=yes
12527 fi
12528 done
12529 IFS="$lt_save_ifs"
12530 ;;
12531 esac
12532else
12533 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012534fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535
Reid Spencera773bd52006-08-04 18:18:08 +000012536
12537# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012538if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012539 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540 case $enableval in
12541 yes) enable_fast_install=yes ;;
12542 no) enable_fast_install=no ;;
12543 *)
12544 enable_fast_install=no
12545 # Look at the argument we got. We use all the common list separators.
12546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12547 for pkg in $enableval; do
12548 IFS="$lt_save_ifs"
12549 if test "X$pkg" = "X$p"; then
12550 enable_fast_install=yes
12551 fi
12552 done
12553 IFS="$lt_save_ifs"
12554 ;;
12555 esac
12556else
12557 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012558fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012559
Reid Spencera773bd52006-08-04 18:18:08 +000012560
12561{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12562echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563if test "${lt_cv_path_SED+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566 # Loop through the user's path and test for sed and gsed.
12567# Then use that list of sed's as ones to test for truncation.
12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569for as_dir in $PATH
12570do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for lt_ac_prog in sed gsed; do
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12576 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12577 fi
12578 done
12579 done
12580done
12581lt_ac_max=0
12582lt_ac_count=0
12583# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12584# along with /bin/sed that truncates output.
12585for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012586 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587 cat /dev/null > conftest.in
12588 lt_ac_count=0
12589 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12590 # Check for GNU sed and select it if it is found.
12591 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12592 lt_cv_path_SED=$lt_ac_sed
12593 break
12594 fi
12595 while true; do
12596 cat conftest.in conftest.in >conftest.tmp
12597 mv conftest.tmp conftest.in
12598 cp conftest.in conftest.nl
12599 echo >>conftest.nl
12600 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12601 cmp -s conftest.out conftest.nl || break
12602 # 10000 chars as input seems more than enough
12603 test $lt_ac_count -gt 10 && break
12604 lt_ac_count=`expr $lt_ac_count + 1`
12605 if test $lt_ac_count -gt $lt_ac_max; then
12606 lt_ac_max=$lt_ac_count
12607 lt_cv_path_SED=$lt_ac_sed
12608 fi
12609 done
12610done
12611
12612fi
12613
12614SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012615{ echo "$as_me:$LINENO: result: $SED" >&5
12616echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012617
12618
Reid Spencera773bd52006-08-04 18:18:08 +000012619# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012620if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012621 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622else
12623 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012624fi
12625
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012626ac_prog=ld
12627if test "$GCC" = yes; then
12628 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012629 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12630echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631 case $host in
12632 *-*-mingw*)
12633 # gcc leaves a trailing carriage return which upsets mingw
12634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12635 *)
12636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12637 esac
12638 case $ac_prog in
12639 # Accept absolute paths.
12640 [\\/]* | ?:[\\/]*)
12641 re_direlt='/[^/][^/]*/\.\./'
12642 # Canonicalize the pathname of ld
12643 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12644 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12645 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12646 done
12647 test -z "$LD" && LD="$ac_prog"
12648 ;;
12649 "")
12650 # If it fails, then pretend we aren't using GCC.
12651 ac_prog=ld
12652 ;;
12653 *)
12654 # If it is relative, then search for the first ld in PATH.
12655 with_gnu_ld=unknown
12656 ;;
12657 esac
12658elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012659 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12660echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661else
Reid Spencera773bd52006-08-04 18:18:08 +000012662 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12663echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664fi
12665if test "${lt_cv_path_LD+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668 if test -z "$LD"; then
12669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12670 for ac_dir in $PATH; do
12671 IFS="$lt_save_ifs"
12672 test -z "$ac_dir" && ac_dir=.
12673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12674 lt_cv_path_LD="$ac_dir/$ac_prog"
12675 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012676 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012677 # Break only if it was the GNU/non-GNU ld that we prefer.
12678 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12679 *GNU* | *'with BFD'*)
12680 test "$with_gnu_ld" != no && break
12681 ;;
12682 *)
12683 test "$with_gnu_ld" != yes && break
12684 ;;
12685 esac
12686 fi
12687 done
12688 IFS="$lt_save_ifs"
12689else
12690 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12691fi
12692fi
12693
12694LD="$lt_cv_path_LD"
12695if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012696 { echo "$as_me:$LINENO: result: $LD" >&5
12697echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698else
Reid Spencera773bd52006-08-04 18:18:08 +000012699 { echo "$as_me:$LINENO: result: no" >&5
12700echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012701fi
12702test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12703echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12704 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012705{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12706echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707if test "${lt_cv_prog_gnu_ld+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
Reid Spencera773bd52006-08-04 18:18:08 +000012710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711case `$LD -v 2>&1 </dev/null` in
12712*GNU* | *'with BFD'*)
12713 lt_cv_prog_gnu_ld=yes
12714 ;;
12715*)
12716 lt_cv_prog_gnu_ld=no
12717 ;;
12718esac
12719fi
Reid Spencera773bd52006-08-04 18:18:08 +000012720{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12721echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012722with_gnu_ld=$lt_cv_prog_gnu_ld
12723
12724
Reid Spencera773bd52006-08-04 18:18:08 +000012725{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12726echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012727if test "${lt_cv_ld_reload_flag+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729else
12730 lt_cv_ld_reload_flag='-r'
12731fi
Reid Spencera773bd52006-08-04 18:18:08 +000012732{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12733echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012734reload_flag=$lt_cv_ld_reload_flag
12735case $reload_flag in
12736"" | " "*) ;;
12737*) reload_flag=" $reload_flag" ;;
12738esac
12739reload_cmds='$LD$reload_flag -o $output$reload_objs'
12740case $host_os in
12741 darwin*)
12742 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012743 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012744 else
12745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12746 fi
12747 ;;
12748esac
12749
Reid Spencera773bd52006-08-04 18:18:08 +000012750{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12751echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012752if test "${lt_cv_deplibs_check_method+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754else
12755 lt_cv_file_magic_cmd='$MAGIC_CMD'
12756lt_cv_file_magic_test_file=
12757lt_cv_deplibs_check_method='unknown'
12758# Need to set the preceding variable on all platforms that support
12759# interlibrary dependencies.
12760# 'none' -- dependencies not supported.
12761# `unknown' -- same as none, but documents that we really don't know.
12762# 'pass_all' -- all dependencies passed with no checks.
12763# 'test_compile' -- check by making test program.
12764# 'file_magic [[regex]]' -- check by looking for files in library path
12765# which responds to the $file_magic_cmd with a given extended regex.
12766# If you have `file' or equivalent on your system and you're not sure
12767# whether `pass_all' will *always* work, you probably want this one.
12768
12769case $host_os in
12770aix4* | aix5*)
12771 lt_cv_deplibs_check_method=pass_all
12772 ;;
12773
12774beos*)
12775 lt_cv_deplibs_check_method=pass_all
12776 ;;
12777
12778bsdi[45]*)
12779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12780 lt_cv_file_magic_cmd='/usr/bin/file -L'
12781 lt_cv_file_magic_test_file=/shlib/libc.so
12782 ;;
12783
12784cygwin*)
12785 # func_win32_libid is a shell function defined in ltmain.sh
12786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12787 lt_cv_file_magic_cmd='func_win32_libid'
12788 ;;
12789
12790mingw* | pw32*)
12791 # Base MSYS/MinGW do not provide the 'file' command needed by
12792 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12794 lt_cv_file_magic_cmd='$OBJDUMP -f'
12795 ;;
12796
12797darwin* | rhapsody*)
12798 lt_cv_deplibs_check_method=pass_all
12799 ;;
12800
Reid Spencera773bd52006-08-04 18:18:08 +000012801freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012802 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12803 case $host_cpu in
12804 i*86 )
12805 # Not sure whether the presence of OpenBSD here was a mistake.
12806 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012807 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 +000012808 lt_cv_file_magic_cmd=/usr/bin/file
12809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12810 ;;
12811 esac
12812 else
12813 lt_cv_deplibs_check_method=pass_all
12814 fi
12815 ;;
12816
12817gnu*)
12818 lt_cv_deplibs_check_method=pass_all
12819 ;;
12820
12821hpux10.20* | hpux11*)
12822 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012823 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824 ia64*)
12825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12827 ;;
12828 hppa*64*)
12829 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]'
12830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12831 ;;
12832 *)
12833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12835 ;;
12836 esac
12837 ;;
12838
Reid Spencera773bd52006-08-04 18:18:08 +000012839interix3*)
12840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12842 ;;
12843
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844irix5* | irix6* | nonstopux*)
12845 case $LD in
12846 *-32|*"-32 ") libmagic=32-bit;;
12847 *-n32|*"-n32 ") libmagic=N32;;
12848 *-64|*"-64 ") libmagic=64-bit;;
12849 *) libmagic=never-match;;
12850 esac
12851 lt_cv_deplibs_check_method=pass_all
12852 ;;
12853
12854# This must be Linux ELF.
12855linux*)
12856 lt_cv_deplibs_check_method=pass_all
12857 ;;
12858
12859netbsd*)
12860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12862 else
12863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12864 fi
12865 ;;
12866
12867newos6*)
12868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12869 lt_cv_file_magic_cmd=/usr/bin/file
12870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12871 ;;
12872
12873nto-qnx*)
12874 lt_cv_deplibs_check_method=unknown
12875 ;;
12876
12877openbsd*)
12878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12880 else
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12882 fi
12883 ;;
12884
12885osf3* | osf4* | osf5*)
12886 lt_cv_deplibs_check_method=pass_all
12887 ;;
12888
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889solaris*)
12890 lt_cv_deplibs_check_method=pass_all
12891 ;;
12892
Reid Spencera773bd52006-08-04 18:18:08 +000012893sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894 case $host_vendor in
12895 motorola)
12896 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]'
12897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12898 ;;
12899 ncr)
12900 lt_cv_deplibs_check_method=pass_all
12901 ;;
12902 sequent)
12903 lt_cv_file_magic_cmd='/bin/file'
12904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12905 ;;
12906 sni)
12907 lt_cv_file_magic_cmd='/bin/file'
12908 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12909 lt_cv_file_magic_test_file=/lib/libc.so
12910 ;;
12911 siemens)
12912 lt_cv_deplibs_check_method=pass_all
12913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012914 pc)
12915 lt_cv_deplibs_check_method=pass_all
12916 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012917 esac
12918 ;;
12919
Reid Spencera773bd52006-08-04 18:18:08 +000012920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012921 lt_cv_deplibs_check_method=pass_all
12922 ;;
12923esac
12924
12925fi
Reid Spencera773bd52006-08-04 18:18:08 +000012926{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12927echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012928file_magic_cmd=$lt_cv_file_magic_cmd
12929deplibs_check_method=$lt_cv_deplibs_check_method
12930test -z "$deplibs_check_method" && deplibs_check_method=unknown
12931
12932
12933
12934# If no C compiler was specified, use CC.
12935LTCC=${LTCC-"$CC"}
12936
Reid Spencera773bd52006-08-04 18:18:08 +000012937# If no C compiler flags were specified, use CFLAGS.
12938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12939
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012940# Allow CC to be a program name with arguments.
12941compiler=$CC
12942
Reid Spencera773bd52006-08-04 18:18:08 +000012943# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012944if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012945 enableval=$enable_libtool_lock;
12946fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012947
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012948test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12949
12950# Some flags need to be propagated to the compiler or linker for good
12951# libtool support.
12952case $host in
12953ia64-*-hpux*)
12954 # Find out which ABI we are using.
12955 echo 'int i;' > conftest.$ac_ext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; then
12961 case `/usr/bin/file conftest.$ac_objext` in
12962 *ELF-32*)
12963 HPUX_IA64_MODE="32"
12964 ;;
12965 *ELF-64*)
12966 HPUX_IA64_MODE="64"
12967 ;;
12968 esac
12969 fi
12970 rm -rf conftest*
12971 ;;
12972*-*-irix6*)
12973 # Find out which ABI we are using.
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012974 echo '#line 12974 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; then
12980 if test "$lt_cv_prog_gnu_ld" = yes; then
12981 case `/usr/bin/file conftest.$ac_objext` in
12982 *32-bit*)
12983 LD="${LD-ld} -melf32bsmip"
12984 ;;
12985 *N32*)
12986 LD="${LD-ld} -melf32bmipn32"
12987 ;;
12988 *64-bit*)
12989 LD="${LD-ld} -melf64bmip"
12990 ;;
12991 esac
12992 else
12993 case `/usr/bin/file conftest.$ac_objext` in
12994 *32-bit*)
12995 LD="${LD-ld} -32"
12996 ;;
12997 *N32*)
12998 LD="${LD-ld} -n32"
12999 ;;
13000 *64-bit*)
13001 LD="${LD-ld} -64"
13002 ;;
13003 esac
13004 fi
13005 fi
13006 rm -rf conftest*
13007 ;;
13008
13009x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13010 # Find out which ABI we are using.
13011 echo 'int i;' > conftest.$ac_ext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013017 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013018 *32-bit*)
13019 case $host in
13020 x86_64-*linux*)
13021 LD="${LD-ld} -m elf_i386"
13022 ;;
13023 ppc64-*linux*|powerpc64-*linux*)
13024 LD="${LD-ld} -m elf32ppclinux"
13025 ;;
13026 s390x-*linux*)
13027 LD="${LD-ld} -m elf_s390"
13028 ;;
13029 sparc64-*linux*)
13030 LD="${LD-ld} -m elf32_sparc"
13031 ;;
13032 esac
13033 ;;
13034 *64-bit*)
13035 case $host in
13036 x86_64-*linux*)
13037 LD="${LD-ld} -m elf_x86_64"
13038 ;;
13039 ppc*-*linux*|powerpc*-*linux*)
13040 LD="${LD-ld} -m elf64ppc"
13041 ;;
13042 s390*-*linux*)
13043 LD="${LD-ld} -m elf64_s390"
13044 ;;
13045 sparc*-*linux*)
13046 LD="${LD-ld} -m elf64_sparc"
13047 ;;
13048 esac
13049 ;;
13050 esac
13051 fi
13052 rm -rf conftest*
13053 ;;
13054
13055*-*-sco3.2v5*)
13056 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13057 SAVE_CFLAGS="$CFLAGS"
13058 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013059 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13060echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013061if test "${lt_cv_cc_needs_belf+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063else
13064 ac_ext=c
13065ac_cpp='$CPP $CPPFLAGS'
13066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068ac_compiler_gnu=$ac_cv_c_compiler_gnu
13069
13070 cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h. */
13076
Reid Spencera773bd52006-08-04 18:18:08 +000013077int
13078main ()
13079{
13080
13081 ;
13082 return 0;
13083}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013084_ACEOF
13085rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013086if { (ac_try="$ac_link"
13087case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013098 (exit $ac_status); } &&
13099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13103esac
13104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013119 lt_cv_cc_needs_belf=yes
13120else
13121 echo "$as_me: failed program was:" >&5
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
Reid Spencera773bd52006-08-04 18:18:08 +000013124 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013125fi
Reid Spencera773bd52006-08-04 18:18:08 +000013126
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013127rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013128 conftest$ac_exeext conftest.$ac_ext
13129 ac_ext=c
13130ac_cpp='$CPP $CPPFLAGS'
13131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133ac_compiler_gnu=$ac_cv_c_compiler_gnu
13134
13135fi
Reid Spencera773bd52006-08-04 18:18:08 +000013136{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13137echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013138 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13139 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13140 CFLAGS="$SAVE_CFLAGS"
13141 fi
13142 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013143sparc*-*solaris*)
13144 # Find out which ABI we are using.
13145 echo 'int i;' > conftest.$ac_ext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; then
13151 case `/usr/bin/file conftest.o` in
13152 *64-bit*)
13153 case $lt_cv_prog_gnu_ld in
13154 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13155 *) LD="${LD-ld} -64" ;;
13156 esac
13157 ;;
13158 esac
13159 fi
13160 rm -rf conftest*
13161 ;;
13162
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013163
13164esac
13165
13166need_locks="$enable_libtool_lock"
13167
13168
Reid Spencer2706f8c2004-09-19 23:53:36 +000013169
13170
13171if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13172 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13173 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013174 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013175ac_cpp='$CXXCPP $CPPFLAGS'
13176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013179{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13180echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013181if test -z "$CXXCPP"; then
13182 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
John Criswell47fdd832003-07-14 16:52:07 +000013185 # Double quotes because CXXCPP needs to be expanded
13186 for CXXCPP in "$CXX -E" "/lib/cpp"
13187 do
13188 ac_preproc_ok=false
13189for ac_cxx_preproc_warn_flag in '' yes
13190do
13191 # Use a header file that comes with gcc, so configuring glibc
13192 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013195 # On the NeXT, cc -E runs the code through the compiler's parser,
13196 # not just through cpp. "Syntax error" is here to catch this case.
13197 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013198/* confdefs.h. */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h. */
13203#ifdef __STDC__
13204# include <limits.h>
13205#else
13206# include <assert.h>
13207#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013208 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013209_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013210if { (ac_try="$ac_cpp conftest.$ac_ext"
13211case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013217 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013218 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013222 (exit $ac_status); } >/dev/null; then
13223 if test -s conftest.err; then
13224 ac_cpp_err=$ac_cxx_preproc_warn_flag
13225 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13226 else
13227 ac_cpp_err=
13228 fi
13229else
13230 ac_cpp_err=yes
13231fi
13232if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013233 :
13234else
13235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013236sed 's/^/| /' conftest.$ac_ext >&5
13237
John Criswell47fdd832003-07-14 16:52:07 +000013238 # Broken: fails on valid input.
13239continue
13240fi
Reid Spencera773bd52006-08-04 18:18:08 +000013241
John Criswell47fdd832003-07-14 16:52:07 +000013242rm -f conftest.err conftest.$ac_ext
13243
Reid Spencera773bd52006-08-04 18:18:08 +000013244 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013245 # can be detected and how.
13246 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013252#include <ac_nonexistent.h>
13253_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013254if { (ac_try="$ac_cpp conftest.$ac_ext"
13255case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013261 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013262 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013266 (exit $ac_status); } >/dev/null; then
13267 if test -s conftest.err; then
13268 ac_cpp_err=$ac_cxx_preproc_warn_flag
13269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13270 else
13271 ac_cpp_err=
13272 fi
13273else
13274 ac_cpp_err=yes
13275fi
13276if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013277 # Broken: success on invalid input.
13278continue
13279else
13280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013281sed 's/^/| /' conftest.$ac_ext >&5
13282
John Criswell47fdd832003-07-14 16:52:07 +000013283 # Passes both tests.
13284ac_preproc_ok=:
13285break
13286fi
Reid Spencera773bd52006-08-04 18:18:08 +000013287
John Criswell47fdd832003-07-14 16:52:07 +000013288rm -f conftest.err conftest.$ac_ext
13289
13290done
13291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13292rm -f conftest.err conftest.$ac_ext
13293if $ac_preproc_ok; then
13294 break
John Criswell7a73b802003-06-30 21:59:07 +000013295fi
13296
John Criswell47fdd832003-07-14 16:52:07 +000013297 done
13298 ac_cv_prog_CXXCPP=$CXXCPP
13299
13300fi
13301 CXXCPP=$ac_cv_prog_CXXCPP
13302else
13303 ac_cv_prog_CXXCPP=$CXXCPP
13304fi
Reid Spencera773bd52006-08-04 18:18:08 +000013305{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13306echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013307ac_preproc_ok=false
13308for ac_cxx_preproc_warn_flag in '' yes
13309do
13310 # Use a header file that comes with gcc, so configuring glibc
13311 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13313 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013314 # On the NeXT, cc -E runs the code through the compiler's parser,
13315 # not just through cpp. "Syntax error" is here to catch this case.
13316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013317/* confdefs.h. */
13318_ACEOF
13319cat confdefs.h >>conftest.$ac_ext
13320cat >>conftest.$ac_ext <<_ACEOF
13321/* end confdefs.h. */
13322#ifdef __STDC__
13323# include <limits.h>
13324#else
13325# include <assert.h>
13326#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013327 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013328_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013329if { (ac_try="$ac_cpp conftest.$ac_ext"
13330case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013336 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013337 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_cxx_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345 else
13346 ac_cpp_err=
13347 fi
13348else
13349 ac_cpp_err=yes
13350fi
13351if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013352 :
13353else
13354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013355sed 's/^/| /' conftest.$ac_ext >&5
13356
John Criswell47fdd832003-07-14 16:52:07 +000013357 # Broken: fails on valid input.
13358continue
13359fi
Reid Spencera773bd52006-08-04 18:18:08 +000013360
John Criswell47fdd832003-07-14 16:52:07 +000013361rm -f conftest.err conftest.$ac_ext
13362
Reid Spencera773bd52006-08-04 18:18:08 +000013363 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013364 # can be detected and how.
13365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013371#include <ac_nonexistent.h>
13372_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013373if { (ac_try="$ac_cpp conftest.$ac_ext"
13374case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013380 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013381 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013385 (exit $ac_status); } >/dev/null; then
13386 if test -s conftest.err; then
13387 ac_cpp_err=$ac_cxx_preproc_warn_flag
13388 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13389 else
13390 ac_cpp_err=
13391 fi
13392else
13393 ac_cpp_err=yes
13394fi
13395if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013396 # Broken: success on invalid input.
13397continue
13398else
13399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013400sed 's/^/| /' conftest.$ac_ext >&5
13401
John Criswell47fdd832003-07-14 16:52:07 +000013402 # Passes both tests.
13403ac_preproc_ok=:
13404break
13405fi
Reid Spencera773bd52006-08-04 18:18:08 +000013406
John Criswell47fdd832003-07-14 16:52:07 +000013407rm -f conftest.err conftest.$ac_ext
13408
13409done
13410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13411rm -f conftest.err conftest.$ac_ext
13412if $ac_preproc_ok; then
13413 :
13414else
John Criswell0c38eaf2003-09-10 15:17:25 +000013415 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13416See \`config.log' for more details." >&5
13417echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13418See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013419 { (exit 1); exit 1; }; }
13420fi
13421
Reid Spencera773bd52006-08-04 18:18:08 +000013422ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013423ac_cpp='$CXXCPP $CPPFLAGS'
13424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13427
Reid Spencer2706f8c2004-09-19 23:53:36 +000013428fi
13429
John Criswell47fdd832003-07-14 16:52:07 +000013430
13431ac_ext=f
13432ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13433ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13435if test -n "$ac_tool_prefix"; then
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013436 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 +000013437 do
13438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013442if test "${ac_cv_prog_F77+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 if test -n "$F77"; then
13446 ac_cv_prog_F77="$F77" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013454 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 +000013455 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459done
13460done
Reid Spencera773bd52006-08-04 18:18:08 +000013461IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013462
13463fi
13464fi
13465F77=$ac_cv_prog_F77
13466if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013467 { echo "$as_me:$LINENO: result: $F77" >&5
13468echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013469else
Reid Spencera773bd52006-08-04 18:18:08 +000013470 { echo "$as_me:$LINENO: result: no" >&5
13471echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013472fi
13473
Reid Spencera773bd52006-08-04 18:18:08 +000013474
John Criswell47fdd832003-07-14 16:52:07 +000013475 test -n "$F77" && break
13476 done
13477fi
13478if test -z "$F77"; then
13479 ac_ct_F77=$F77
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013480 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 +000013481do
13482 # Extract the first word of "$ac_prog", so it can be a program name with args.
13483set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013486if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488else
13489 if test -n "$ac_ct_F77"; then
13490 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13491else
13492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493for as_dir in $PATH
13494do
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013498 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 +000013499 ac_cv_prog_ac_ct_F77="$ac_prog"
13500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13501 break 2
13502 fi
13503done
13504done
Reid Spencera773bd52006-08-04 18:18:08 +000013505IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013506
13507fi
13508fi
13509ac_ct_F77=$ac_cv_prog_ac_ct_F77
13510if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013511 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13512echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013513else
Reid Spencera773bd52006-08-04 18:18:08 +000013514 { echo "$as_me:$LINENO: result: no" >&5
13515echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013516fi
13517
Reid Spencera773bd52006-08-04 18:18:08 +000013518
John Criswell47fdd832003-07-14 16:52:07 +000013519 test -n "$ac_ct_F77" && break
13520done
13521
Reid Spencera773bd52006-08-04 18:18:08 +000013522 if test "x$ac_ct_F77" = x; then
13523 F77=""
13524 else
13525 case $cross_compiling:$ac_tool_warned in
13526yes:)
13527{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13528whose name does not start with the host triplet. If you think this
13529configuration is useful to you, please write to autoconf@gnu.org." >&5
13530echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13531whose name does not start with the host triplet. If you think this
13532configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13533ac_tool_warned=yes ;;
13534esac
13535 F77=$ac_ct_F77
13536 fi
John Criswell47fdd832003-07-14 16:52:07 +000013537fi
13538
13539
13540# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013541echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013542ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013543{ (ac_try="$ac_compiler --version >&5"
13544case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013553{ (ac_try="$ac_compiler -v >&5"
13554case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557esac
13558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013563{ (ac_try="$ac_compiler -V >&5"
13564case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13567esac
13568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013573rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013574
13575# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013576# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013577ac_save_ext=$ac_ext
13578ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013579{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13580echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013581if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583else
13584 cat >conftest.$ac_ext <<_ACEOF
13585 program main
13586#ifndef __GNUC__
13587 choke me
13588#endif
13589
13590 end
13591_ACEOF
13592rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013593if { (ac_try="$ac_compile"
13594case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013626 ac_compiler_gnu=yes
13627else
13628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013629sed 's/^/| /' conftest.$ac_ext >&5
13630
Reid Spencera773bd52006-08-04 18:18:08 +000013631 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013632fi
Reid Spencera773bd52006-08-04 18:18:08 +000013633
13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013635ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13636
13637fi
Reid Spencera773bd52006-08-04 18:18:08 +000013638{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13639echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013640ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013641ac_test_FFLAGS=${FFLAGS+set}
13642ac_save_FFLAGS=$FFLAGS
13643FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013644{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13645echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013646if test "${ac_cv_prog_f77_g+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649 FFLAGS=-g
13650cat >conftest.$ac_ext <<_ACEOF
13651 program main
13652
13653 end
13654_ACEOF
13655rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013656if { (ac_try="$ac_compile"
13657case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660esac
13661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13670 { (case "(($ac_try" in
13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672 *) ac_try_echo=$ac_try;;
13673esac
13674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675 (eval "$ac_try") 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683esac
13684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013689 ac_cv_prog_f77_g=yes
13690else
13691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013692sed 's/^/| /' conftest.$ac_ext >&5
13693
Reid Spencera773bd52006-08-04 18:18:08 +000013694 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013695fi
Reid Spencera773bd52006-08-04 18:18:08 +000013696
13697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013698
13699fi
Reid Spencera773bd52006-08-04 18:18:08 +000013700{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13701echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013702if test "$ac_test_FFLAGS" = set; then
13703 FFLAGS=$ac_save_FFLAGS
13704elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013705 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013706 FFLAGS="-g -O2"
13707 else
13708 FFLAGS="-g"
13709 fi
13710else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013711 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013712 FFLAGS="-O2"
13713 else
13714 FFLAGS=
13715 fi
13716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013717
13718G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013719ac_ext=c
13720ac_cpp='$CPP $CPPFLAGS'
13721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723ac_compiler_gnu=$ac_cv_c_compiler_gnu
13724
13725
13726
13727# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13728
13729# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013730{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13731echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013732if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734else
13735 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013736 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013737
13738 case $build_os in
13739 msdosdjgpp*)
13740 # On DJGPP, this test can blow up pretty badly due to problems in libc
13741 # (any single argument exceeding 2000 bytes causes a buffer overrun
13742 # during glob expansion). Even if it were fixed, the result of this
13743 # check would be larger than it should be.
13744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13745 ;;
13746
13747 gnu*)
13748 # Under GNU Hurd, this test is not required because there is
13749 # no limit to the length of command line arguments.
13750 # Libtool will interpret -1 as no limit whatsoever
13751 lt_cv_sys_max_cmd_len=-1;
13752 ;;
13753
13754 cygwin* | mingw*)
13755 # On Win9x/ME, this test blows up -- it succeeds, but takes
13756 # about 5 minutes as the teststring grows exponentially.
13757 # Worse, since 9x/ME are not pre-emptively multitasking,
13758 # you end up with a "frozen" computer, even though with patience
13759 # the test eventually succeeds (with a max line length of 256k).
13760 # Instead, let's just punt: use the minimum linelength reported by
13761 # all of the supported platforms: 8192 (on NT/2K/XP).
13762 lt_cv_sys_max_cmd_len=8192;
13763 ;;
13764
Reid Spencer2706f8c2004-09-19 23:53:36 +000013765 amigaos*)
13766 # On AmigaOS with pdksh, this test takes hours, literally.
13767 # So we just punt and use a minimum line length of 8192.
13768 lt_cv_sys_max_cmd_len=8192;
13769 ;;
13770
Reid Spencera773bd52006-08-04 18:18:08 +000013771 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013772 # This has been around since 386BSD, at least. Likely further.
13773 if test -x /sbin/sysctl; then
13774 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13775 elif test -x /usr/sbin/sysctl; then
13776 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13777 else
Reid Spencera773bd52006-08-04 18:18:08 +000013778 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013779 fi
13780 # And add a safety zone
13781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013783 ;;
13784
Reid Spencera773bd52006-08-04 18:18:08 +000013785 interix*)
13786 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13787 lt_cv_sys_max_cmd_len=196608
13788 ;;
13789
13790 osf*)
13791 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13792 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13793 # nice to cause kernel panics so lets avoid the loop below.
13794 # First set a reasonable default.
13795 lt_cv_sys_max_cmd_len=16384
13796 #
13797 if test -x /sbin/sysconfig; then
13798 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13799 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13800 esac
13801 fi
13802 ;;
13803 sco3.2v5*)
13804 lt_cv_sys_max_cmd_len=102400
13805 ;;
13806 sysv5* | sco5v6* | sysv4.2uw2*)
13807 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13808 if test -n "$kargmax"; then
13809 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13810 else
13811 lt_cv_sys_max_cmd_len=32768
13812 fi
13813 ;;
13814 *)
John Criswell47fdd832003-07-14 16:52:07 +000013815 # If test is not a shell built-in, we'll probably end up computing a
13816 # maximum length that is only half of the actual maximum length, but
13817 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13819 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13820 = "XX$teststring") >/dev/null 2>&1 &&
13821 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013822 lt_cv_sys_max_cmd_len=$new_result &&
13823 test $i != 17 # 1/2 MB should be enough
13824 do
13825 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013826 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013827 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013828 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013829 # Add a significant safety factor because C++ compilers can tack on massive
13830 # amounts of additional arguments before passing them to the linker.
13831 # It appears as though 1/2 is a usable value.
13832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13833 ;;
13834 esac
13835
13836fi
13837
13838if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013839 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13840echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013841else
Reid Spencera773bd52006-08-04 18:18:08 +000013842 { echo "$as_me:$LINENO: result: none" >&5
13843echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013844fi
13845
13846
13847
13848
13849# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013850{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13851echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013852if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855
13856# These are sane defaults that work on at least a few old systems.
13857# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13858
13859# Character class describing NM global symbol codes.
13860symcode='[BCDEGRST]'
13861
13862# Regexp to match symbols that can be accessed directly from C.
13863sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13864
John Criswell47fdd832003-07-14 16:52:07 +000013865# Transform an extracted symbol line into a proper C declaration
13866lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13867
13868# Transform an extracted symbol line into symbol name and symbol address
13869lt_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'"
13870
13871# Define system-specific variables.
13872case $host_os in
13873aix*)
13874 symcode='[BCDT]'
13875 ;;
13876cygwin* | mingw* | pw32*)
13877 symcode='[ABCDGISTW]'
13878 ;;
13879hpux*) # Its linker distinguishes data from code symbols
13880 if test "$host_cpu" = ia64; then
13881 symcode='[ABCDEGRST]'
13882 fi
13883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13884 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'"
13885 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013886linux*)
13887 if test "$host_cpu" = ia64; then
13888 symcode='[ABCDGIRSTW]'
13889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13890 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'"
13891 fi
13892 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013893irix* | nonstopux*)
13894 symcode='[BCDEGRST]'
13895 ;;
13896osf*)
13897 symcode='[BCDEGQRST]'
13898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013899solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013900 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013901 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013902sco3.2v5*)
13903 symcode='[DT]'
13904 ;;
13905sysv4.2uw2*)
13906 symcode='[DT]'
13907 ;;
13908sysv5* | sco5v6* | unixware* | OpenUNIX*)
13909 symcode='[ABDT]'
13910 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013911sysv4)
13912 symcode='[DFNSTU]'
13913 ;;
13914esac
13915
13916# Handle CRLF in mingw tool chain
13917opt_cr=
13918case $build_os in
13919mingw*)
13920 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13921 ;;
13922esac
13923
13924# If we're using GNU nm, then use its standard symbol codes.
13925case `$NM -V 2>&1` in
13926*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013927 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013928esac
13929
13930# Try without a prefix undercore, then with it.
13931for ac_symprfx in "" "_"; do
13932
Reid Spencera773bd52006-08-04 18:18:08 +000013933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13934 symxfrm="\\1 $ac_symprfx\\2 \\2"
13935
John Criswell47fdd832003-07-14 16:52:07 +000013936 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013937 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 +000013938
13939 # Check to see that the pipe works correctly.
13940 pipe_works=no
13941
13942 rm -f conftest*
13943 cat > conftest.$ac_ext <<EOF
13944#ifdef __cplusplus
13945extern "C" {
13946#endif
13947char nm_test_var;
13948void nm_test_func(){}
13949#ifdef __cplusplus
13950}
13951#endif
13952int main(){nm_test_var='a';nm_test_func();return(0);}
13953EOF
13954
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 (eval $ac_compile) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; then
13960 # Now try to grab the symbols.
13961 nlist=conftest.nm
13962 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13963 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && test -s "$nlist"; then
13967 # Try sorting and uniquifying the output.
13968 if sort "$nlist" | uniq > "$nlist"T; then
13969 mv -f "$nlist"T "$nlist"
13970 else
13971 rm -f "$nlist"T
13972 fi
13973
13974 # Make sure that we snagged all the symbols we need.
13975 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13976 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13977 cat <<EOF > conftest.$ac_ext
13978#ifdef __cplusplus
13979extern "C" {
13980#endif
13981
13982EOF
13983 # Now generate the symbol file.
13984 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13985
13986 cat <<EOF >> conftest.$ac_ext
13987#if defined (__STDC__) && __STDC__
13988# define lt_ptr_t void *
13989#else
13990# define lt_ptr_t char *
13991# define const
13992#endif
13993
13994/* The mapping between symbol names and symbols. */
13995const struct {
13996 const char *name;
13997 lt_ptr_t address;
13998}
13999lt_preloaded_symbols[] =
14000{
14001EOF
14002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14003 cat <<\EOF >> conftest.$ac_ext
14004 {0, (lt_ptr_t) 0}
14005};
14006
14007#ifdef __cplusplus
14008}
14009#endif
14010EOF
14011 # Now try linking the two files.
14012 mv conftest.$ac_objext conftstm.$ac_objext
14013 lt_save_LIBS="$LIBS"
14014 lt_save_CFLAGS="$CFLAGS"
14015 LIBS="conftstm.$ac_objext"
14016 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14022 pipe_works=yes
14023 fi
14024 LIBS="$lt_save_LIBS"
14025 CFLAGS="$lt_save_CFLAGS"
14026 else
14027 echo "cannot find nm_test_func in $nlist" >&5
14028 fi
14029 else
14030 echo "cannot find nm_test_var in $nlist" >&5
14031 fi
14032 else
14033 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14034 fi
14035 else
14036 echo "$progname: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 fi
14039 rm -f conftest* conftst*
14040
14041 # Do not use the global_symbol_pipe unless it works.
14042 if test "$pipe_works" = yes; then
14043 break
14044 else
14045 lt_cv_sys_global_symbol_pipe=
14046 fi
14047done
14048
14049fi
14050
14051if test -z "$lt_cv_sys_global_symbol_pipe"; then
14052 lt_cv_sys_global_symbol_to_cdecl=
14053fi
14054if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014055 { echo "$as_me:$LINENO: result: failed" >&5
14056echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014057else
Reid Spencera773bd52006-08-04 18:18:08 +000014058 { echo "$as_me:$LINENO: result: ok" >&5
14059echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014060fi
14061
Reid Spencera773bd52006-08-04 18:18:08 +000014062{ echo "$as_me:$LINENO: checking for objdir" >&5
14063echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014064if test "${lt_cv_objdir+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066else
14067 rm -f .libs 2>/dev/null
14068mkdir .libs 2>/dev/null
14069if test -d .libs; then
14070 lt_cv_objdir=.libs
14071else
14072 # MS-DOS does not allow filenames that begin with a dot.
14073 lt_cv_objdir=_libs
14074fi
14075rmdir .libs 2>/dev/null
14076fi
Reid Spencera773bd52006-08-04 18:18:08 +000014077{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14078echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014079objdir=$lt_cv_objdir
14080
14081
14082
14083
14084
14085case $host_os in
14086aix3*)
14087 # AIX sometimes has problems with the GCC collect2 program. For some
14088 # reason, if we set the COLLECT_NAMES environment variable, the problems
14089 # vanish in a puff of smoke.
14090 if test "X${COLLECT_NAMES+set}" != Xset; then
14091 COLLECT_NAMES=
14092 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014093 fi
14094 ;;
14095esac
14096
John Criswell47fdd832003-07-14 16:52:07 +000014097# Sed substitution that helps us do robust quoting. It backslashifies
14098# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014099Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014100sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14101
14102# Same as above, but do not quote variable references.
14103double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14104
14105# Sed substitution to delay expansion of an escaped shell variable in a
14106# double_quote_subst'ed string.
14107delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14108
14109# Sed substitution to avoid accidental globbing in evaled expressions
14110no_glob_subst='s/\*/\\\*/g'
14111
14112# Constants:
14113rm="rm -f"
14114
14115# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014116default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014117can_build_shared=yes
14118
Reid Spencera773bd52006-08-04 18:18:08 +000014119# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014120# which needs '.lib').
14121libext=a
14122ltmain="$ac_aux_dir/ltmain.sh"
14123ofile="$default_ofile"
14124with_gnu_ld="$lt_cv_prog_gnu_ld"
14125
14126if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14128set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014131if test "${ac_cv_prog_AR+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134 if test -n "$AR"; then
14135 ac_cv_prog_AR="$AR" # Let the user override the test.
14136else
14137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138for as_dir in $PATH
14139do
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014143 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 +000014144 ac_cv_prog_AR="${ac_tool_prefix}ar"
14145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14147 fi
14148done
14149done
Reid Spencera773bd52006-08-04 18:18:08 +000014150IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014151
14152fi
14153fi
14154AR=$ac_cv_prog_AR
14155if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014156 { echo "$as_me:$LINENO: result: $AR" >&5
14157echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014158else
Reid Spencera773bd52006-08-04 18:18:08 +000014159 { echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014161fi
14162
Reid Spencera773bd52006-08-04 18:18:08 +000014163
John Criswell47fdd832003-07-14 16:52:07 +000014164fi
14165if test -z "$ac_cv_prog_AR"; then
14166 ac_ct_AR=$AR
14167 # Extract the first word of "ar", so it can be a program name with args.
14168set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014171if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 if test -n "$ac_ct_AR"; then
14175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14176else
14177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $PATH
14179do
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014183 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 +000014184 ac_cv_prog_ac_ct_AR="ar"
14185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14187 fi
14188done
14189done
Reid Spencera773bd52006-08-04 18:18:08 +000014190IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014191
John Criswell47fdd832003-07-14 16:52:07 +000014192fi
14193fi
14194ac_ct_AR=$ac_cv_prog_ac_ct_AR
14195if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014196 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14197echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014198else
Reid Spencera773bd52006-08-04 18:18:08 +000014199 { echo "$as_me:$LINENO: result: no" >&5
14200echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014201fi
14202
Reid Spencera773bd52006-08-04 18:18:08 +000014203 if test "x$ac_ct_AR" = x; then
14204 AR="false"
14205 else
14206 case $cross_compiling:$ac_tool_warned in
14207yes:)
14208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14209whose name does not start with the host triplet. If you think this
14210configuration is useful to you, please write to autoconf@gnu.org." >&5
14211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14212whose name does not start with the host triplet. If you think this
14213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14214ac_tool_warned=yes ;;
14215esac
14216 AR=$ac_ct_AR
14217 fi
John Criswell47fdd832003-07-14 16:52:07 +000014218else
14219 AR="$ac_cv_prog_AR"
14220fi
14221
John Criswell7a73b802003-06-30 21:59:07 +000014222if test -n "$ac_tool_prefix"; then
14223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14224set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014227if test "${ac_cv_prog_RANLIB+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230 if test -n "$RANLIB"; then
14231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014239 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 +000014240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14243 fi
14244done
14245done
Reid Spencera773bd52006-08-04 18:18:08 +000014246IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014247
14248fi
14249fi
14250RANLIB=$ac_cv_prog_RANLIB
14251if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014252 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14253echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014254else
Reid Spencera773bd52006-08-04 18:18:08 +000014255 { echo "$as_me:$LINENO: result: no" >&5
14256echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014257fi
14258
Reid Spencera773bd52006-08-04 18:18:08 +000014259
John Criswell7a73b802003-06-30 21:59:07 +000014260fi
14261if test -z "$ac_cv_prog_RANLIB"; then
14262 ac_ct_RANLIB=$RANLIB
14263 # Extract the first word of "ranlib", so it can be a program name with args.
14264set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014267if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269else
14270 if test -n "$ac_ct_RANLIB"; then
14271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14272else
14273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274for as_dir in $PATH
14275do
14276 IFS=$as_save_IFS
14277 test -z "$as_dir" && as_dir=.
14278 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014279 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 +000014280 ac_cv_prog_ac_ct_RANLIB="ranlib"
14281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14282 break 2
14283 fi
14284done
14285done
Reid Spencera773bd52006-08-04 18:18:08 +000014286IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014287
John Criswell7a73b802003-06-30 21:59:07 +000014288fi
14289fi
14290ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14291if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014292 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14293echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014294else
Reid Spencera773bd52006-08-04 18:18:08 +000014295 { echo "$as_me:$LINENO: result: no" >&5
14296echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014297fi
14298
Reid Spencera773bd52006-08-04 18:18:08 +000014299 if test "x$ac_ct_RANLIB" = x; then
14300 RANLIB=":"
14301 else
14302 case $cross_compiling:$ac_tool_warned in
14303yes:)
14304{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14305whose name does not start with the host triplet. If you think this
14306configuration is useful to you, please write to autoconf@gnu.org." >&5
14307echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14308whose name does not start with the host triplet. If you think this
14309configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14310ac_tool_warned=yes ;;
14311esac
14312 RANLIB=$ac_ct_RANLIB
14313 fi
John Criswell7a73b802003-06-30 21:59:07 +000014314else
14315 RANLIB="$ac_cv_prog_RANLIB"
14316fi
14317
14318if test -n "$ac_tool_prefix"; then
14319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14320set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014323if test "${ac_cv_prog_STRIP+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326 if test -n "$STRIP"; then
14327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14328else
14329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330for as_dir in $PATH
14331do
14332 IFS=$as_save_IFS
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014335 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 +000014336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 break 2
14339 fi
14340done
14341done
Reid Spencera773bd52006-08-04 18:18:08 +000014342IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014343
14344fi
14345fi
14346STRIP=$ac_cv_prog_STRIP
14347if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014348 { echo "$as_me:$LINENO: result: $STRIP" >&5
14349echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014350else
Reid Spencera773bd52006-08-04 18:18:08 +000014351 { echo "$as_me:$LINENO: result: no" >&5
14352echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014353fi
14354
Reid Spencera773bd52006-08-04 18:18:08 +000014355
John Criswell7a73b802003-06-30 21:59:07 +000014356fi
14357if test -z "$ac_cv_prog_STRIP"; then
14358 ac_ct_STRIP=$STRIP
14359 # Extract the first word of "strip", so it can be a program name with args.
14360set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365else
14366 if test -n "$ac_ct_STRIP"; then
14367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14368else
14369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370for as_dir in $PATH
14371do
14372 IFS=$as_save_IFS
14373 test -z "$as_dir" && as_dir=.
14374 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014375 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 +000014376 ac_cv_prog_ac_ct_STRIP="strip"
14377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 break 2
14379 fi
14380done
14381done
Reid Spencera773bd52006-08-04 18:18:08 +000014382IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014383
John Criswell7a73b802003-06-30 21:59:07 +000014384fi
14385fi
14386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14387if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14389echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014390else
Reid Spencera773bd52006-08-04 18:18:08 +000014391 { echo "$as_me:$LINENO: result: no" >&5
14392echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014393fi
14394
Reid Spencera773bd52006-08-04 18:18:08 +000014395 if test "x$ac_ct_STRIP" = x; then
14396 STRIP=":"
14397 else
14398 case $cross_compiling:$ac_tool_warned in
14399yes:)
14400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14401whose name does not start with the host triplet. If you think this
14402configuration is useful to you, please write to autoconf@gnu.org." >&5
14403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14404whose name does not start with the host triplet. If you think this
14405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14406ac_tool_warned=yes ;;
14407esac
14408 STRIP=$ac_ct_STRIP
14409 fi
John Criswell7a73b802003-06-30 21:59:07 +000014410else
14411 STRIP="$ac_cv_prog_STRIP"
14412fi
14413
14414
John Criswell7a73b802003-06-30 21:59:07 +000014415old_CC="$CC"
14416old_CFLAGS="$CFLAGS"
14417
14418# Set sane defaults for various variables
14419test -z "$AR" && AR=ar
14420test -z "$AR_FLAGS" && AR_FLAGS=cru
14421test -z "$AS" && AS=as
14422test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014423test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014424test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014425test -z "$DLLTOOL" && DLLTOOL=dlltool
14426test -z "$LD" && LD=ld
14427test -z "$LN_S" && LN_S="ln -s"
14428test -z "$MAGIC_CMD" && MAGIC_CMD=file
14429test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014430test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014431test -z "$OBJDUMP" && OBJDUMP=objdump
14432test -z "$RANLIB" && RANLIB=:
14433test -z "$STRIP" && STRIP=:
14434test -z "$ac_objext" && ac_objext=o
14435
John Criswell7a73b802003-06-30 21:59:07 +000014436# Determine commands to create old-style static archives.
14437old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14438old_postinstall_cmds='chmod 644 $oldlib'
14439old_postuninstall_cmds=
14440
14441if test -n "$RANLIB"; then
14442 case $host_os in
14443 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014445 ;;
14446 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014448 ;;
14449 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014450 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014451fi
14452
Reid Spencera773bd52006-08-04 18:18:08 +000014453for cc_temp in $compiler""; do
14454 case $cc_temp in
14455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14457 \-*) ;;
14458 *) break;;
14459 esac
14460done
14461cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14462
Reid Spencer2706f8c2004-09-19 23:53:36 +000014463
John Criswell47fdd832003-07-14 16:52:07 +000014464# Only perform the check for file, if the check method requires it
14465case $deplibs_check_method in
14466file_magic*)
14467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014468 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14469echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014470if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014472else
John Criswell47fdd832003-07-14 16:52:07 +000014473 case $MAGIC_CMD in
14474[\\/*] | ?:[\\/]*)
14475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14476 ;;
14477*)
14478 lt_save_MAGIC_CMD="$MAGIC_CMD"
14479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14481 for ac_dir in $ac_dummy; do
14482 IFS="$lt_save_ifs"
14483 test -z "$ac_dir" && ac_dir=.
14484 if test -f $ac_dir/${ac_tool_prefix}file; then
14485 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14486 if test -n "$file_magic_test_file"; then
14487 case $deplibs_check_method in
14488 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14492 $EGREP "$file_magic_regex" > /dev/null; then
14493 :
14494 else
14495 cat <<EOF 1>&2
14496
14497*** Warning: the command libtool uses to detect shared libraries,
14498*** $file_magic_cmd, produces output that libtool cannot recognize.
14499*** The result is that libtool may fail to recognize shared libraries
14500*** as such. This will affect the creation of libtool libraries that
14501*** depend on shared libraries, but programs linked with such libtool
14502*** libraries will work regardless of this problem. Nevertheless, you
14503*** may want to report the problem to your system manager and/or to
14504*** bug-libtool@gnu.org
14505
14506EOF
14507 fi ;;
14508 esac
14509 fi
14510 break
14511 fi
14512 done
14513 IFS="$lt_save_ifs"
14514 MAGIC_CMD="$lt_save_MAGIC_CMD"
14515 ;;
14516esac
John Criswell7a73b802003-06-30 21:59:07 +000014517fi
John Criswell7a73b802003-06-30 21:59:07 +000014518
John Criswell47fdd832003-07-14 16:52:07 +000014519MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14520if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014521 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14522echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014523else
Reid Spencera773bd52006-08-04 18:18:08 +000014524 { echo "$as_me:$LINENO: result: no" >&5
14525echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014526fi
John Criswell7a73b802003-06-30 21:59:07 +000014527
John Criswell47fdd832003-07-14 16:52:07 +000014528if test -z "$lt_cv_path_MAGIC_CMD"; then
14529 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014530 { echo "$as_me:$LINENO: checking for file" >&5
14531echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014532if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 case $MAGIC_CMD in
14536[\\/*] | ?:[\\/]*)
14537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14538 ;;
14539*)
14540 lt_save_MAGIC_CMD="$MAGIC_CMD"
14541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14543 for ac_dir in $ac_dummy; do
14544 IFS="$lt_save_ifs"
14545 test -z "$ac_dir" && ac_dir=.
14546 if test -f $ac_dir/file; then
14547 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14548 if test -n "$file_magic_test_file"; then
14549 case $deplibs_check_method in
14550 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14554 $EGREP "$file_magic_regex" > /dev/null; then
14555 :
14556 else
14557 cat <<EOF 1>&2
14558
14559*** Warning: the command libtool uses to detect shared libraries,
14560*** $file_magic_cmd, produces output that libtool cannot recognize.
14561*** The result is that libtool may fail to recognize shared libraries
14562*** as such. This will affect the creation of libtool libraries that
14563*** depend on shared libraries, but programs linked with such libtool
14564*** libraries will work regardless of this problem. Nevertheless, you
14565*** may want to report the problem to your system manager and/or to
14566*** bug-libtool@gnu.org
14567
14568EOF
14569 fi ;;
14570 esac
14571 fi
14572 break
14573 fi
14574 done
14575 IFS="$lt_save_ifs"
14576 MAGIC_CMD="$lt_save_MAGIC_CMD"
14577 ;;
14578esac
14579fi
14580
14581MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14582if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014583 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14584echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014585else
Reid Spencera773bd52006-08-04 18:18:08 +000014586 { echo "$as_me:$LINENO: result: no" >&5
14587echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014588fi
14589
14590 else
14591 MAGIC_CMD=:
14592 fi
14593fi
14594
14595 fi
14596 ;;
14597esac
14598
Reid Spencer17795972004-11-18 09:47:37 +000014599enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014600enable_win32_dll=no
14601
Reid Spencera773bd52006-08-04 18:18:08 +000014602# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014603if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014604 enableval=$enable_libtool_lock;
14605fi
John Criswell47fdd832003-07-14 16:52:07 +000014606
John Criswell47fdd832003-07-14 16:52:07 +000014607test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14608
John Criswell7a73b802003-06-30 21:59:07 +000014609
Reid Spencera773bd52006-08-04 18:18:08 +000014610# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014611if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014612 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014613else
14614 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014615fi
14616
John Criswell7a73b802003-06-30 21:59:07 +000014617test -z "$pic_mode" && pic_mode=default
14618
John Criswell47fdd832003-07-14 16:52:07 +000014619# Use C for the default configuration in the libtool script
14620tagname=
14621lt_save_CC="$CC"
14622ac_ext=c
14623ac_cpp='$CPP $CPPFLAGS'
14624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626ac_compiler_gnu=$ac_cv_c_compiler_gnu
14627
14628
14629# Source file extension for C test sources.
14630ac_ext=c
14631
14632# Object file extension for compiled C test sources.
14633objext=o
14634objext=$objext
14635
14636# Code to be used in simple compile tests
14637lt_simple_compile_test_code="int some_variable = 0;\n"
14638
14639# Code to be used in simple link tests
14640lt_simple_link_test_code='int main(){return(0);}\n'
14641
14642
14643# If no C compiler was specified, use CC.
14644LTCC=${LTCC-"$CC"}
14645
Reid Spencera773bd52006-08-04 18:18:08 +000014646# If no C compiler flags were specified, use CFLAGS.
14647LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14648
John Criswell47fdd832003-07-14 16:52:07 +000014649# Allow CC to be a program name with arguments.
14650compiler=$CC
14651
14652
Reid Spencera773bd52006-08-04 18:18:08 +000014653# save warnings/boilerplate of simple test code
14654ac_outfile=conftest.$ac_objext
14655printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14657_lt_compiler_boilerplate=`cat conftest.err`
14658$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014659
Reid Spencera773bd52006-08-04 18:18:08 +000014660ac_outfile=conftest.$ac_objext
14661printf "$lt_simple_link_test_code" >conftest.$ac_ext
14662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14663_lt_linker_boilerplate=`cat conftest.err`
14664$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014665
14666
John Criswell47fdd832003-07-14 16:52:07 +000014667
14668lt_prog_compiler_no_builtin_flag=
14669
14670if test "$GCC" = yes; then
14671 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14672
Reid Spencer2706f8c2004-09-19 23:53:36 +000014673
Reid Spencera773bd52006-08-04 18:18:08 +000014674{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14675echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014676if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679 lt_cv_prog_compiler_rtti_exceptions=no
14680 ac_outfile=conftest.$ac_objext
14681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14682 lt_compiler_flag="-fno-rtti -fno-exceptions"
14683 # Insert the option either (1) after the last *FLAGS variable, or
14684 # (2) before a word containing "conftest.", or (3) at the end.
14685 # Note that $ac_compile itself does not contain backslashes and begins
14686 # with a dollar sign (not a hyphen), so the echo should work correctly.
14687 # The option is referenced via a variable to avoid confusing sed.
14688 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014692 (eval echo "\"\$as_me:14692: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014693 (eval "$lt_compile" 2>conftest.err)
14694 ac_status=$?
14695 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014696 echo "$as_me:14696: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014697 if (exit $ac_status) && test -s "$ac_outfile"; then
14698 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014699 # So say no if there are warnings other than the usual output.
14700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014703 lt_cv_prog_compiler_rtti_exceptions=yes
14704 fi
14705 fi
14706 $rm conftest*
14707
14708fi
Reid Spencera773bd52006-08-04 18:18:08 +000014709{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14710echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014711
14712if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14714else
14715 :
14716fi
14717
14718fi
14719
14720lt_prog_compiler_wl=
14721lt_prog_compiler_pic=
14722lt_prog_compiler_static=
14723
Reid Spencera773bd52006-08-04 18:18:08 +000014724{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14725echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014726
14727 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014728 lt_prog_compiler_wl='-Wl,'
14729 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014730
14731 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014732 aix*)
14733 # All AIX code is PIC.
14734 if test "$host_cpu" = ia64; then
14735 # AIX 5 now supports IA64 processor
14736 lt_prog_compiler_static='-Bstatic'
14737 fi
John Criswell7a73b802003-06-30 21:59:07 +000014738 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014739
John Criswell7a73b802003-06-30 21:59:07 +000014740 amigaos*)
14741 # FIXME: we need at least 68020 code to build shared libraries, but
14742 # adding the `-m68020' flag to GCC prevents building anything better,
14743 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014744 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014745 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014746
14747 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014748 # PIC is the default for these OSes.
14749 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014750
14751 mingw* | pw32* | os2*)
14752 # This hack is so that the source file can tell whether it is being
14753 # built for inclusion in a dll (and should export symbols for example).
14754 lt_prog_compiler_pic='-DDLL_EXPORT'
14755 ;;
14756
John Criswell7a73b802003-06-30 21:59:07 +000014757 darwin* | rhapsody*)
14758 # PIC is the default on this platform
14759 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014760 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014761 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014762
Reid Spencera773bd52006-08-04 18:18:08 +000014763 interix3*)
14764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14765 # Instead, we relocate shared libraries at runtime.
14766 ;;
14767
John Criswell47fdd832003-07-14 16:52:07 +000014768 msdosdjgpp*)
14769 # Just because we use GCC doesn't mean we suddenly get shared libraries
14770 # on systems that don't support them.
14771 lt_prog_compiler_can_build_shared=no
14772 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014773 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014774
John Criswell7a73b802003-06-30 21:59:07 +000014775 sysv4*MP*)
14776 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014777 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014778 fi
14779 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014780
14781 hpux*)
14782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14783 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014784 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014785 hppa*64*|ia64*)
14786 # +Z the default
14787 ;;
14788 *)
14789 lt_prog_compiler_pic='-fPIC'
14790 ;;
14791 esac
14792 ;;
14793
John Criswell7a73b802003-06-30 21:59:07 +000014794 *)
John Criswell47fdd832003-07-14 16:52:07 +000014795 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014796 ;;
14797 esac
14798 else
John Criswell47fdd832003-07-14 16:52:07 +000014799 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014800 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014801 aix*)
14802 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014803 if test "$host_cpu" = ia64; then
14804 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014805 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014806 else
John Criswell47fdd832003-07-14 16:52:07 +000014807 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014808 fi
14809 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014810 darwin*)
14811 # PIC is the default on this platform
14812 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014813 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014814 xlc*)
14815 lt_prog_compiler_pic='-qnocommon'
14816 lt_prog_compiler_wl='-Wl,'
14817 ;;
14818 esac
14819 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014820
John Criswell47fdd832003-07-14 16:52:07 +000014821 mingw* | pw32* | os2*)
14822 # This hack is so that the source file can tell whether it is being
14823 # built for inclusion in a dll (and should export symbols for example).
14824 lt_prog_compiler_pic='-DDLL_EXPORT'
14825 ;;
14826
John Criswell7a73b802003-06-30 21:59:07 +000014827 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014828 lt_prog_compiler_wl='-Wl,'
14829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14830 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014831 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014832 hppa*64*|ia64*)
14833 # +Z the default
14834 ;;
14835 *)
14836 lt_prog_compiler_pic='+Z'
14837 ;;
14838 esac
14839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14840 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014841 ;;
14842
John Criswell47fdd832003-07-14 16:52:07 +000014843 irix5* | irix6* | nonstopux*)
14844 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014845 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014846 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014847 ;;
14848
14849 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014850 lt_prog_compiler_pic='-KPIC'
14851 lt_prog_compiler_static='-Bstatic'
14852 ;;
14853
14854 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014855 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014856 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014857 lt_prog_compiler_wl='-Wl,'
14858 lt_prog_compiler_pic='-KPIC'
14859 lt_prog_compiler_static='-static'
14860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014861 pgcc* | pgf77* | pgf90* | pgf95*)
14862 # Portland Group compilers (*not* the Pentium gcc compiler,
14863 # which looks to be a dead project)
14864 lt_prog_compiler_wl='-Wl,'
14865 lt_prog_compiler_pic='-fpic'
14866 lt_prog_compiler_static='-Bstatic'
14867 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014868 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014869 lt_prog_compiler_wl='-Wl,'
14870 # All Alpha code is PIC.
14871 lt_prog_compiler_static='-non_shared'
14872 ;;
14873 esac
John Criswell7a73b802003-06-30 21:59:07 +000014874 ;;
14875
14876 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014877 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014878 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014879 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014880 ;;
14881
John Criswell7a73b802003-06-30 21:59:07 +000014882 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014883 lt_prog_compiler_pic='-KPIC'
14884 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014885 case $cc_basename in
14886 f77* | f90* | f95*)
14887 lt_prog_compiler_wl='-Qoption ld ';;
14888 *)
14889 lt_prog_compiler_wl='-Wl,';;
14890 esac
John Criswell7a73b802003-06-30 21:59:07 +000014891 ;;
14892
14893 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014894 lt_prog_compiler_wl='-Qoption ld '
14895 lt_prog_compiler_pic='-PIC'
14896 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014897 ;;
14898
Reid Spencera773bd52006-08-04 18:18:08 +000014899 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014900 lt_prog_compiler_wl='-Wl,'
14901 lt_prog_compiler_pic='-KPIC'
14902 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014903 ;;
14904
14905 sysv4*MP*)
14906 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014907 lt_prog_compiler_pic='-Kconform_pic'
14908 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014909 fi
14910 ;;
14911
Reid Spencera773bd52006-08-04 18:18:08 +000014912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_pic='-KPIC'
14915 lt_prog_compiler_static='-Bstatic'
14916 ;;
14917
14918 unicos*)
14919 lt_prog_compiler_wl='-Wl,'
14920 lt_prog_compiler_can_build_shared=no
14921 ;;
14922
John Criswell47fdd832003-07-14 16:52:07 +000014923 uts4*)
14924 lt_prog_compiler_pic='-pic'
14925 lt_prog_compiler_static='-Bstatic'
14926 ;;
14927
John Criswell7a73b802003-06-30 21:59:07 +000014928 *)
John Criswell47fdd832003-07-14 16:52:07 +000014929 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014930 ;;
14931 esac
14932 fi
14933
Reid Spencera773bd52006-08-04 18:18:08 +000014934{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14935echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014936
John Criswell47fdd832003-07-14 16:52:07 +000014937#
14938# Check to make sure the PIC flag actually works.
14939#
14940if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014941
Reid Spencera773bd52006-08-04 18:18:08 +000014942{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14943echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014944if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
John Criswell47fdd832003-07-14 16:52:07 +000014947 lt_prog_compiler_pic_works=no
14948 ac_outfile=conftest.$ac_objext
14949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14951 # Insert the option either (1) after the last *FLAGS variable, or
14952 # (2) before a word containing "conftest.", or (3) at the end.
14953 # Note that $ac_compile itself does not contain backslashes and begins
14954 # with a dollar sign (not a hyphen), so the echo should work correctly.
14955 # The option is referenced via a variable to avoid confusing sed.
14956 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14959 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014960 (eval echo "\"\$as_me:14960: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014961 (eval "$lt_compile" 2>conftest.err)
14962 ac_status=$?
14963 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014964 echo "$as_me:14964: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014965 if (exit $ac_status) && test -s "$ac_outfile"; then
14966 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014967 # So say no if there are warnings other than the usual output.
14968 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014971 lt_prog_compiler_pic_works=yes
14972 fi
14973 fi
14974 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014975
John Criswell47fdd832003-07-14 16:52:07 +000014976fi
Reid Spencera773bd52006-08-04 18:18:08 +000014977{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14978echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014979
John Criswell47fdd832003-07-14 16:52:07 +000014980if test x"$lt_prog_compiler_pic_works" = xyes; then
14981 case $lt_prog_compiler_pic in
14982 "" | " "*) ;;
14983 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14984 esac
John Criswell7a73b802003-06-30 21:59:07 +000014985else
John Criswell47fdd832003-07-14 16:52:07 +000014986 lt_prog_compiler_pic=
14987 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014988fi
14989
John Criswell7a73b802003-06-30 21:59:07 +000014990fi
Reid Spencera773bd52006-08-04 18:18:08 +000014991case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014992 # For platforms which do not support PIC, -DPIC is meaningless:
14993 *djgpp*)
14994 lt_prog_compiler_pic=
14995 ;;
14996 *)
14997 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14998 ;;
14999esac
John Criswell7a73b802003-06-30 21:59:07 +000015000
Reid Spencera773bd52006-08-04 18:18:08 +000015001#
15002# Check to make sure the static flag actually works.
15003#
15004wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15005{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15006echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15007if test "${lt_prog_compiler_static_works+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009else
15010 lt_prog_compiler_static_works=no
15011 save_LDFLAGS="$LDFLAGS"
15012 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15013 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15015 # The linker can only warn and ignore the option if not recognized
15016 # So say no if there are warnings
15017 if test -s conftest.err; then
15018 # Append any errors to the config.log.
15019 cat conftest.err 1>&5
15020 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15022 if diff conftest.exp conftest.er2 >/dev/null; then
15023 lt_prog_compiler_static_works=yes
15024 fi
15025 else
15026 lt_prog_compiler_static_works=yes
15027 fi
15028 fi
15029 $rm conftest*
15030 LDFLAGS="$save_LDFLAGS"
15031
15032fi
15033{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15034echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15035
15036if test x"$lt_prog_compiler_static_works" = xyes; then
15037 :
15038else
15039 lt_prog_compiler_static=
15040fi
15041
15042
15043{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15044echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015045if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047else
John Criswell47fdd832003-07-14 16:52:07 +000015048 lt_cv_prog_compiler_c_o=no
15049 $rm -r conftest 2>/dev/null
15050 mkdir conftest
15051 cd conftest
15052 mkdir out
15053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015054
John Criswell47fdd832003-07-14 16:52:07 +000015055 lt_compiler_flag="-o out/conftest2.$ac_objext"
15056 # Insert the option either (1) after the last *FLAGS variable, or
15057 # (2) before a word containing "conftest.", or (3) at the end.
15058 # Note that $ac_compile itself does not contain backslashes and begins
15059 # with a dollar sign (not a hyphen), so the echo should work correctly.
15060 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15063 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015064 (eval echo "\"\$as_me:15064: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015065 (eval "$lt_compile" 2>out/conftest.err)
15066 ac_status=$?
15067 cat out/conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015068 echo "$as_me:15068: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15070 then
15071 # The compiler can only warn and ignore the option if not recognized
15072 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015076 lt_cv_prog_compiler_c_o=yes
15077 fi
15078 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015079 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015080 $rm conftest*
15081 # SGI C++ compiler will create directory out/ii_files/ for
15082 # template instantiation
15083 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15084 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015085 cd ..
15086 rmdir conftest
15087 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015088
15089fi
Reid Spencera773bd52006-08-04 18:18:08 +000015090{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15091echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015092
John Criswell7a73b802003-06-30 21:59:07 +000015093
John Criswell7a73b802003-06-30 21:59:07 +000015094hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015095if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015096 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015097 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15098echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015099 hard_links=yes
15100 $rm conftest*
15101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15102 touch conftest.a
15103 ln conftest.a conftest.b 2>&5 || hard_links=no
15104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015105 { echo "$as_me:$LINENO: result: $hard_links" >&5
15106echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015107 if test "$hard_links" = no; then
15108 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15109echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15110 need_locks=warn
15111 fi
15112else
15113 need_locks=no
15114fi
John Criswell7a73b802003-06-30 21:59:07 +000015115
Reid Spencera773bd52006-08-04 18:18:08 +000015116{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15117echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015118
15119 runpath_var=
15120 allow_undefined_flag=
15121 enable_shared_with_static_runtimes=no
15122 archive_cmds=
15123 archive_expsym_cmds=
15124 old_archive_From_new_cmds=
15125 old_archive_from_expsyms_cmds=
15126 export_dynamic_flag_spec=
15127 whole_archive_flag_spec=
15128 thread_safe_flag_spec=
15129 hardcode_libdir_flag_spec=
15130 hardcode_libdir_flag_spec_ld=
15131 hardcode_libdir_separator=
15132 hardcode_direct=no
15133 hardcode_minus_L=no
15134 hardcode_shlibpath_var=unsupported
15135 link_all_deplibs=unknown
15136 hardcode_automatic=no
15137 module_cmds=
15138 module_expsym_cmds=
15139 always_export_symbols=no
15140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15141 # include_expsyms should be a list of space-separated symbols to be *always*
15142 # included in the symbol list
15143 include_expsyms=
15144 # exclude_expsyms can be an extended regexp of symbols to exclude
15145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15147 # as well as any symbol that contains `d'.
15148 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15150 # platforms (ab)use it in PIC code, but their linkers get confused if
15151 # the symbol is explicitly referenced. Since portable code cannot
15152 # rely on this symbol name, it's probably fine to never include it in
15153 # preloaded symbol tables.
15154 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015155 # Just being paranoid about ensuring that cc_basename is set.
15156 for cc_temp in $compiler""; do
15157 case $cc_temp in
15158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15160 \-*) ;;
15161 *) break;;
15162 esac
15163done
15164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015165
15166 case $host_os in
15167 cygwin* | mingw* | pw32*)
15168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15169 # When not using gcc, we currently assume that we are using
15170 # Microsoft Visual C++.
15171 if test "$GCC" != yes; then
15172 with_gnu_ld=no
15173 fi
15174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015175 interix*)
15176 # we just hope/assume this is gcc and not c89 (= MSVC++)
15177 with_gnu_ld=yes
15178 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015179 openbsd*)
15180 with_gnu_ld=no
15181 ;;
15182 esac
15183
15184 ld_shlibs=yes
15185 if test "$with_gnu_ld" = yes; then
15186 # If archive_cmds runs LD, not CC, wlarc should be empty
15187 wlarc='${wl}'
15188
Reid Spencera773bd52006-08-04 18:18:08 +000015189 # Set some defaults for GNU ld with shared library support. These
15190 # are reset later if shared libraries are not supported. Putting them
15191 # here allows them to be overridden if necessary.
15192 runpath_var=LD_RUN_PATH
15193 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15194 export_dynamic_flag_spec='${wl}--export-dynamic'
15195 # ancient GNU ld didn't support --whole-archive et. al.
15196 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15197 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15198 else
15199 whole_archive_flag_spec=
15200 fi
15201 supports_anon_versioning=no
15202 case `$LD -v 2>/dev/null` in
15203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15206 *\ 2.11.*) ;; # other 2.11 versions
15207 *) supports_anon_versioning=yes ;;
15208 esac
15209
John Criswell47fdd832003-07-14 16:52:07 +000015210 # See if GNU ld supports shared libraries.
15211 case $host_os in
15212 aix3* | aix4* | aix5*)
15213 # On AIX/PPC, the GNU linker is very broken
15214 if test "$host_cpu" != ia64; then
15215 ld_shlibs=no
15216 cat <<EOF 1>&2
15217
15218*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15219*** to be unable to reliably create shared libraries on AIX.
15220*** Therefore, libtool is disabling shared libraries support. If you
15221*** really care for shared libraries, you may want to modify your PATH
15222*** so that a non-GNU linker is found, and then restart.
15223
15224EOF
15225 fi
15226 ;;
15227
15228 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015229 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 +000015230 hardcode_libdir_flag_spec='-L$libdir'
15231 hardcode_minus_L=yes
15232
15233 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15234 # that the semantics of dynamic libraries on AmigaOS, at least up
15235 # to version 4, is to share data among multiple programs linked
15236 # with the same dynamic library. Since this doesn't match the
15237 # behavior of shared libraries on other platforms, we can't use
15238 # them.
15239 ld_shlibs=no
15240 ;;
15241
15242 beos*)
15243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244 allow_undefined_flag=unsupported
15245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15246 # support --undefined. This deserves some investigation. FIXME
15247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15248 else
15249 ld_shlibs=no
15250 fi
15251 ;;
15252
15253 cygwin* | mingw* | pw32*)
15254 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15255 # as there is no search path for DLLs.
15256 hardcode_libdir_flag_spec='-L$libdir'
15257 allow_undefined_flag=unsupported
15258 always_export_symbols=no
15259 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015260 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 +000015261
15262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015263 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 +000015264 # If the export-symbols file already is a .def file (1st line
15265 # is EXPORTS), use it as is; otherwise, prepend...
15266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15267 cp $export_symbols $output_objdir/$soname.def;
15268 else
15269 echo EXPORTS > $output_objdir/$soname.def;
15270 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015271 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15273 else
15274 ld_shlibs=no
15275 fi
15276 ;;
15277
15278 interix3*)
15279 hardcode_direct=no
15280 hardcode_shlibpath_var=no
15281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15282 export_dynamic_flag_spec='${wl}-E'
15283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15284 # Instead, shared libraries are loaded at an image base (0x10000000 by
15285 # default) and relocated if they conflict, which is a slow very memory
15286 # consuming and fragmenting process. To avoid this, we pick a random,
15287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15290 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'
15291 ;;
15292
15293 linux*)
15294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15295 tmp_addflag=
15296 case $cc_basename,$host_cpu in
15297 pgcc*) # Portland Group C compiler
15298 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'
15299 tmp_addflag=' $pic_flag'
15300 ;;
15301 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15302 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'
15303 tmp_addflag=' $pic_flag -Mnomain' ;;
15304 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15305 tmp_addflag=' -i_dynamic' ;;
15306 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15307 tmp_addflag=' -i_dynamic -nofor_main' ;;
15308 ifc* | ifort*) # Intel Fortran compiler
15309 tmp_addflag=' -nofor_main' ;;
15310 esac
15311 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15312
15313 if test $supports_anon_versioning = yes; then
15314 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15316 $echo "local: *; };" >> $output_objdir/$libname.ver~
15317 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15318 fi
John Criswell47fdd832003-07-14 16:52:07 +000015319 else
15320 ld_shlibs=no
15321 fi
15322 ;;
15323
15324 netbsd*)
15325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15327 wlarc=
15328 else
15329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15331 fi
15332 ;;
15333
Reid Spencera773bd52006-08-04 18:18:08 +000015334 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015335 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15336 ld_shlibs=no
15337 cat <<EOF 1>&2
15338
15339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15340*** create shared libraries on Solaris systems. Therefore, libtool
15341*** is disabling shared libraries support. We urge you to upgrade GNU
15342*** binutils to release 2.9.1 or newer. Another option is to modify
15343*** your PATH or compiler configuration so that the native linker is
15344*** used, and then restart.
15345
15346EOF
15347 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15350 else
15351 ld_shlibs=no
15352 fi
15353 ;;
15354
Reid Spencera773bd52006-08-04 18:18:08 +000015355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15356 case `$LD -v 2>&1` in
15357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15358 ld_shlibs=no
15359 cat <<_LT_EOF 1>&2
15360
15361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15362*** reliably create shared libraries on SCO systems. Therefore, libtool
15363*** is disabling shared libraries support. We urge you to upgrade GNU
15364*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15365*** your PATH or compiler configuration so that the native linker is
15366*** used, and then restart.
15367
15368_LT_EOF
15369 ;;
15370 *)
15371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15372 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15375 else
15376 ld_shlibs=no
15377 fi
15378 ;;
15379 esac
15380 ;;
15381
John Criswell47fdd832003-07-14 16:52:07 +000015382 sunos4*)
15383 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15384 wlarc=
15385 hardcode_direct=yes
15386 hardcode_shlibpath_var=no
15387 ;;
15388
15389 *)
15390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15393 else
15394 ld_shlibs=no
15395 fi
15396 ;;
15397 esac
15398
Reid Spencera773bd52006-08-04 18:18:08 +000015399 if test "$ld_shlibs" = no; then
15400 runpath_var=
15401 hardcode_libdir_flag_spec=
15402 export_dynamic_flag_spec=
15403 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015404 fi
15405 else
15406 # PORTME fill in a description of your system's linker (not GNU ld)
15407 case $host_os in
15408 aix3*)
15409 allow_undefined_flag=unsupported
15410 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015411 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 +000015412 # Note: this linker hardcodes the directories in LIBPATH if there
15413 # are no directories specified by -L.
15414 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015416 # Neither direct hardcoding nor static linking is supported with a
15417 # broken collect2.
15418 hardcode_direct=unsupported
15419 fi
15420 ;;
15421
15422 aix4* | aix5*)
15423 if test "$host_cpu" = ia64; then
15424 # On IA64, the linker does run time linking by default, so we don't
15425 # have to do anything special.
15426 aix_use_runtimelinking=no
15427 exp_sym_flag='-Bexport'
15428 no_entry_flag=""
15429 else
15430 # If we're using GNU nm, then we don't want the "-C" option.
15431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15432 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15433 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'
15434 else
15435 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'
15436 fi
15437 aix_use_runtimelinking=no
15438
15439 # Test if we are trying to use run time linking or normal
15440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15441 # need to do runtime linking.
15442 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15443 for ld_flag in $LDFLAGS; do
15444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15445 aix_use_runtimelinking=yes
15446 break
15447 fi
15448 done
Reid Spencera773bd52006-08-04 18:18:08 +000015449 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015450 esac
15451
15452 exp_sym_flag='-bexport'
15453 no_entry_flag='-bnoentry'
15454 fi
15455
15456 # When large executables or shared objects are built, AIX ld can
15457 # have problems creating the table of contents. If linking a library
15458 # or program results in "error TOC overflow" add -mminimal-toc to
15459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462 archive_cmds=''
15463 hardcode_direct=yes
15464 hardcode_libdir_separator=':'
15465 link_all_deplibs=yes
15466
15467 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015468 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015469 # We only want to do this on AIX 4.2 and lower, the check
15470 # below for broken collect2 doesn't work under 4.3+
15471 collect2name=`${CC} -print-prog-name=collect2`
15472 if test -f "$collect2name" && \
15473 strings "$collect2name" | grep resolve_lib_name >/dev/null
15474 then
15475 # We have reworked collect2
15476 hardcode_direct=yes
15477 else
15478 # We have old collect2
15479 hardcode_direct=unsupported
15480 # It fails to find uninstalled libraries when the uninstalled
15481 # path is not listed in the libpath. Setting hardcode_minus_L
15482 # to unsupported forces relinking
15483 hardcode_minus_L=yes
15484 hardcode_libdir_flag_spec='-L$libdir'
15485 hardcode_libdir_separator=
15486 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015487 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015488 esac
15489 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015490 if test "$aix_use_runtimelinking" = yes; then
15491 shared_flag="$shared_flag "'${wl}-G'
15492 fi
John Criswell47fdd832003-07-14 16:52:07 +000015493 else
15494 # not using gcc
15495 if test "$host_cpu" = ia64; then
15496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15497 # chokes on -Wl,-G. The following line is correct:
15498 shared_flag='-G'
15499 else
Reid Spencera773bd52006-08-04 18:18:08 +000015500 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015501 shared_flag='${wl}-G'
15502 else
15503 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015504 fi
John Criswell47fdd832003-07-14 16:52:07 +000015505 fi
15506 fi
15507
15508 # It seems that -bexpall does not export symbols beginning with
15509 # underscore (_), so it is better to generate a list of symbols to export.
15510 always_export_symbols=yes
15511 if test "$aix_use_runtimelinking" = yes; then
15512 # Warning - without using the other runtime loading flags (-brtl),
15513 # -berok will link without error, but may produce a broken library.
15514 allow_undefined_flag='-berok'
15515 # Determine the default libpath from the value encoded in an empty executable.
15516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015522
John Criswell7a73b802003-06-30 21:59:07 +000015523int
15524main ()
15525{
John Criswell47fdd832003-07-14 16:52:07 +000015526
John Criswell7a73b802003-06-30 21:59:07 +000015527 ;
15528 return 0;
15529}
15530_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015531rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015532if { (ac_try="$ac_link"
15533case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536esac
15537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015539 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559esac
15560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_try") 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015565
John Criswell47fdd832003-07-14 16:52:07 +000015566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15567}'`
15568# Check for a 64-bit object if we didn't find anything.
15569if 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; }
15570}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015571else
15572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015573sed 's/^/| /' conftest.$ac_ext >&5
15574
Reid Spencera773bd52006-08-04 18:18:08 +000015575
John Criswell7a73b802003-06-30 21:59:07 +000015576fi
Reid Spencera773bd52006-08-04 18:18:08 +000015577
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015578rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015579 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015581
John Criswell47fdd832003-07-14 16:52:07 +000015582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015583 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 +000015584 else
15585 if test "$host_cpu" = ia64; then
15586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15587 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015588 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 +000015589 else
15590 # Determine the default libpath from the value encoded in an empty executable.
15591 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015597
John Criswell47fdd832003-07-14 16:52:07 +000015598int
15599main ()
15600{
John Criswell7a73b802003-06-30 21:59:07 +000015601
John Criswell47fdd832003-07-14 16:52:07 +000015602 ;
15603 return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015607if { (ac_try="$ac_link"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015640
John Criswell47fdd832003-07-14 16:52:07 +000015641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15642}'`
15643# Check for a 64-bit object if we didn't find anything.
15644if 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; }
15645}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015646else
John Criswell47fdd832003-07-14 16:52:07 +000015647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015648sed 's/^/| /' conftest.$ac_ext >&5
15649
Reid Spencera773bd52006-08-04 18:18:08 +000015650
John Criswell47fdd832003-07-14 16:52:07 +000015651fi
Reid Spencera773bd52006-08-04 18:18:08 +000015652
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015653rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015654 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015656
John Criswell47fdd832003-07-14 16:52:07 +000015657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658 # Warning - without using the other run time loading flags,
15659 # -berok will link without error, but may produce a broken library.
15660 no_undefined_flag=' ${wl}-bernotok'
15661 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015662 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015663 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015664 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015665 # This is similar to how AIX traditionally builds its shared libraries.
15666 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 +000015667 fi
15668 fi
John Criswell7a73b802003-06-30 21:59:07 +000015669 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015670
15671 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015672 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 +000015673 hardcode_libdir_flag_spec='-L$libdir'
15674 hardcode_minus_L=yes
15675 # see comment about different semantics on the GNU ld section
15676 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015677 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015678
Reid Spencer2706f8c2004-09-19 23:53:36 +000015679 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015680 export_dynamic_flag_spec=-rdynamic
15681 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015682
John Criswell47fdd832003-07-14 16:52:07 +000015683 cygwin* | mingw* | pw32*)
15684 # When not using gcc, we currently assume that we are using
15685 # Microsoft Visual C++.
15686 # hardcode_libdir_flag_spec is actually meaningless, as there is
15687 # no search path for DLLs.
15688 hardcode_libdir_flag_spec=' '
15689 allow_undefined_flag=unsupported
15690 # Tell ltmain to make .lib files, not .a files.
15691 libext=lib
15692 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015693 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015694 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015695 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015696 # The linker will automatically build a .lib file if we build a DLL.
15697 old_archive_From_new_cmds='true'
15698 # FIXME: Should let the user specify the lib program.
15699 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15700 fix_srcfile_path='`cygpath -w "$srcfile"`'
15701 enable_shared_with_static_runtimes=yes
15702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015703
John Criswell47fdd832003-07-14 16:52:07 +000015704 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015705 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015706 rhapsody* | darwin1.[012])
15707 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15708 ;;
15709 *) # Darwin 1.3 on
15710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15711 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15712 else
15713 case ${MACOSX_DEPLOYMENT_TARGET} in
15714 10.[012])
15715 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15716 ;;
15717 10.*)
15718 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15719 ;;
15720 esac
15721 fi
15722 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015723 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015724 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015725 hardcode_direct=no
15726 hardcode_automatic=yes
15727 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015728 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015729 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015730 if test "$GCC" = yes ; then
15731 output_verbose_link_cmd='echo'
15732 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15733 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015734 # 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 +000015735 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}'
15736 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 +000015737 else
Reid Spencera773bd52006-08-04 18:18:08 +000015738 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015739 xlc*)
15740 output_verbose_link_cmd='echo'
15741 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15742 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015743 # 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 +000015744 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}'
15745 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 +000015746 ;;
15747 *)
15748 ld_shlibs=no
15749 ;;
15750 esac
John Criswell7a73b802003-06-30 21:59:07 +000015751 fi
John Criswell47fdd832003-07-14 16:52:07 +000015752 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015753
John Criswell47fdd832003-07-14 16:52:07 +000015754 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015756 hardcode_libdir_flag_spec='-L$libdir'
15757 hardcode_shlibpath_var=no
15758 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015759
John Criswell47fdd832003-07-14 16:52:07 +000015760 freebsd1*)
15761 ld_shlibs=no
15762 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015763
John Criswell47fdd832003-07-14 16:52:07 +000015764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15765 # support. Future versions do this automatically, but an explicit c++rt0.o
15766 # does not break anything, and helps significantly (at the cost of a little
15767 # extra space).
15768 freebsd2.2*)
15769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15770 hardcode_libdir_flag_spec='-R$libdir'
15771 hardcode_direct=yes
15772 hardcode_shlibpath_var=no
15773 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015774
John Criswell47fdd832003-07-14 16:52:07 +000015775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15776 freebsd2*)
15777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_direct=yes
15779 hardcode_minus_L=yes
15780 hardcode_shlibpath_var=no
15781 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015782
John Criswell47fdd832003-07-14 16:52:07 +000015783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015784 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015785 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15786 hardcode_libdir_flag_spec='-R$libdir'
15787 hardcode_direct=yes
15788 hardcode_shlibpath_var=no
15789 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015790
John Criswell47fdd832003-07-14 16:52:07 +000015791 hpux9*)
15792 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015793 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 +000015794 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015795 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 +000015796 fi
15797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15798 hardcode_libdir_separator=:
15799 hardcode_direct=yes
15800
15801 # hardcode_minus_L: Not really in the search PATH,
15802 # but as the default location of the library.
15803 hardcode_minus_L=yes
15804 export_dynamic_flag_spec='${wl}-E'
15805 ;;
15806
Reid Spencera773bd52006-08-04 18:18:08 +000015807 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15810 else
15811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15812 fi
15813 if test "$with_gnu_ld" = no; then
15814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815 hardcode_libdir_separator=:
15816
15817 hardcode_direct=yes
15818 export_dynamic_flag_spec='${wl}-E'
15819
15820 # hardcode_minus_L: Not really in the search PATH,
15821 # but as the default location of the library.
15822 hardcode_minus_L=yes
15823 fi
15824 ;;
15825
15826 hpux11*)
15827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15828 case $host_cpu in
15829 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015830 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015832 ia64*)
15833 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15834 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015835 *)
15836 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15837 ;;
15838 esac
15839 else
Reid Spencera773bd52006-08-04 18:18:08 +000015840 case $host_cpu in
15841 hppa*64*)
15842 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 ;;
15844 ia64*)
15845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015846 ;;
15847 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015848 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 +000015849 ;;
15850 esac
15851 fi
15852 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15854 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015855
Reid Spencera773bd52006-08-04 18:18:08 +000015856 case $host_cpu in
15857 hppa*64*|ia64*)
15858 hardcode_libdir_flag_spec_ld='+b $libdir'
15859 hardcode_direct=no
15860 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015861 ;;
15862 *)
John Criswell47fdd832003-07-14 16:52:07 +000015863 hardcode_direct=yes
15864 export_dynamic_flag_spec='${wl}-E'
15865
15866 # hardcode_minus_L: Not really in the search PATH,
15867 # but as the default location of the library.
15868 hardcode_minus_L=yes
15869 ;;
15870 esac
15871 fi
15872 ;;
15873
15874 irix5* | irix6* | nonstopux*)
15875 if test "$GCC" = yes; then
15876 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'
15877 else
15878 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'
15879 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15880 fi
15881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882 hardcode_libdir_separator=:
15883 link_all_deplibs=yes
15884 ;;
15885
15886 netbsd*)
15887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15889 else
15890 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15891 fi
15892 hardcode_libdir_flag_spec='-R$libdir'
15893 hardcode_direct=yes
15894 hardcode_shlibpath_var=no
15895 ;;
15896
15897 newsos6)
15898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_direct=yes
15900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15901 hardcode_libdir_separator=:
15902 hardcode_shlibpath_var=no
15903 ;;
15904
15905 openbsd*)
15906 hardcode_direct=yes
15907 hardcode_shlibpath_var=no
15908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015910 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 +000015911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15912 export_dynamic_flag_spec='${wl}-E'
15913 else
15914 case $host_os in
15915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec='-R$libdir'
15918 ;;
15919 *)
15920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15922 ;;
15923 esac
15924 fi
15925 ;;
15926
15927 os2*)
15928 hardcode_libdir_flag_spec='-L$libdir'
15929 hardcode_minus_L=yes
15930 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015931 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 +000015932 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15933 ;;
15934
15935 osf3*)
15936 if test "$GCC" = yes; then
15937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15938 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'
15939 else
15940 allow_undefined_flag=' -expect_unresolved \*'
15941 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'
15942 fi
15943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944 hardcode_libdir_separator=:
15945 ;;
15946
15947 osf4* | osf5*) # as osf3* with the addition of -msym flag
15948 if test "$GCC" = yes; then
15949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15950 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'
15951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15952 else
15953 allow_undefined_flag=' -expect_unresolved \*'
15954 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 +000015955 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 +000015956 $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 +000015957
John Criswell47fdd832003-07-14 16:52:07 +000015958 # Both c and cxx compiler support -rpath directly
15959 hardcode_libdir_flag_spec='-rpath $libdir'
15960 fi
15961 hardcode_libdir_separator=:
15962 ;;
15963
John Criswell47fdd832003-07-14 16:52:07 +000015964 solaris*)
15965 no_undefined_flag=' -z text'
15966 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015967 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015968 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015969 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970 $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 +000015971 else
Reid Spencera773bd52006-08-04 18:18:08 +000015972 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015974 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975 $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 +000015976 fi
15977 hardcode_libdir_flag_spec='-R$libdir'
15978 hardcode_shlibpath_var=no
15979 case $host_os in
15980 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015981 *)
15982 # The compiler driver will combine linker options so we
15983 # cannot just pass the convience library names through
15984 # without $wl, iff we do not link with $LD.
15985 # Luckily, gcc supports the same syntax we need for Sun Studio.
15986 # Supported since Solaris 2.6 (maybe 2.5.1?)
15987 case $wlarc in
15988 '')
15989 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15990 *)
15991 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' ;;
15992 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015993 esac
15994 link_all_deplibs=yes
15995 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015996
John Criswell47fdd832003-07-14 16:52:07 +000015997 sunos4*)
15998 if test "x$host_vendor" = xsequent; then
15999 # Use $CC to link under sequent, because it throws in some extra .o
16000 # files that make .init and .fini sections work.
16001 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16002 else
16003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16004 fi
16005 hardcode_libdir_flag_spec='-L$libdir'
16006 hardcode_direct=yes
16007 hardcode_minus_L=yes
16008 hardcode_shlibpath_var=no
16009 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016010
John Criswell47fdd832003-07-14 16:52:07 +000016011 sysv4)
16012 case $host_vendor in
16013 sni)
16014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16015 hardcode_direct=yes # is this really true???
16016 ;;
16017 siemens)
16018 ## LD is ld it makes a PLAMLIB
16019 ## CC just makes a GrossModule.
16020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16021 reload_cmds='$CC -r -o $output$reload_objs'
16022 hardcode_direct=no
16023 ;;
16024 motorola)
16025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16027 ;;
16028 esac
16029 runpath_var='LD_RUN_PATH'
16030 hardcode_shlibpath_var=no
16031 ;;
16032
16033 sysv4.3*)
16034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16035 hardcode_shlibpath_var=no
16036 export_dynamic_flag_spec='-Bexport'
16037 ;;
16038
16039 sysv4*MP*)
16040 if test -d /usr/nec; then
16041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_shlibpath_var=no
16043 runpath_var=LD_RUN_PATH
16044 hardcode_runpath_var=yes
16045 ld_shlibs=yes
16046 fi
16047 ;;
16048
Reid Spencera773bd52006-08-04 18:18:08 +000016049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16050 no_undefined_flag='${wl}-z,text'
16051 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016052 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016053 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016054
John Criswell47fdd832003-07-14 16:52:07 +000016055 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 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 +000016058 else
Reid Spencera773bd52006-08-04 18:18:08 +000016059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16060 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 +000016061 fi
John Criswell47fdd832003-07-14 16:52:07 +000016062 ;;
16063
Reid Spencera773bd52006-08-04 18:18:08 +000016064 sysv5* | sco3.2v5* | sco5v6*)
16065 # Note: We can NOT use -z defs as we might desire, because we do not
16066 # link with -lc, and that would cause any symbols used from libc to
16067 # always be unresolved, which means just about no library would
16068 # ever link correctly. If we're not using GNU ld we use -z text
16069 # though, which does catch some bad symbols but isn't as heavy-handed
16070 # as -z defs.
16071 no_undefined_flag='${wl}-z,text'
16072 allow_undefined_flag='${wl}-z,nodefs'
16073 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016074 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016075 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16076 hardcode_libdir_separator=':'
16077 link_all_deplibs=yes
16078 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016079 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016080
16081 if test "$GCC" = yes; then
16082 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16084 else
16085 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16087 fi
John Criswell47fdd832003-07-14 16:52:07 +000016088 ;;
16089
16090 uts4*)
16091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092 hardcode_libdir_flag_spec='-L$libdir'
16093 hardcode_shlibpath_var=no
16094 ;;
16095
16096 *)
16097 ld_shlibs=no
16098 ;;
16099 esac
16100 fi
16101
Reid Spencera773bd52006-08-04 18:18:08 +000016102{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16103echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016104test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016105
John Criswell47fdd832003-07-14 16:52:07 +000016106#
16107# Do we need to explicitly link libc?
16108#
16109case "x$archive_cmds_need_lc" in
16110x|xyes)
16111 # Assume -lc should be added
16112 archive_cmds_need_lc=yes
16113
16114 if test "$enable_shared" = yes && test "$GCC" = yes; then
16115 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016116 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016117 # FIXME: we may have to deal with multi-command sequences.
16118 ;;
16119 '$CC '*)
16120 # Test whether the compiler implicitly links with -lc since on some
16121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16122 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016123 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16124echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016125 $rm conftest*
16126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16127
16128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129 (eval $ac_compile) 2>&5
16130 ac_status=$?
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } 2>conftest.err; then
16133 soname=conftest
16134 lib=conftest
16135 libobjs=conftest.$ac_objext
16136 deplibs=
16137 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016138 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016139 compiler_flags=-v
16140 linker_flags=-v
16141 verstring=
16142 output_objdir=.
16143 libname=conftest
16144 lt_save_allow_undefined_flag=$allow_undefined_flag
16145 allow_undefined_flag=
16146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16147 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }
16151 then
16152 archive_cmds_need_lc=no
16153 else
16154 archive_cmds_need_lc=yes
16155 fi
16156 allow_undefined_flag=$lt_save_allow_undefined_flag
16157 else
16158 cat conftest.err 1>&5
16159 fi
16160 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016161 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16162echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016163 ;;
16164 esac
16165 fi
16166 ;;
16167esac
16168
Reid Spencera773bd52006-08-04 18:18:08 +000016169{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16170echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016171library_names_spec=
16172libname_spec='lib$name'
16173soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016174shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016175postinstall_cmds=
16176postuninstall_cmds=
16177finish_cmds=
16178finish_eval=
16179shlibpath_var=
16180shlibpath_overrides_runpath=unknown
16181version_type=none
16182dynamic_linker="$host_os ld.so"
16183sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016184if test "$GCC" = yes; then
16185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16186 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16187 # if the path contains ";" then we assume it to be the separator
16188 # otherwise default to the standard path separator (i.e. ":") - it is
16189 # assumed that no part of a normal pathname contains ";" but that should
16190 # okay in the real world where ";" in dirpaths is itself problematic.
16191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16192 else
16193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16194 fi
16195else
16196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16197fi
16198need_lib_prefix=unknown
16199hardcode_into_libs=no
16200
16201# when you set need_version to no, make sure it does not cause -set_version
16202# flags to be left without arguments
16203need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016204
16205case $host_os in
16206aix3*)
16207 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016209 shlibpath_var=LIBPATH
16210
John Criswell47fdd832003-07-14 16:52:07 +000016211 # AIX 3 has no versioning support, so we append a major version to the name.
16212 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016213 ;;
16214
16215aix4* | aix5*)
16216 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016217 need_lib_prefix=no
16218 need_version=no
16219 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016220 if test "$host_cpu" = ia64; then
16221 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016223 shlibpath_var=LD_LIBRARY_PATH
16224 else
16225 # With GCC up to 2.95.x, collect2 would create an import file
16226 # for dependence libraries. The import file would start with
16227 # the line `#! .'. This would cause the generated library to
16228 # depend on `.', always an invalid library. This was fixed in
16229 # development snapshots of GCC prior to 3.0.
16230 case $host_os in
16231 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16233 echo ' yes '
16234 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16235 :
16236 else
16237 can_build_shared=no
16238 fi
16239 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016240 esac
John Criswell47fdd832003-07-14 16:52:07 +000016241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16242 # soname into executable. Probably we can add versioning support to
16243 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016244 if test "$aix_use_runtimelinking" = yes; then
16245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16246 # instead of lib<name>.a to let people know that these are not
16247 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016249 else
16250 # We preserve .a as extension for shared libraries through AIX4.2
16251 # and later when we are not doing run time linking.
16252 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016253 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016254 fi
16255 shlibpath_var=LIBPATH
16256 fi
16257 ;;
16258
16259amigaos*)
16260 library_names_spec='$libname.ixlibrary $libname.a'
16261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016262 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 +000016263 ;;
16264
16265beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016266 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016267 dynamic_linker="$host_os ld.so"
16268 shlibpath_var=LIBRARY_PATH
16269 ;;
16270
Reid Spencer2706f8c2004-09-19 23:53:36 +000016271bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016272 version_type=linux
16273 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016280 # the default ld.so.conf also contains /usr/contrib/lib and
16281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16282 # libtool to hard-code these into programs
16283 ;;
16284
16285cygwin* | mingw* | pw32*)
16286 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016287 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016288 need_version=no
16289 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016290
John Criswell7a73b802003-06-30 21:59:07 +000016291 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016292 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016293 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016295 postinstall_cmds='base_file=`basename \${file}`~
16296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16297 dldir=$destdir/`dirname \$dlpath`~
16298 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016299 $install_prog $dir/$dlname \$dldir/$dlname~
16300 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16302 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016303 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016304 shlibpath_overrides_runpath=yes
16305
16306 case $host_os in
16307 cygwin*)
16308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16309 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 +000016310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016311 ;;
16312 mingw*)
16313 # MinGW DLLs use traditional 'lib' prefix
16314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16317 # It is most probably a Windows format PATH printed by
16318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16319 # path with ; separators, and with drive letters. We can handle the
16320 # drive letters (cygwin fileutils understands them), so leave them,
16321 # especially as we might pass files found there to a mingw objdump,
16322 # which wouldn't understand a cygwinified path. Ahh.
16323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16324 else
16325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16326 fi
16327 ;;
16328 pw32*)
16329 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016330 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 +000016331 ;;
16332 esac
John Criswell7a73b802003-06-30 21:59:07 +000016333 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016334
John Criswell7a73b802003-06-30 21:59:07 +000016335 *)
John Criswell47fdd832003-07-14 16:52:07 +000016336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016337 ;;
16338 esac
16339 dynamic_linker='Win32 ld.exe'
16340 # FIXME: first we should search . and the directory the executable is in
16341 shlibpath_var=PATH
16342 ;;
16343
16344darwin* | rhapsody*)
16345 dynamic_linker="$host_os dyld"
16346 version_type=darwin
16347 need_lib_prefix=no
16348 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016350 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016351 shlibpath_overrides_runpath=yes
16352 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016353 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016355 if test "$GCC" = yes; then
16356 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"`
16357 else
16358 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016359 fi
16360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16361 ;;
16362
16363dgux*)
16364 version_type=linux
16365 need_lib_prefix=no
16366 need_version=no
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016370 ;;
16371
16372freebsd1*)
16373 dynamic_linker=no
16374 ;;
16375
Reid Spencer2706f8c2004-09-19 23:53:36 +000016376kfreebsd*-gnu)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=no
16384 hardcode_into_libs=yes
16385 dynamic_linker='GNU ld.so'
16386 ;;
16387
Reid Spencera773bd52006-08-04 18:18:08 +000016388freebsd* | dragonfly*)
16389 # DragonFly does not have aout. When/if they implement a new
16390 # versioning mechanism, adjust this.
16391 if test -x /usr/bin/objformat; then
16392 objformat=`/usr/bin/objformat`
16393 else
16394 case $host_os in
16395 freebsd[123]*) objformat=aout ;;
16396 *) objformat=elf ;;
16397 esac
16398 fi
John Criswell7a73b802003-06-30 21:59:07 +000016399 version_type=freebsd-$objformat
16400 case $version_type in
16401 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016403 need_version=no
16404 need_lib_prefix=no
16405 ;;
16406 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016408 need_version=yes
16409 ;;
16410 esac
16411 shlibpath_var=LD_LIBRARY_PATH
16412 case $host_os in
16413 freebsd2*)
16414 shlibpath_overrides_runpath=yes
16415 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016416 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016417 shlibpath_overrides_runpath=yes
16418 hardcode_into_libs=yes
16419 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016422 shlibpath_overrides_runpath=no
16423 hardcode_into_libs=yes
16424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016425 freebsd*) # from 4.6 on
16426 shlibpath_overrides_runpath=yes
16427 hardcode_into_libs=yes
16428 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016429 esac
16430 ;;
16431
16432gnu*)
16433 version_type=linux
16434 need_lib_prefix=no
16435 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016438 shlibpath_var=LD_LIBRARY_PATH
16439 hardcode_into_libs=yes
16440 ;;
16441
16442hpux9* | hpux10* | hpux11*)
16443 # Give a soname corresponding to the major version so that dld.sl refuses to
16444 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016445 version_type=sunos
16446 need_lib_prefix=no
16447 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016448 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016449 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016450 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016451 hardcode_into_libs=yes
16452 dynamic_linker="$host_os dld.so"
16453 shlibpath_var=LD_LIBRARY_PATH
16454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 if test "X$HPUX_IA64_MODE" = X32; then
16458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16459 else
16460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16461 fi
16462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16463 ;;
16464 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016465 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016466 hardcode_into_libs=yes
16467 dynamic_linker="$host_os dld.sl"
16468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16474 ;;
16475 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016476 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016477 dynamic_linker="$host_os dld.sl"
16478 shlibpath_var=SHLIB_PATH
16479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 ;;
16483 esac
John Criswell7a73b802003-06-30 21:59:07 +000016484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16485 postinstall_cmds='chmod 555 $lib'
16486 ;;
16487
Reid Spencera773bd52006-08-04 18:18:08 +000016488interix3*)
16489 version_type=linux
16490 need_lib_prefix=no
16491 need_version=no
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 shlibpath_overrides_runpath=no
16497 hardcode_into_libs=yes
16498 ;;
16499
John Criswell47fdd832003-07-14 16:52:07 +000016500irix5* | irix6* | nonstopux*)
16501 case $host_os in
16502 nonstopux*) version_type=nonstopux ;;
16503 *)
16504 if test "$lt_cv_prog_gnu_ld" = yes; then
16505 version_type=linux
16506 else
16507 version_type=irix
16508 fi ;;
16509 esac
John Criswell7a73b802003-06-30 21:59:07 +000016510 need_lib_prefix=no
16511 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016512 soname_spec='${libname}${release}${shared_ext}$major'
16513 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 +000016514 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016515 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016516 libsuff= shlibsuff=
16517 ;;
16518 *)
16519 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16521 libsuff= shlibsuff= libmagic=32-bit;;
16522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16523 libsuff=32 shlibsuff=N32 libmagic=N32;;
16524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016526 *) libsuff= shlibsuff= libmagic=never-match;;
16527 esac
16528 ;;
16529 esac
16530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16531 shlibpath_overrides_runpath=no
16532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016534 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016535 ;;
16536
16537# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016538linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016539 dynamic_linker=no
16540 ;;
16541
16542# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016543linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016544 version_type=linux
16545 need_lib_prefix=no
16546 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 shlibpath_overrides_runpath=no
16552 # This implies no fast_install, which is unacceptable.
16553 # Some rework will be needed to allow for fast_install
16554 # before this can be enabled.
16555 hardcode_into_libs=yes
16556
Reid Spencer2706f8c2004-09-19 23:53:36 +000016557 # Append ld.so.conf contents to the search path
16558 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016559 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 +000016560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16561 fi
16562
John Criswell7a73b802003-06-30 21:59:07 +000016563 # We used to test for /lib/ld.so.1 and disable shared libraries on
16564 # powerpc, because MkLinux only supported shared libraries with the
16565 # GNU dynamic linker. Since this was broken with cross compilers,
16566 # most powerpc-linux boxes support dynamic linking these days and
16567 # people can always --disable-shared, the test was removed, and we
16568 # assume the GNU/Linux dynamic linker is in use.
16569 dynamic_linker='GNU/Linux ld.so'
16570 ;;
16571
Reid Spencer2706f8c2004-09-19 23:53:36 +000016572knetbsd*-gnu)
16573 version_type=linux
16574 need_lib_prefix=no
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=no
16580 hardcode_into_libs=yes
16581 dynamic_linker='GNU ld.so'
16582 ;;
16583
John Criswell7a73b802003-06-30 21:59:07 +000016584netbsd*)
16585 version_type=sunos
16586 need_lib_prefix=no
16587 need_version=no
16588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16591 dynamic_linker='NetBSD (a.out) ld.so'
16592 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016594 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016595 dynamic_linker='NetBSD ld.elf_so'
16596 fi
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=yes
16599 hardcode_into_libs=yes
16600 ;;
16601
16602newsos6)
16603 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 shlibpath_overrides_runpath=yes
16607 ;;
16608
Reid Spencer2706f8c2004-09-19 23:53:36 +000016609nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016610 version_type=linux
16611 need_lib_prefix=no
16612 need_version=no
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=yes
16617 ;;
16618
16619openbsd*)
16620 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016621 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016622 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16624 case $host_os in
16625 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16626 *) need_version=no ;;
16627 esac
John Criswell47fdd832003-07-14 16:52:07 +000016628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16630 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016631 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 +000016632 case $host_os in
16633 openbsd2.[89] | openbsd2.[89].*)
16634 shlibpath_overrides_runpath=no
16635 ;;
16636 *)
16637 shlibpath_overrides_runpath=yes
16638 ;;
16639 esac
John Criswell7a73b802003-06-30 21:59:07 +000016640 else
16641 shlibpath_overrides_runpath=yes
16642 fi
John Criswell7a73b802003-06-30 21:59:07 +000016643 ;;
16644
16645os2*)
16646 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016648 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016649 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016650 dynamic_linker='OS/2 ld.exe'
16651 shlibpath_var=LIBPATH
16652 ;;
16653
16654osf3* | osf4* | osf5*)
16655 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016656 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016657 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016658 soname_spec='${libname}${release}${shared_ext}$major'
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016660 shlibpath_var=LD_LIBRARY_PATH
16661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16663 ;;
16664
John Criswell7a73b802003-06-30 21:59:07 +000016665solaris*)
16666 version_type=linux
16667 need_lib_prefix=no
16668 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16674 # ldd complains unless libraries are executable
16675 postinstall_cmds='chmod +x $lib'
16676 ;;
16677
16678sunos4*)
16679 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=yes
16684 if test "$with_gnu_ld" = yes; then
16685 need_lib_prefix=no
16686 fi
16687 need_version=yes
16688 ;;
16689
Reid Spencera773bd52006-08-04 18:18:08 +000016690sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016691 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016694 shlibpath_var=LD_LIBRARY_PATH
16695 case $host_vendor in
16696 sni)
16697 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016698 need_lib_prefix=no
16699 export_dynamic_flag_spec='${wl}-Blargedynsym'
16700 runpath_var=LD_RUN_PATH
16701 ;;
16702 siemens)
16703 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016704 ;;
16705 motorola)
16706 need_lib_prefix=no
16707 need_version=no
16708 shlibpath_overrides_runpath=no
16709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16710 ;;
16711 esac
16712 ;;
16713
John Criswell7a73b802003-06-30 21:59:07 +000016714sysv4*MP*)
16715 if test -d /usr/nec ;then
16716 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16718 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016719 shlibpath_var=LD_LIBRARY_PATH
16720 fi
16721 ;;
16722
Reid Spencera773bd52006-08-04 18:18:08 +000016723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16724 version_type=freebsd-elf
16725 need_lib_prefix=no
16726 need_version=no
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 hardcode_into_libs=yes
16731 if test "$with_gnu_ld" = yes; then
16732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16733 shlibpath_overrides_runpath=no
16734 else
16735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16736 shlibpath_overrides_runpath=yes
16737 case $host_os in
16738 sco3.2v5*)
16739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16740 ;;
16741 esac
16742 fi
16743 sys_lib_dlsearch_path_spec='/usr/lib'
16744 ;;
16745
John Criswell47fdd832003-07-14 16:52:07 +000016746uts4*)
16747 version_type=linux
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 ;;
16752
John Criswell7a73b802003-06-30 21:59:07 +000016753*)
16754 dynamic_linker=no
16755 ;;
16756esac
Reid Spencera773bd52006-08-04 18:18:08 +000016757{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16758echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016759test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016760
Reid Spencera773bd52006-08-04 18:18:08 +000016761variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16762if test "$GCC" = yes; then
16763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16764fi
16765
16766{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16767echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016768hardcode_action=
16769if test -n "$hardcode_libdir_flag_spec" || \
16770 test -n "$runpath_var" || \
16771 test "X$hardcode_automatic" = "Xyes" ; then
16772
16773 # We can hardcode non-existant directories.
16774 if test "$hardcode_direct" != no &&
16775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16776 # have to relink, otherwise we might link with an installed library
16777 # when we should be linking with a yet-to-be-installed one
16778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16779 test "$hardcode_minus_L" != no; then
16780 # Linking always hardcodes the temporary library directory.
16781 hardcode_action=relink
16782 else
16783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16784 hardcode_action=immediate
16785 fi
16786else
16787 # We cannot hardcode anything, or else we can only hardcode existing
16788 # directories.
16789 hardcode_action=unsupported
16790fi
Reid Spencera773bd52006-08-04 18:18:08 +000016791{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16792echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016793
16794if test "$hardcode_action" = relink; then
16795 # Fast installation is not supported
16796 enable_fast_install=no
16797elif test "$shlibpath_overrides_runpath" = yes ||
16798 test "$enable_shared" = no; then
16799 # Fast installation is not necessary
16800 enable_fast_install=needless
16801fi
16802
16803striplib=
16804old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016805{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16806echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016807if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16808 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16809 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016810 { echo "$as_me:$LINENO: result: yes" >&5
16811echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812else
16813# FIXME - insert some real tests, host_os isn't really good enough
16814 case $host_os in
16815 darwin*)
16816 if test -n "$STRIP" ; then
16817 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016818 { echo "$as_me:$LINENO: result: yes" >&5
16819echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016820 else
Reid Spencera773bd52006-08-04 18:18:08 +000016821 { echo "$as_me:$LINENO: result: no" >&5
16822echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016823fi
16824 ;;
16825 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016826 { echo "$as_me:$LINENO: result: no" >&5
16827echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828 ;;
16829 esac
16830fi
16831
John Criswell7a73b802003-06-30 21:59:07 +000016832if test "x$enable_dlopen" != xyes; then
16833 enable_dlopen=unknown
16834 enable_dlopen_self=unknown
16835 enable_dlopen_self_static=unknown
16836else
16837 lt_cv_dlopen=no
16838 lt_cv_dlopen_libs=
16839
16840 case $host_os in
16841 beos*)
16842 lt_cv_dlopen="load_add_on"
16843 lt_cv_dlopen_libs=
16844 lt_cv_dlopen_self=yes
16845 ;;
16846
John Criswell47fdd832003-07-14 16:52:07 +000016847 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016848 lt_cv_dlopen="LoadLibrary"
16849 lt_cv_dlopen_libs=
16850 ;;
16851
John Criswell47fdd832003-07-14 16:52:07 +000016852 cygwin*)
16853 lt_cv_dlopen="dlopen"
16854 lt_cv_dlopen_libs=
16855 ;;
16856
16857 darwin*)
16858 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016859 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016861if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 ac_check_lib_save_LIBS=$LIBS
16865LIBS="-ldl $LIBS"
16866cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016872
Reid Spencera773bd52006-08-04 18:18:08 +000016873/* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016876#ifdef __cplusplus
16877extern "C"
16878#endif
John Criswell47fdd832003-07-14 16:52:07 +000016879char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016880int
16881main ()
16882{
Reid Spencera773bd52006-08-04 18:18:08 +000016883return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016889if { (ac_try="$ac_link"
16890case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893esac
16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000016901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest$ac_exeext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916esac
16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016922 ac_cv_lib_dl_dlopen=yes
16923else
16924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016925sed 's/^/| /' conftest.$ac_ext >&5
16926
Reid Spencera773bd52006-08-04 18:18:08 +000016927 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016928fi
Reid Spencera773bd52006-08-04 18:18:08 +000016929
Gordon Henriksen40e7f192008-10-22 12:40:55 +000016930rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016931 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016932LIBS=$ac_check_lib_save_LIBS
16933fi
Reid Spencera773bd52006-08-04 18:18:08 +000016934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16935echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016936if test $ac_cv_lib_dl_dlopen = yes; then
16937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16938else
16939
16940 lt_cv_dlopen="dyld"
16941 lt_cv_dlopen_libs=
16942 lt_cv_dlopen_self=yes
16943
16944fi
16945
16946 ;;
16947
John Criswell7a73b802003-06-30 21:59:07 +000016948 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016949 { echo "$as_me:$LINENO: checking for shl_load" >&5
16950echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016951if test "${ac_cv_func_shl_load+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962#define shl_load innocuous_shl_load
16963
John Criswell7a73b802003-06-30 21:59:07 +000016964/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016965 which can conflict with char shl_load (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016968
John Criswell0c38eaf2003-09-10 15:17:25 +000016969#ifdef __STDC__
16970# include <limits.h>
16971#else
16972# include <assert.h>
16973#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974
16975#undef shl_load
16976
Reid Spencera773bd52006-08-04 18:18:08 +000016977/* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016980#ifdef __cplusplus
16981extern "C"
16982#endif
John Criswell7a73b802003-06-30 21:59:07 +000016983char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016984/* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016987#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016988choke me
John Criswell7a73b802003-06-30 21:59:07 +000016989#endif
16990
John Criswell0c38eaf2003-09-10 15:17:25 +000016991int
16992main ()
16993{
Reid Spencera773bd52006-08-04 18:18:08 +000016994return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016995 ;
16996 return 0;
16997}
16998_ACEOF
16999rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017000if { (ac_try="$ac_link"
17001case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017esac
17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027esac
17028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017033 ac_cv_func_shl_load=yes
17034else
17035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017036sed 's/^/| /' conftest.$ac_ext >&5
17037
Reid Spencera773bd52006-08-04 18:18:08 +000017038 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017039fi
Reid Spencera773bd52006-08-04 18:18:08 +000017040
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017041rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017042 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017043fi
Reid Spencera773bd52006-08-04 18:18:08 +000017044{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17045echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017046if test $ac_cv_func_shl_load = yes; then
17047 lt_cv_dlopen="shl_load"
17048else
Reid Spencera773bd52006-08-04 18:18:08 +000017049 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17050echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017051if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054 ac_check_lib_save_LIBS=$LIBS
17055LIBS="-ldld $LIBS"
17056cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017062
Reid Spencera773bd52006-08-04 18:18:08 +000017063/* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017066#ifdef __cplusplus
17067extern "C"
17068#endif
John Criswell7a73b802003-06-30 21:59:07 +000017069char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017070int
17071main ()
17072{
Reid Spencera773bd52006-08-04 18:18:08 +000017073return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017074 ;
17075 return 0;
17076}
17077_ACEOF
17078rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017079if { (ac_try="$ac_link"
17080case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096esac
17097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest$ac_exeext'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17106esac
17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017112 ac_cv_lib_dld_shl_load=yes
17113else
17114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017115sed 's/^/| /' conftest.$ac_ext >&5
17116
Reid Spencera773bd52006-08-04 18:18:08 +000017117 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017118fi
Reid Spencera773bd52006-08-04 18:18:08 +000017119
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017120rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017121 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017122LIBS=$ac_check_lib_save_LIBS
17123fi
Reid Spencera773bd52006-08-04 18:18:08 +000017124{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17125echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017126if test $ac_cv_lib_dld_shl_load = yes; then
17127 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17128else
Reid Spencera773bd52006-08-04 18:18:08 +000017129 { echo "$as_me:$LINENO: checking for dlopen" >&5
17130echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017131if test "${ac_cv_func_dlopen+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017140/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142#define dlopen innocuous_dlopen
17143
John Criswell7a73b802003-06-30 21:59:07 +000017144/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017145 which can conflict with char dlopen (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017148
John Criswell0c38eaf2003-09-10 15:17:25 +000017149#ifdef __STDC__
17150# include <limits.h>
17151#else
17152# include <assert.h>
17153#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017154
17155#undef dlopen
17156
Reid Spencera773bd52006-08-04 18:18:08 +000017157/* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017160#ifdef __cplusplus
17161extern "C"
17162#endif
John Criswell7a73b802003-06-30 21:59:07 +000017163char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017164/* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017167#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017168choke me
John Criswell7a73b802003-06-30 21:59:07 +000017169#endif
17170
John Criswell0c38eaf2003-09-10 15:17:25 +000017171int
17172main ()
17173{
Reid Spencera773bd52006-08-04 18:18:08 +000017174return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017175 ;
17176 return 0;
17177}
17178_ACEOF
17179rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017180if { (ac_try="$ac_link"
17181case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194 { (case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197esac
17198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_try") 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest$ac_exeext'
17204 { (case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207esac
17208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_try") 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017213 ac_cv_func_dlopen=yes
17214else
17215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017216sed 's/^/| /' conftest.$ac_ext >&5
17217
Reid Spencera773bd52006-08-04 18:18:08 +000017218 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017219fi
Reid Spencera773bd52006-08-04 18:18:08 +000017220
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017221rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017222 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017223fi
Reid Spencera773bd52006-08-04 18:18:08 +000017224{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17225echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017226if test $ac_cv_func_dlopen = yes; then
17227 lt_cv_dlopen="dlopen"
17228else
Reid Spencera773bd52006-08-04 18:18:08 +000017229 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17230echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017231if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 ac_check_lib_save_LIBS=$LIBS
17235LIBS="-ldl $LIBS"
17236cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017237/* confdefs.h. */
17238_ACEOF
17239cat confdefs.h >>conftest.$ac_ext
17240cat >>conftest.$ac_ext <<_ACEOF
17241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017242
Reid Spencera773bd52006-08-04 18:18:08 +000017243/* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017246#ifdef __cplusplus
17247extern "C"
17248#endif
John Criswell7a73b802003-06-30 21:59:07 +000017249char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017250int
17251main ()
17252{
Reid Spencera773bd52006-08-04 18:18:08 +000017253return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017254 ;
17255 return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017259if { (ac_try="$ac_link"
17260case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017292 ac_cv_lib_dl_dlopen=yes
17293else
17294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017295sed 's/^/| /' conftest.$ac_ext >&5
17296
Reid Spencera773bd52006-08-04 18:18:08 +000017297 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017298fi
Reid Spencera773bd52006-08-04 18:18:08 +000017299
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017300rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017301 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017302LIBS=$ac_check_lib_save_LIBS
17303fi
Reid Spencera773bd52006-08-04 18:18:08 +000017304{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17305echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017306if test $ac_cv_lib_dl_dlopen = yes; then
17307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17308else
Reid Spencera773bd52006-08-04 18:18:08 +000017309 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17310echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017311if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 ac_check_lib_save_LIBS=$LIBS
17315LIBS="-lsvld $LIBS"
17316cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017322
Reid Spencera773bd52006-08-04 18:18:08 +000017323/* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017326#ifdef __cplusplus
17327extern "C"
17328#endif
John Criswell7a73b802003-06-30 21:59:07 +000017329char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017330int
17331main ()
17332{
Reid Spencera773bd52006-08-04 18:18:08 +000017333return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017334 ;
17335 return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017339if { (ac_try="$ac_link"
17340case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366esac
17367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_try") 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017372 ac_cv_lib_svld_dlopen=yes
17373else
17374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017375sed 's/^/| /' conftest.$ac_ext >&5
17376
Reid Spencera773bd52006-08-04 18:18:08 +000017377 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017378fi
Reid Spencera773bd52006-08-04 18:18:08 +000017379
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017380rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017381 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017382LIBS=$ac_check_lib_save_LIBS
17383fi
Reid Spencera773bd52006-08-04 18:18:08 +000017384{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17385echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017386if test $ac_cv_lib_svld_dlopen = yes; then
17387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17388else
Reid Spencera773bd52006-08-04 18:18:08 +000017389 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17390echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017391if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393else
17394 ac_check_lib_save_LIBS=$LIBS
17395LIBS="-ldld $LIBS"
17396cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017402
Reid Spencera773bd52006-08-04 18:18:08 +000017403/* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017406#ifdef __cplusplus
17407extern "C"
17408#endif
John Criswell7a73b802003-06-30 21:59:07 +000017409char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017410int
17411main ()
17412{
Reid Spencera773bd52006-08-04 18:18:08 +000017413return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017419if { (ac_try="$ac_link"
17420case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423esac
17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017452 ac_cv_lib_dld_dld_link=yes
17453else
17454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017455sed 's/^/| /' conftest.$ac_ext >&5
17456
Reid Spencera773bd52006-08-04 18:18:08 +000017457 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017458fi
Reid Spencera773bd52006-08-04 18:18:08 +000017459
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017462LIBS=$ac_check_lib_save_LIBS
17463fi
Reid Spencera773bd52006-08-04 18:18:08 +000017464{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17465echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017466if test $ac_cv_lib_dld_dld_link = yes; then
17467 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17468fi
17469
17470
17471fi
17472
17473
17474fi
17475
17476
17477fi
17478
17479
17480fi
17481
17482
17483fi
17484
17485 ;;
17486 esac
17487
17488 if test "x$lt_cv_dlopen" != xno; then
17489 enable_dlopen=yes
17490 else
17491 enable_dlopen=no
17492 fi
17493
17494 case $lt_cv_dlopen in
17495 dlopen)
17496 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017497 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017498
17499 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017501
17502 save_LIBS="$LIBS"
17503 LIBS="$lt_cv_dlopen_libs $LIBS"
17504
Reid Spencera773bd52006-08-04 18:18:08 +000017505 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17506echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017507if test "${lt_cv_dlopen_self+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509else
17510 if test "$cross_compiling" = yes; then :
17511 lt_cv_dlopen_self=cross
17512else
John Criswell47fdd832003-07-14 16:52:07 +000017513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017514 lt_status=$lt_dlunknown
17515 cat > conftest.$ac_ext <<EOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017516#line 17516 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017517#include "confdefs.h"
17518
17519#if HAVE_DLFCN_H
17520#include <dlfcn.h>
17521#endif
17522
17523#include <stdio.h>
17524
17525#ifdef RTLD_GLOBAL
17526# define LT_DLGLOBAL RTLD_GLOBAL
17527#else
17528# ifdef DL_GLOBAL
17529# define LT_DLGLOBAL DL_GLOBAL
17530# else
17531# define LT_DLGLOBAL 0
17532# endif
17533#endif
17534
17535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17536 find out it does not work in some platform. */
17537#ifndef LT_DLLAZY_OR_NOW
17538# ifdef RTLD_LAZY
17539# define LT_DLLAZY_OR_NOW RTLD_LAZY
17540# else
17541# ifdef DL_LAZY
17542# define LT_DLLAZY_OR_NOW DL_LAZY
17543# else
17544# ifdef RTLD_NOW
17545# define LT_DLLAZY_OR_NOW RTLD_NOW
17546# else
17547# ifdef DL_NOW
17548# define LT_DLLAZY_OR_NOW DL_NOW
17549# else
17550# define LT_DLLAZY_OR_NOW 0
17551# endif
17552# endif
17553# endif
17554# endif
17555#endif
17556
17557#ifdef __cplusplus
17558extern "C" void exit (int);
17559#endif
17560
17561void fnord() { int i=42;}
17562int main ()
17563{
17564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17565 int status = $lt_dlunknown;
17566
17567 if (self)
17568 {
17569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17570 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17571 /* dlclose (self); */
17572 }
Reid Spencera773bd52006-08-04 18:18:08 +000017573 else
17574 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017575
17576 exit (status);
17577}
17578EOF
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580 (eval $ac_link) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017584 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017585 lt_status=$?
17586 case x$lt_status in
17587 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17588 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017589 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017590 esac
17591 else :
17592 # compilation failed
17593 lt_cv_dlopen_self=no
17594 fi
17595fi
17596rm -fr conftest*
17597
17598
17599fi
Reid Spencera773bd52006-08-04 18:18:08 +000017600{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17601echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017602
17603 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17605 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17606echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017607if test "${lt_cv_dlopen_self_static+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17609else
17610 if test "$cross_compiling" = yes; then :
17611 lt_cv_dlopen_self_static=cross
17612else
John Criswell47fdd832003-07-14 16:52:07 +000017613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017614 lt_status=$lt_dlunknown
17615 cat > conftest.$ac_ext <<EOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017616#line 17616 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017617#include "confdefs.h"
17618
17619#if HAVE_DLFCN_H
17620#include <dlfcn.h>
17621#endif
17622
17623#include <stdio.h>
17624
17625#ifdef RTLD_GLOBAL
17626# define LT_DLGLOBAL RTLD_GLOBAL
17627#else
17628# ifdef DL_GLOBAL
17629# define LT_DLGLOBAL DL_GLOBAL
17630# else
17631# define LT_DLGLOBAL 0
17632# endif
17633#endif
17634
17635/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17636 find out it does not work in some platform. */
17637#ifndef LT_DLLAZY_OR_NOW
17638# ifdef RTLD_LAZY
17639# define LT_DLLAZY_OR_NOW RTLD_LAZY
17640# else
17641# ifdef DL_LAZY
17642# define LT_DLLAZY_OR_NOW DL_LAZY
17643# else
17644# ifdef RTLD_NOW
17645# define LT_DLLAZY_OR_NOW RTLD_NOW
17646# else
17647# ifdef DL_NOW
17648# define LT_DLLAZY_OR_NOW DL_NOW
17649# else
17650# define LT_DLLAZY_OR_NOW 0
17651# endif
17652# endif
17653# endif
17654# endif
17655#endif
17656
17657#ifdef __cplusplus
17658extern "C" void exit (int);
17659#endif
17660
17661void fnord() { int i=42;}
17662int main ()
17663{
17664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17665 int status = $lt_dlunknown;
17666
17667 if (self)
17668 {
17669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17671 /* dlclose (self); */
17672 }
Reid Spencera773bd52006-08-04 18:18:08 +000017673 else
17674 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017675
17676 exit (status);
17677}
17678EOF
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017684 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017685 lt_status=$?
17686 case x$lt_status in
17687 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17688 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017689 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017690 esac
17691 else :
17692 # compilation failed
17693 lt_cv_dlopen_self_static=no
17694 fi
17695fi
17696rm -fr conftest*
17697
17698
17699fi
Reid Spencera773bd52006-08-04 18:18:08 +000017700{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17701echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017702 fi
17703
17704 CPPFLAGS="$save_CPPFLAGS"
17705 LDFLAGS="$save_LDFLAGS"
17706 LIBS="$save_LIBS"
17707 ;;
17708 esac
17709
17710 case $lt_cv_dlopen_self in
17711 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17712 *) enable_dlopen_self=unknown ;;
17713 esac
17714
17715 case $lt_cv_dlopen_self_static in
17716 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17717 *) enable_dlopen_self_static=unknown ;;
17718 esac
17719fi
17720
17721
Reid Spencera773bd52006-08-04 18:18:08 +000017722# Report which library types will actually be built
17723{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17724echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17725{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17726echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017727
Reid Spencera773bd52006-08-04 18:18:08 +000017728{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17729echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017730test "$can_build_shared" = "no" && enable_shared=no
17731
17732# On AIX, shared libraries and static libraries use the same namespace, and
17733# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017734case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017735aix3*)
17736 test "$enable_shared" = yes && enable_static=no
17737 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017738 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017739 postinstall_cmds='$RANLIB $lib'
17740 fi
17741 ;;
17742
Reid Spencer2706f8c2004-09-19 23:53:36 +000017743aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017744 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17745 test "$enable_shared" = yes && enable_static=no
17746 fi
John Criswell7a73b802003-06-30 21:59:07 +000017747 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017748esac
Reid Spencera773bd52006-08-04 18:18:08 +000017749{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17750echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017751
Reid Spencera773bd52006-08-04 18:18:08 +000017752{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17753echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017754# Make sure either enable_shared or enable_static is yes.
17755test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017756{ echo "$as_me:$LINENO: result: $enable_static" >&5
17757echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017758
17759# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017760# libtool distribution, otherwise you forgot to ship ltmain.sh
17761# with your package, and you will get complaints that there are
17762# no rules to generate ltmain.sh.
17763if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017764 # See if we are running on zsh, and set the options which allow our commands through
17765 # without removal of \ escapes.
17766 if test -n "${ZSH_VERSION+set}" ; then
17767 setopt NO_GLOB_SUBST
17768 fi
John Criswell7a73b802003-06-30 21:59:07 +000017769 # Now quote all the things that may contain metacharacters while being
17770 # careful not to overquote the AC_SUBSTed values. We take copies of the
17771 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017772 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 +000017773 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017774 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17775 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17776 deplibs_check_method reload_flag reload_cmds need_locks \
17777 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17778 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017779 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017780 old_postinstall_cmds old_postuninstall_cmds \
17781 compiler \
17782 CC \
17783 LD \
17784 lt_prog_compiler_wl \
17785 lt_prog_compiler_pic \
17786 lt_prog_compiler_static \
17787 lt_prog_compiler_no_builtin_flag \
17788 export_dynamic_flag_spec \
17789 thread_safe_flag_spec \
17790 whole_archive_flag_spec \
17791 enable_shared_with_static_runtimes \
17792 old_archive_cmds \
17793 old_archive_from_new_cmds \
17794 predep_objects \
17795 postdep_objects \
17796 predeps \
17797 postdeps \
17798 compiler_lib_search_path \
17799 archive_cmds \
17800 archive_expsym_cmds \
17801 postinstall_cmds \
17802 postuninstall_cmds \
17803 old_archive_from_expsyms_cmds \
17804 allow_undefined_flag \
17805 no_undefined_flag \
17806 export_symbols_cmds \
17807 hardcode_libdir_flag_spec \
17808 hardcode_libdir_flag_spec_ld \
17809 hardcode_libdir_separator \
17810 hardcode_automatic \
17811 module_cmds \
17812 module_expsym_cmds \
17813 lt_cv_prog_compiler_c_o \
17814 exclude_expsyms \
17815 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017816
17817 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017818 old_archive_cmds | \
17819 old_archive_from_new_cmds | \
17820 archive_cmds | \
17821 archive_expsym_cmds | \
17822 module_cmds | \
17823 module_expsym_cmds | \
17824 old_archive_from_expsyms_cmds | \
17825 export_symbols_cmds | \
17826 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017827 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017828 old_postinstall_cmds | old_postuninstall_cmds | \
17829 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017830 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017831 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 +000017832 ;;
17833 *)
17834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17835 ;;
17836 esac
17837 done
17838
John Criswell47fdd832003-07-14 16:52:07 +000017839 case $lt_echo in
17840 *'\$0 --fallback-echo"')
17841 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17842 ;;
17843 esac
17844
17845cfgfile="${ofile}T"
17846 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17847 $rm -f "$cfgfile"
17848 { echo "$as_me:$LINENO: creating $ofile" >&5
17849echo "$as_me: creating $ofile" >&6;}
17850
17851 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017852#! $SHELL
17853
John Criswell47fdd832003-07-14 16:52:07 +000017854# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017855# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17856# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17857#
John Criswell47fdd832003-07-14 16:52:07 +000017858# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17859# Free Software Foundation, Inc.
17860#
17861# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017862# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17863#
17864# This program is free software; you can redistribute it and/or modify
17865# it under the terms of the GNU General Public License as published by
17866# the Free Software Foundation; either version 2 of the License, or
17867# (at your option) any later version.
17868#
17869# This program is distributed in the hope that it will be useful, but
17870# WITHOUT ANY WARRANTY; without even the implied warranty of
17871# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17872# General Public License for more details.
17873#
17874# You should have received a copy of the GNU General Public License
17875# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017876# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017877#
17878# As a special exception to the GNU General Public License, if you
17879# distribute this file as part of a program that contains a
17880# configuration script generated by Autoconf, you may include it under
17881# the same distribution terms that you use for the rest of that program.
17882
John Criswell47fdd832003-07-14 16:52:07 +000017883# A sed program that does not truncate output.
17884SED=$lt_SED
17885
John Criswell7a73b802003-06-30 21:59:07 +000017886# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017887Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017888
17889# The HP-UX ksh and POSIX shell print the target directory to stdout
17890# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017892
John Criswell47fdd832003-07-14 16:52:07 +000017893# The names of the tagged configurations supported by this script.
17894available_tags=
17895
John Criswell7a73b802003-06-30 21:59:07 +000017896# ### BEGIN LIBTOOL CONFIG
17897
17898# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17899
17900# Shell to use when invoking shell scripts.
17901SHELL=$lt_SHELL
17902
17903# Whether or not to build shared libraries.
17904build_libtool_libs=$enable_shared
17905
17906# Whether or not to build static libraries.
17907build_old_libs=$enable_static
17908
17909# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017910build_libtool_need_lc=$archive_cmds_need_lc
17911
17912# Whether or not to disallow shared libs when runtime libs are static
17913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017914
17915# Whether or not to optimize for fast installation.
17916fast_install=$enable_fast_install
17917
17918# The host system.
17919host_alias=$host_alias
17920host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017921host_os=$host_os
17922
17923# The build system.
17924build_alias=$build_alias
17925build=$build
17926build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017927
17928# An echo program that does not interpret backslashes.
17929echo=$lt_echo
17930
17931# The archiver.
17932AR=$lt_AR
17933AR_FLAGS=$lt_AR_FLAGS
17934
John Criswell47fdd832003-07-14 16:52:07 +000017935# A C compiler.
17936LTCC=$lt_LTCC
17937
Reid Spencera773bd52006-08-04 18:18:08 +000017938# LTCC compiler flags.
17939LTCFLAGS=$lt_LTCFLAGS
17940
John Criswell47fdd832003-07-14 16:52:07 +000017941# A language-specific compiler.
17942CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017943
17944# Is the compiler the GNU C compiler?
17945with_gcc=$GCC
17946
John Criswell47fdd832003-07-14 16:52:07 +000017947# An ERE matcher.
17948EGREP=$lt_EGREP
17949
John Criswell7a73b802003-06-30 21:59:07 +000017950# The linker used to build libraries.
17951LD=$lt_LD
17952
17953# Whether we need hard or soft links.
17954LN_S=$lt_LN_S
17955
17956# A BSD-compatible nm program.
17957NM=$lt_NM
17958
17959# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017960STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017961
17962# Used to examine libraries when file_magic_cmd begins "file"
17963MAGIC_CMD=$MAGIC_CMD
17964
17965# Used on cygwin: DLL creation program.
17966DLLTOOL="$DLLTOOL"
17967
17968# Used on cygwin: object dumper.
17969OBJDUMP="$OBJDUMP"
17970
17971# Used on cygwin: assembler.
17972AS="$AS"
17973
17974# The name of the directory that contains temporary libtool files.
17975objdir=$objdir
17976
17977# How to create reloadable object files.
17978reload_flag=$lt_reload_flag
17979reload_cmds=$lt_reload_cmds
17980
17981# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017982wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017983
17984# Object file suffix (normally "o").
17985objext="$ac_objext"
17986
17987# Old archive suffix (normally "a").
17988libext="$libext"
17989
John Criswell47fdd832003-07-14 16:52:07 +000017990# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017991shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017992
John Criswell7a73b802003-06-30 21:59:07 +000017993# Executable file suffix (normally "").
17994exeext="$exeext"
17995
17996# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017997pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017998pic_mode=$pic_mode
17999
John Criswell47fdd832003-07-14 16:52:07 +000018000# What is the maximum length of a command?
18001max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018002
John Criswell47fdd832003-07-14 16:52:07 +000018003# Does compiler simultaneously support -c and -o options?
18004compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018005
Reid Spencera773bd52006-08-04 18:18:08 +000018006# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018007need_locks=$lt_need_locks
18008
18009# Do we need the lib prefix for modules?
18010need_lib_prefix=$need_lib_prefix
18011
18012# Do we need a version for libraries?
18013need_version=$need_version
18014
18015# Whether dlopen is supported.
18016dlopen_support=$enable_dlopen
18017
18018# Whether dlopen of programs is supported.
18019dlopen_self=$enable_dlopen_self
18020
18021# Whether dlopen of statically linked programs is supported.
18022dlopen_self_static=$enable_dlopen_self_static
18023
18024# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018025link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018026
18027# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018029
18030# Compiler flag to allow reflexive dlopens.
18031export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18032
18033# Compiler flag to generate shared objects directly from archives.
18034whole_archive_flag_spec=$lt_whole_archive_flag_spec
18035
18036# Compiler flag to generate thread-safe objects.
18037thread_safe_flag_spec=$lt_thread_safe_flag_spec
18038
18039# Library versioning type.
18040version_type=$version_type
18041
18042# Format of library name prefix.
18043libname_spec=$lt_libname_spec
18044
18045# List of archive names. First name is the real one, the rest are links.
18046# The last name is the one that the linker finds with -lNAME.
18047library_names_spec=$lt_library_names_spec
18048
18049# The coded name of the library, if different from the real name.
18050soname_spec=$lt_soname_spec
18051
18052# Commands used to build and install an old-style archive.
18053RANLIB=$lt_RANLIB
18054old_archive_cmds=$lt_old_archive_cmds
18055old_postinstall_cmds=$lt_old_postinstall_cmds
18056old_postuninstall_cmds=$lt_old_postuninstall_cmds
18057
18058# Create an old-style archive from a shared archive.
18059old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18060
18061# Create a temporary old-style archive to link instead of a shared archive.
18062old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18063
18064# Commands used to build and install a shared archive.
18065archive_cmds=$lt_archive_cmds
18066archive_expsym_cmds=$lt_archive_expsym_cmds
18067postinstall_cmds=$lt_postinstall_cmds
18068postuninstall_cmds=$lt_postuninstall_cmds
18069
John Criswell47fdd832003-07-14 16:52:07 +000018070# Commands used to build a loadable module (assumed same as above if empty)
18071module_cmds=$lt_module_cmds
18072module_expsym_cmds=$lt_module_expsym_cmds
18073
John Criswell7a73b802003-06-30 21:59:07 +000018074# Commands to strip libraries.
18075old_striplib=$lt_old_striplib
18076striplib=$lt_striplib
18077
John Criswell47fdd832003-07-14 16:52:07 +000018078# Dependencies to place before the objects being linked to create a
18079# shared library.
18080predep_objects=$lt_predep_objects
18081
18082# Dependencies to place after the objects being linked to create a
18083# shared library.
18084postdep_objects=$lt_postdep_objects
18085
18086# Dependencies to place before the objects being linked to create a
18087# shared library.
18088predeps=$lt_predeps
18089
18090# Dependencies to place after the objects being linked to create a
18091# shared library.
18092postdeps=$lt_postdeps
18093
18094# The library search path used internally by the compiler when linking
18095# a shared library.
18096compiler_lib_search_path=$lt_compiler_lib_search_path
18097
John Criswell7a73b802003-06-30 21:59:07 +000018098# Method to check whether dependent libraries are shared objects.
18099deplibs_check_method=$lt_deplibs_check_method
18100
18101# Command to use when deplibs_check_method == file_magic.
18102file_magic_cmd=$lt_file_magic_cmd
18103
18104# Flag that allows shared libraries with undefined symbols to be built.
18105allow_undefined_flag=$lt_allow_undefined_flag
18106
18107# Flag that forces no undefined symbols.
18108no_undefined_flag=$lt_no_undefined_flag
18109
18110# Commands used to finish a libtool library installation in a directory.
18111finish_cmds=$lt_finish_cmds
18112
18113# Same as above, but a single script fragment to be evaled but not shown.
18114finish_eval=$lt_finish_eval
18115
18116# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018117global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018118
18119# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018120global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018121
18122# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018123global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018124
18125# This is the shared library runtime path variable.
18126runpath_var=$runpath_var
18127
18128# This is the shared library path variable.
18129shlibpath_var=$shlibpath_var
18130
18131# Is shlibpath searched before the hard-coded library search path?
18132shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18133
18134# How to hardcode a shared library path into an executable.
18135hardcode_action=$hardcode_action
18136
18137# Whether we should hardcode library paths into libraries.
18138hardcode_into_libs=$hardcode_into_libs
18139
18140# Flag to hardcode \$libdir into a binary during linking.
18141# This must work even if \$libdir does not exist.
18142hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18143
John Criswell47fdd832003-07-14 16:52:07 +000018144# If ld is used when linking, flag to hardcode \$libdir into
18145# a binary during linking. This must work even if \$libdir does
18146# not exist.
18147hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18148
John Criswell7a73b802003-06-30 21:59:07 +000018149# Whether we need a single -rpath flag with a separated argument.
18150hardcode_libdir_separator=$lt_hardcode_libdir_separator
18151
John Criswell47fdd832003-07-14 16:52:07 +000018152# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018153# resulting binary.
18154hardcode_direct=$hardcode_direct
18155
18156# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18157# resulting binary.
18158hardcode_minus_L=$hardcode_minus_L
18159
18160# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18161# the resulting binary.
18162hardcode_shlibpath_var=$hardcode_shlibpath_var
18163
John Criswell47fdd832003-07-14 16:52:07 +000018164# Set to yes if building a shared library automatically hardcodes DIR into the library
18165# and all subsequent libraries and executables linked against it.
18166hardcode_automatic=$hardcode_automatic
18167
John Criswell7a73b802003-06-30 21:59:07 +000018168# Variables whose values should be saved in libtool wrapper scripts and
18169# restored at relink time.
18170variables_saved_for_relink="$variables_saved_for_relink"
18171
18172# Whether libtool must link a program against all its dependency libraries.
18173link_all_deplibs=$link_all_deplibs
18174
18175# Compile-time system search path for libraries
18176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18177
18178# Run-time system search path for libraries
18179sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18180
18181# Fix the shell variable \$srcfile for the compiler.
18182fix_srcfile_path="$fix_srcfile_path"
18183
18184# Set to yes if exported symbols are required.
18185always_export_symbols=$always_export_symbols
18186
18187# The commands to list exported symbols.
18188export_symbols_cmds=$lt_export_symbols_cmds
18189
18190# The commands to extract the exported symbol list from a shared archive.
18191extract_expsyms_cmds=$lt_extract_expsyms_cmds
18192
18193# Symbols that should not be listed in the preloaded symbols.
18194exclude_expsyms=$lt_exclude_expsyms
18195
18196# Symbols that must always be exported.
18197include_expsyms=$lt_include_expsyms
18198
18199# ### END LIBTOOL CONFIG
18200
18201__EOF__
18202
John Criswell47fdd832003-07-14 16:52:07 +000018203
John Criswell7a73b802003-06-30 21:59:07 +000018204 case $host_os in
18205 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018206 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018207
18208# AIX sometimes has problems with the GCC collect2 program. For some
18209# reason, if we set the COLLECT_NAMES environment variable, the problems
18210# vanish in a puff of smoke.
18211if test "X${COLLECT_NAMES+set}" != Xset; then
18212 COLLECT_NAMES=
18213 export COLLECT_NAMES
18214fi
18215EOF
18216 ;;
18217 esac
18218
John Criswell7a73b802003-06-30 21:59:07 +000018219 # We use sed instead of cat because bash on DJGPP gets confused if
18220 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18221 # text mode, it properly converts lines to CR/LF. This bash problem
18222 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018223 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018224
John Criswell47fdd832003-07-14 16:52:07 +000018225 mv -f "$cfgfile" "$ofile" || \
18226 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018227 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018228
18229else
18230 # If there is no Makefile yet, we rely on a make rule to execute
18231 # `config.status --recheck' to rerun these tests and create the
18232 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018233 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18234 if test -f "$ltmain_in"; then
18235 test -f Makefile && make "$ltmain"
18236 fi
John Criswell7a73b802003-06-30 21:59:07 +000018237fi
John Criswell7a73b802003-06-30 21:59:07 +000018238
18239
John Criswell47fdd832003-07-14 16:52:07 +000018240ac_ext=c
18241ac_cpp='$CPP $CPPFLAGS'
18242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245
18246CC="$lt_save_CC"
18247
18248
Reid Spencera773bd52006-08-04 18:18:08 +000018249# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018250if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018251 withval=$with_tags; tagnames="$withval"
18252fi
18253
John Criswell47fdd832003-07-14 16:52:07 +000018254
18255if test -f "$ltmain" && test -n "$tagnames"; then
18256 if test ! -f "${ofile}"; then
18257 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18258echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18259 fi
18260
18261 if test -z "$LTCC"; then
18262 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18263 if test -z "$LTCC"; then
18264 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18265echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18266 else
18267 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18268echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18269 fi
18270 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018271 if test -z "$LTCFLAGS"; then
18272 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18273 fi
John Criswell47fdd832003-07-14 16:52:07 +000018274
18275 # Extract list of available tagged configurations in $ofile.
18276 # Note that this assumes the entire list is on one line.
18277 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18278
18279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18280 for tagname in $tagnames; do
18281 IFS="$lt_save_ifs"
18282 # Check whether tagname contains only valid characters
18283 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18284 "") ;;
18285 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18286echo "$as_me: error: invalid tag name: $tagname" >&2;}
18287 { (exit 1); exit 1; }; }
18288 ;;
18289 esac
18290
18291 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18292 then
18293 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18294echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18295 { (exit 1); exit 1; }; }
18296 fi
18297
18298 # Update the list of available tags.
18299 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018300 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018301
18302 case $tagname in
18303 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018304 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18305 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18306 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018307 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018308ac_cpp='$CXXCPP $CPPFLAGS'
18309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18312
18313
18314
18315
18316archive_cmds_need_lc_CXX=no
18317allow_undefined_flag_CXX=
18318always_export_symbols_CXX=no
18319archive_expsym_cmds_CXX=
18320export_dynamic_flag_spec_CXX=
18321hardcode_direct_CXX=no
18322hardcode_libdir_flag_spec_CXX=
18323hardcode_libdir_flag_spec_ld_CXX=
18324hardcode_libdir_separator_CXX=
18325hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018326hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018327hardcode_automatic_CXX=no
18328module_cmds_CXX=
18329module_expsym_cmds_CXX=
18330link_all_deplibs_CXX=unknown
18331old_archive_cmds_CXX=$old_archive_cmds
18332no_undefined_flag_CXX=
18333whole_archive_flag_spec_CXX=
18334enable_shared_with_static_runtimes_CXX=no
18335
18336# Dependencies to place before and after the object being linked:
18337predep_objects_CXX=
18338postdep_objects_CXX=
18339predeps_CXX=
18340postdeps_CXX=
18341compiler_lib_search_path_CXX=
18342
18343# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018344ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018345
18346# Object file extension for compiled C++ test sources.
18347objext=o
18348objext_CXX=$objext
18349
18350# Code to be used in simple compile tests
18351lt_simple_compile_test_code="int some_variable = 0;\n"
18352
18353# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018354lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018355
18356# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18357
18358# If no C compiler was specified, use CC.
18359LTCC=${LTCC-"$CC"}
18360
Reid Spencera773bd52006-08-04 18:18:08 +000018361# If no C compiler flags were specified, use CFLAGS.
18362LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18363
John Criswell47fdd832003-07-14 16:52:07 +000018364# Allow CC to be a program name with arguments.
18365compiler=$CC
18366
18367
Reid Spencera773bd52006-08-04 18:18:08 +000018368# save warnings/boilerplate of simple test code
18369ac_outfile=conftest.$ac_objext
18370printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18371eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18372_lt_compiler_boilerplate=`cat conftest.err`
18373$rm conftest*
18374
18375ac_outfile=conftest.$ac_objext
18376printf "$lt_simple_link_test_code" >conftest.$ac_ext
18377eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378_lt_linker_boilerplate=`cat conftest.err`
18379$rm conftest*
18380
18381
John Criswell47fdd832003-07-14 16:52:07 +000018382# Allow CC to be a program name with arguments.
18383lt_save_CC=$CC
18384lt_save_LD=$LD
18385lt_save_GCC=$GCC
18386GCC=$GXX
18387lt_save_with_gnu_ld=$with_gnu_ld
18388lt_save_path_LD=$lt_cv_path_LD
18389if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18390 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18391else
Reid Spencera773bd52006-08-04 18:18:08 +000018392 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018393fi
18394if test -n "${lt_cv_path_LDCXX+set}"; then
18395 lt_cv_path_LD=$lt_cv_path_LDCXX
18396else
Reid Spencera773bd52006-08-04 18:18:08 +000018397 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018398fi
18399test -z "${LDCXX+set}" || LD=$LDCXX
18400CC=${CXX-"c++"}
18401compiler=$CC
18402compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018403for cc_temp in $compiler""; do
18404 case $cc_temp in
18405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18407 \-*) ;;
18408 *) break;;
18409 esac
18410done
18411cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18412
John Criswell47fdd832003-07-14 16:52:07 +000018413
18414# We don't want -fno-exception wen compiling C++ code, so set the
18415# no_builtin_flag separately
18416if test "$GXX" = yes; then
18417 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18418else
18419 lt_prog_compiler_no_builtin_flag_CXX=
18420fi
18421
18422if test "$GXX" = yes; then
18423 # Set up default GNU C++ configuration
18424
18425
Reid Spencera773bd52006-08-04 18:18:08 +000018426# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018427if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018428 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018429else
18430 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018431fi
18432
John Criswell47fdd832003-07-14 16:52:07 +000018433ac_prog=ld
18434if test "$GCC" = yes; then
18435 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018436 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18437echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018438 case $host in
18439 *-*-mingw*)
18440 # gcc leaves a trailing carriage return which upsets mingw
18441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18442 *)
18443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18444 esac
18445 case $ac_prog in
18446 # Accept absolute paths.
18447 [\\/]* | ?:[\\/]*)
18448 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018449 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018450 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18452 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18453 done
18454 test -z "$LD" && LD="$ac_prog"
18455 ;;
18456 "")
18457 # If it fails, then pretend we aren't using GCC.
18458 ac_prog=ld
18459 ;;
18460 *)
18461 # If it is relative, then search for the first ld in PATH.
18462 with_gnu_ld=unknown
18463 ;;
18464 esac
18465elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018466 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18467echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018468else
Reid Spencera773bd52006-08-04 18:18:08 +000018469 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18470echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018471fi
18472if test "${lt_cv_path_LD+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474else
18475 if test -z "$LD"; then
18476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18477 for ac_dir in $PATH; do
18478 IFS="$lt_save_ifs"
18479 test -z "$ac_dir" && ac_dir=.
18480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18481 lt_cv_path_LD="$ac_dir/$ac_prog"
18482 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018483 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018484 # Break only if it was the GNU/non-GNU ld that we prefer.
18485 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18486 *GNU* | *'with BFD'*)
18487 test "$with_gnu_ld" != no && break
18488 ;;
18489 *)
18490 test "$with_gnu_ld" != yes && break
18491 ;;
18492 esac
18493 fi
18494 done
18495 IFS="$lt_save_ifs"
18496else
18497 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18498fi
18499fi
18500
18501LD="$lt_cv_path_LD"
18502if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018503 { echo "$as_me:$LINENO: result: $LD" >&5
18504echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018505else
Reid Spencera773bd52006-08-04 18:18:08 +000018506 { echo "$as_me:$LINENO: result: no" >&5
18507echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018508fi
18509test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18510echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18511 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018512{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18513echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018514if test "${lt_cv_prog_gnu_ld+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516else
Reid Spencera773bd52006-08-04 18:18:08 +000018517 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018518case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018519*GNU* | *'with BFD'*)
18520 lt_cv_prog_gnu_ld=yes
18521 ;;
18522*)
18523 lt_cv_prog_gnu_ld=no
18524 ;;
18525esac
18526fi
Reid Spencera773bd52006-08-04 18:18:08 +000018527{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18528echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018529with_gnu_ld=$lt_cv_prog_gnu_ld
18530
18531
18532
18533 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18534 # archiving commands below assume that GNU ld is being used.
18535 if test "$with_gnu_ld" = yes; then
18536 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 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'
18538
18539 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18541
18542 # If archive_cmds runs LD, not CC, wlarc should be empty
18543 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18544 # investigate it a little bit more. (MM)
18545 wlarc='${wl}'
18546
18547 # ancient GNU ld didn't support --whole-archive et. al.
18548 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18549 grep 'no-whole-archive' > /dev/null; then
18550 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18551 else
18552 whole_archive_flag_spec_CXX=
18553 fi
18554 else
18555 with_gnu_ld=no
18556 wlarc=
18557
18558 # A generic and very simple default shared library creation
18559 # command for GNU C++ for the case where it uses the native
18560 # linker, instead of GNU ld. If possible, this setting should
18561 # overridden to take advantage of the native linker features on
18562 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018563 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018564 fi
18565
18566 # Commands to make compiler produce verbose output that lists
18567 # what "hidden" libraries, object files and flags are used when
18568 # linking a shared library.
18569 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18570
18571else
18572 GXX=no
18573 with_gnu_ld=no
18574 wlarc=
18575fi
18576
18577# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018578{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18579echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018580ld_shlibs_CXX=yes
18581case $host_os in
18582 aix3*)
18583 # FIXME: insert proper C++ library support
18584 ld_shlibs_CXX=no
18585 ;;
18586 aix4* | aix5*)
18587 if test "$host_cpu" = ia64; then
18588 # On IA64, the linker does run time linking by default, so we don't
18589 # have to do anything special.
18590 aix_use_runtimelinking=no
18591 exp_sym_flag='-Bexport'
18592 no_entry_flag=""
18593 else
18594 aix_use_runtimelinking=no
18595
18596 # Test if we are trying to use run time linking or normal
18597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18598 # need to do runtime linking.
18599 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18600 for ld_flag in $LDFLAGS; do
18601 case $ld_flag in
18602 *-brtl*)
18603 aix_use_runtimelinking=yes
18604 break
18605 ;;
18606 esac
18607 done
Reid Spencera773bd52006-08-04 18:18:08 +000018608 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018609 esac
18610
18611 exp_sym_flag='-bexport'
18612 no_entry_flag='-bnoentry'
18613 fi
18614
18615 # When large executables or shared objects are built, AIX ld can
18616 # have problems creating the table of contents. If linking a library
18617 # or program results in "error TOC overflow" add -mminimal-toc to
18618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18620
18621 archive_cmds_CXX=''
18622 hardcode_direct_CXX=yes
18623 hardcode_libdir_separator_CXX=':'
18624 link_all_deplibs_CXX=yes
18625
18626 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018627 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018628 # We only want to do this on AIX 4.2 and lower, the check
18629 # below for broken collect2 doesn't work under 4.3+
18630 collect2name=`${CC} -print-prog-name=collect2`
18631 if test -f "$collect2name" && \
18632 strings "$collect2name" | grep resolve_lib_name >/dev/null
18633 then
18634 # We have reworked collect2
18635 hardcode_direct_CXX=yes
18636 else
18637 # We have old collect2
18638 hardcode_direct_CXX=unsupported
18639 # It fails to find uninstalled libraries when the uninstalled
18640 # path is not listed in the libpath. Setting hardcode_minus_L
18641 # to unsupported forces relinking
18642 hardcode_minus_L_CXX=yes
18643 hardcode_libdir_flag_spec_CXX='-L$libdir'
18644 hardcode_libdir_separator_CXX=
18645 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018646 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018647 esac
18648 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018649 if test "$aix_use_runtimelinking" = yes; then
18650 shared_flag="$shared_flag "'${wl}-G'
18651 fi
John Criswell47fdd832003-07-14 16:52:07 +000018652 else
18653 # not using gcc
18654 if test "$host_cpu" = ia64; then
18655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18656 # chokes on -Wl,-G. The following line is correct:
18657 shared_flag='-G'
18658 else
18659 if test "$aix_use_runtimelinking" = yes; then
18660 shared_flag='${wl}-G'
18661 else
18662 shared_flag='${wl}-bM:SRE'
18663 fi
18664 fi
18665 fi
18666
18667 # It seems that -bexpall does not export symbols beginning with
18668 # underscore (_), so it is better to generate a list of symbols to export.
18669 always_export_symbols_CXX=yes
18670 if test "$aix_use_runtimelinking" = yes; then
18671 # Warning - without using the other runtime loading flags (-brtl),
18672 # -berok will link without error, but may produce a broken library.
18673 allow_undefined_flag_CXX='-berok'
18674 # Determine the default libpath from the value encoded in an empty executable.
18675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018676/* confdefs.h. */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018681
John Criswell47fdd832003-07-14 16:52:07 +000018682int
18683main ()
18684{
18685
18686 ;
18687 return 0;
18688}
18689_ACEOF
18690rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018691if { (ac_try="$ac_link"
18692case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695esac
18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018724
18725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18726}'`
18727# Check for a 64-bit object if we didn't find anything.
18728if 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; }
18729}'`; fi
18730else
18731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018732sed 's/^/| /' conftest.$ac_ext >&5
18733
Reid Spencera773bd52006-08-04 18:18:08 +000018734
John Criswell47fdd832003-07-14 16:52:07 +000018735fi
Reid Spencera773bd52006-08-04 18:18:08 +000018736
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018737rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018738 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18740
18741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18742
Reid Spencera773bd52006-08-04 18:18:08 +000018743 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 +000018744 else
18745 if test "$host_cpu" = ia64; then
18746 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18747 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018748 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 +000018749 else
18750 # Determine the default libpath from the value encoded in an empty executable.
18751 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018757
John Criswell47fdd832003-07-14 16:52:07 +000018758int
18759main ()
18760{
18761
18762 ;
18763 return 0;
18764}
18765_ACEOF
18766rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018767if { (ac_try="$ac_link"
18768case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771esac
18772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18781 { (case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_try") 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794esac
18795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018800
18801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18802}'`
18803# Check for a 64-bit object if we didn't find anything.
18804if 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; }
18805}'`; fi
18806else
18807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018808sed 's/^/| /' conftest.$ac_ext >&5
18809
Reid Spencera773bd52006-08-04 18:18:08 +000018810
John Criswell47fdd832003-07-14 16:52:07 +000018811fi
Reid Spencera773bd52006-08-04 18:18:08 +000018812
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018814 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18816
18817 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18818 # Warning - without using the other run time loading flags,
18819 # -berok will link without error, but may produce a broken library.
18820 no_undefined_flag_CXX=' ${wl}-bernotok'
18821 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018822 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018823 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018824 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018825 # This is similar to how AIX traditionally builds its shared libraries.
18826 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 +000018827 fi
18828 fi
18829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018830
18831 beos*)
18832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18833 allow_undefined_flag_CXX=unsupported
18834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835 # support --undefined. This deserves some investigation. FIXME
18836 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 else
18838 ld_shlibs_CXX=no
18839 fi
18840 ;;
18841
John Criswell47fdd832003-07-14 16:52:07 +000018842 chorus*)
18843 case $cc_basename in
18844 *)
18845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18847 ;;
18848 esac
18849 ;;
18850
18851 cygwin* | mingw* | pw32*)
18852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853 # as there is no search path for DLLs.
18854 hardcode_libdir_flag_spec_CXX='-L$libdir'
18855 allow_undefined_flag_CXX=unsupported
18856 always_export_symbols_CXX=no
18857 enable_shared_with_static_runtimes_CXX=yes
18858
18859 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018860 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 +000018861 # If the export-symbols file already is a .def file (1st line
18862 # is EXPORTS), use it as is; otherwise, prepend...
18863 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18864 cp $export_symbols $output_objdir/$soname.def;
18865 else
18866 echo EXPORTS > $output_objdir/$soname.def;
18867 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018868 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018869 $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 +000018870 else
18871 ld_shlibs_CXX=no
18872 fi
18873 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018874 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018875 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018876 rhapsody* | darwin1.[012])
18877 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18878 ;;
18879 *) # Darwin 1.3 on
18880 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18881 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18882 else
18883 case ${MACOSX_DEPLOYMENT_TARGET} in
18884 10.[012])
18885 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18886 ;;
18887 10.*)
18888 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18889 ;;
18890 esac
18891 fi
18892 ;;
18893 esac
18894 archive_cmds_need_lc_CXX=no
18895 hardcode_direct_CXX=no
18896 hardcode_automatic_CXX=yes
18897 hardcode_shlibpath_var_CXX=unsupported
18898 whole_archive_flag_spec_CXX=''
18899 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018900
Reid Spencer2706f8c2004-09-19 23:53:36 +000018901 if test "$GXX" = yes ; then
18902 lt_int_apple_cc_single_mod=no
18903 output_verbose_link_cmd='echo'
18904 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18905 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018906 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018907 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018908 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 +000018909 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018910 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 +000018911 fi
18912 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018913 # 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 +000018914 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018915 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 +000018916 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018917 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 +000018918 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018919 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 +000018920 else
Reid Spencera773bd52006-08-04 18:18:08 +000018921 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018922 xlc*)
18923 output_verbose_link_cmd='echo'
18924 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'
18925 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018926 # 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 +000018927 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}'
18928 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 +000018929 ;;
18930 *)
18931 ld_shlibs_CXX=no
18932 ;;
18933 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018934 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018936
18937 dgux*)
18938 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018939 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18942 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018943 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018944 # Green Hills C++ Compiler
18945 # FIXME: insert proper C++ library support
18946 ld_shlibs_CXX=no
18947 ;;
18948 *)
18949 # FIXME: insert proper C++ library support
18950 ld_shlibs_CXX=no
18951 ;;
18952 esac
18953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018954 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018955 # C++ shared libraries reported to be fairly broken before switch to ELF
18956 ld_shlibs_CXX=no
18957 ;;
18958 freebsd-elf*)
18959 archive_cmds_need_lc_CXX=no
18960 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018961 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018962 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18963 # conventions
18964 ld_shlibs_CXX=yes
18965 ;;
18966 gnu*)
18967 ;;
18968 hpux9*)
18969 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18970 hardcode_libdir_separator_CXX=:
18971 export_dynamic_flag_spec_CXX='${wl}-E'
18972 hardcode_direct_CXX=yes
18973 hardcode_minus_L_CXX=yes # Not in the search PATH,
18974 # but as the default
18975 # location of the library.
18976
18977 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018978 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018979 # FIXME: insert proper C++ library support
18980 ld_shlibs_CXX=no
18981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018982 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018983 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 +000018984 # Commands to make compiler produce verbose output that lists
18985 # what "hidden" libraries, object files and flags are used when
18986 # linking a shared library.
18987 #
18988 # There doesn't appear to be a way to prevent this compiler from
18989 # explicitly linking system object files so we need to strip them
18990 # from the output so that they don't get included in the library
18991 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018992 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 +000018993 ;;
18994 *)
18995 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018996 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 +000018997 else
18998 # FIXME: insert proper C++ library support
18999 ld_shlibs_CXX=no
19000 fi
19001 ;;
19002 esac
19003 ;;
19004 hpux10*|hpux11*)
19005 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019006 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19007 hardcode_libdir_separator_CXX=:
19008
19009 case $host_cpu in
19010 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019011 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019012 ;;
19013 *)
John Criswell47fdd832003-07-14 16:52:07 +000019014 export_dynamic_flag_spec_CXX='${wl}-E'
19015 ;;
19016 esac
19017 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019018 case $host_cpu in
19019 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019020 hardcode_direct_CXX=no
19021 hardcode_shlibpath_var_CXX=no
19022 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019023 *)
19024 hardcode_direct_CXX=yes
19025 hardcode_minus_L_CXX=yes # Not in the search PATH,
19026 # but as the default
19027 # location of the library.
19028 ;;
19029 esac
19030
19031 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019032 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19035 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019036 aCC*)
19037 case $host_cpu in
19038 hppa*64*)
19039 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19040 ;;
19041 ia64*)
19042 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 +000019043 ;;
19044 *)
19045 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19046 ;;
19047 esac
19048 # Commands to make compiler produce verbose output that lists
19049 # what "hidden" libraries, object files and flags are used when
19050 # linking a shared library.
19051 #
19052 # There doesn't appear to be a way to prevent this compiler from
19053 # explicitly linking system object files so we need to strip them
19054 # from the output so that they don't get included in the library
19055 # dependencies.
19056 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'
19057 ;;
19058 *)
19059 if test "$GXX" = yes; then
19060 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019061 case $host_cpu in
19062 hppa*64*)
19063 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19064 ;;
19065 ia64*)
19066 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 +000019067 ;;
19068 *)
19069 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'
19070 ;;
19071 esac
19072 fi
19073 else
19074 # FIXME: insert proper C++ library support
19075 ld_shlibs_CXX=no
19076 fi
19077 ;;
19078 esac
19079 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019080 interix3*)
19081 hardcode_direct_CXX=no
19082 hardcode_shlibpath_var_CXX=no
19083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19084 export_dynamic_flag_spec_CXX='${wl}-E'
19085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19086 # Instead, shared libraries are loaded at an image base (0x10000000 by
19087 # default) and relocated if they conflict, which is a slow very memory
19088 # consuming and fragmenting process. To avoid this, we pick a random,
19089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19091 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'
19092 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'
19093 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019094 irix5* | irix6*)
19095 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019096 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019097 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019098 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 +000019099
19100 # Archives containing C++ object files must be created using
19101 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19102 # necessary to make sure instantiated templates are included
19103 # in the archive.
19104 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19105 ;;
19106 *)
19107 if test "$GXX" = yes; then
19108 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019109 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 +000019110 else
19111 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'
19112 fi
19113 fi
19114 link_all_deplibs_CXX=yes
19115 ;;
19116 esac
19117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19118 hardcode_libdir_separator_CXX=:
19119 ;;
19120 linux*)
19121 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019122 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019123 # Kuck and Associates, Inc. (KAI) C++ Compiler
19124
19125 # KCC will only create a shared library if the output file
19126 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19127 # to its proper name (with version) after linking.
19128 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'
19129 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'
19130 # Commands to make compiler produce verbose output that lists
19131 # what "hidden" libraries, object files and flags are used when
19132 # linking a shared library.
19133 #
19134 # There doesn't appear to be a way to prevent this compiler from
19135 # explicitly linking system object files so we need to strip them
19136 # from the output so that they don't get included in the library
19137 # dependencies.
19138 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'
19139
19140 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19142
19143 # Archives containing C++ object files must be created using
19144 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19146 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019147 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019148 # Intel C++
19149 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019150 # version 8.0 and above of icpc choke on multiply defined symbols
19151 # if we add $predep_objects and $postdep_objects, however 7.1 and
19152 # earlier do not add the objects themselves.
19153 case `$CC -V 2>&1` in
19154 *"Version 7."*)
19155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 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'
19157 ;;
19158 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019159 tmp_idyn=
19160 case $host_cpu in
19161 ia64*) tmp_idyn=' -i_dynamic';;
19162 esac
19163 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 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 +000019165 ;;
19166 esac
John Criswell47fdd832003-07-14 16:52:07 +000019167 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19169 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19171 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019172 pgCC*)
19173 # Portland Group C++ compiler
19174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175 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'
19176
19177 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19178 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19179 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'
19180 ;;
19181 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019182 # Compaq C++
19183 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 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'
19185
19186 runpath_var=LD_RUN_PATH
19187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19188 hardcode_libdir_separator_CXX=:
19189
19190 # Commands to make compiler produce verbose output that lists
19191 # what "hidden" libraries, object files and flags are used when
19192 # linking a shared library.
19193 #
19194 # There doesn't appear to be a way to prevent this compiler from
19195 # explicitly linking system object files so we need to strip them
19196 # from the output so that they don't get included in the library
19197 # dependencies.
19198 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'
19199 ;;
19200 esac
19201 ;;
19202 lynxos*)
19203 # FIXME: insert proper C++ library support
19204 ld_shlibs_CXX=no
19205 ;;
19206 m88k*)
19207 # FIXME: insert proper C++ library support
19208 ld_shlibs_CXX=no
19209 ;;
19210 mvs*)
19211 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019212 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019213 # FIXME: insert proper C++ library support
19214 ld_shlibs_CXX=no
19215 ;;
19216 *)
19217 # FIXME: insert proper C++ library support
19218 ld_shlibs_CXX=no
19219 ;;
19220 esac
19221 ;;
19222 netbsd*)
19223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19224 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19225 wlarc=
19226 hardcode_libdir_flag_spec_CXX='-R$libdir'
19227 hardcode_direct_CXX=yes
19228 hardcode_shlibpath_var_CXX=no
19229 fi
19230 # Workaround some broken pre-1.5 toolchains
19231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19232 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019233 openbsd2*)
19234 # C++ shared libraries are fairly broken
19235 ld_shlibs_CXX=no
19236 ;;
19237 openbsd*)
19238 hardcode_direct_CXX=yes
19239 hardcode_shlibpath_var_CXX=no
19240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19243 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19244 export_dynamic_flag_spec_CXX='${wl}-E'
19245 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19246 fi
19247 output_verbose_link_cmd='echo'
19248 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019249 osf3*)
19250 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019251 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019252 # Kuck and Associates, Inc. (KAI) C++ Compiler
19253
19254 # KCC will only create a shared library if the output file
19255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19256 # to its proper name (with version) after linking.
19257 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'
19258
19259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19260 hardcode_libdir_separator_CXX=:
19261
19262 # Archives containing C++ object files must be created using
19263 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19264 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19265
19266 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019267 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019268 # Rational C++ 2.4.1
19269 # FIXME: insert proper C++ library support
19270 ld_shlibs_CXX=no
19271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019272 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019274 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 +000019275
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19277 hardcode_libdir_separator_CXX=:
19278
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19282 #
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19286 # dependencies.
19287 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'
19288 ;;
19289 *)
19290 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19291 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019292 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 +000019293
19294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19295 hardcode_libdir_separator_CXX=:
19296
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19301
19302 else
19303 # FIXME: insert proper C++ library support
19304 ld_shlibs_CXX=no
19305 fi
19306 ;;
19307 esac
19308 ;;
19309 osf4* | osf5*)
19310 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019311 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019312 # Kuck and Associates, Inc. (KAI) C++ Compiler
19313
19314 # KCC will only create a shared library if the output file
19315 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19316 # to its proper name (with version) after linking.
19317 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'
19318
19319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19320 hardcode_libdir_separator_CXX=:
19321
19322 # Archives containing C++ object files must be created using
19323 # the KAI C++ compiler.
19324 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19325 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019326 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019327 # Rational C++ 2.4.1
19328 # FIXME: insert proper C++ library support
19329 ld_shlibs_CXX=no
19330 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019331 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019332 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019333 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 +000019334 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19335 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019336 $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 +000019337 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019338
19339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19340 hardcode_libdir_separator_CXX=:
19341
19342 # Commands to make compiler produce verbose output that lists
19343 # what "hidden" libraries, object files and flags are used when
19344 # linking a shared library.
19345 #
19346 # There doesn't appear to be a way to prevent this compiler from
19347 # explicitly linking system object files so we need to strip them
19348 # from the output so that they don't get included in the library
19349 # dependencies.
19350 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'
19351 ;;
19352 *)
19353 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19354 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019355 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 +000019356
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX=:
19359
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19364
19365 else
19366 # FIXME: insert proper C++ library support
19367 ld_shlibs_CXX=no
19368 fi
19369 ;;
19370 esac
19371 ;;
19372 psos*)
19373 # FIXME: insert proper C++ library support
19374 ld_shlibs_CXX=no
19375 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019376 sunos4*)
19377 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019378 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019379 # Sun C++ 4.x
19380 # FIXME: insert proper C++ library support
19381 ld_shlibs_CXX=no
19382 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019383 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019384 # Lucid
19385 # FIXME: insert proper C++ library support
19386 ld_shlibs_CXX=no
19387 ;;
19388 *)
19389 # FIXME: insert proper C++ library support
19390 ld_shlibs_CXX=no
19391 ;;
19392 esac
19393 ;;
19394 solaris*)
19395 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019396 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019397 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019398 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019399 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019400 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 +000019401 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 +000019402 $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 +000019403
19404 hardcode_libdir_flag_spec_CXX='-R$libdir'
19405 hardcode_shlibpath_var_CXX=no
19406 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019407 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019408 *)
19409 # The C++ compiler is used as linker so we must use $wl
19410 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019411 # linker. We must also pass each convience library through
19412 # to the system linker between allextract/defaultextract.
19413 # The C++ compiler will combine linker options so we
19414 # cannot just pass the convience library names through
19415 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019416 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019417 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 +000019418 ;;
19419 esac
19420 link_all_deplibs_CXX=yes
19421
Reid Spencera773bd52006-08-04 18:18:08 +000019422 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019423
19424 # Archives containing C++ object files must be created using
19425 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19426 # necessary to make sure instantiated templates are included
19427 # in the archive.
19428 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019430 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019431 # Green Hills C++ Compiler
19432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19433
19434 # The C++ compiler must be used to create the archive.
19435 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19436 ;;
19437 *)
19438 # GNU C++ compiler with Solaris linker
19439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19441 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019442 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 +000019443 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19444 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19445
John Criswell47fdd832003-07-14 16:52:07 +000019446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019449 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019450 else
19451 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19452 # platform.
19453 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 +000019454 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19455 $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 +000019456
19457 # Commands to make compiler produce verbose output that lists
19458 # what "hidden" libraries, object files and flags are used when
19459 # linking a shared library.
19460 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19461 fi
19462
19463 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19464 fi
19465 ;;
19466 esac
19467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19469 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019470 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019471 hardcode_shlibpath_var_CXX=no
19472 runpath_var='LD_RUN_PATH'
19473
19474 case $cc_basename in
19475 CC*)
19476 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19477 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478 ;;
19479 *)
19480 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19481 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 ;;
19483 esac
19484 ;;
19485 sysv5* | sco3.2v5* | sco5v6*)
19486 # Note: We can NOT use -z defs as we might desire, because we do not
19487 # link with -lc, and that would cause any symbols used from libc to
19488 # always be unresolved, which means just about no library would
19489 # ever link correctly. If we're not using GNU ld we use -z text
19490 # though, which does catch some bad symbols but isn't as heavy-handed
19491 # as -z defs.
19492 # For security reasons, it is highly recommended that you always
19493 # use absolute paths for naming shared libraries, and exclude the
19494 # DT_RUNPATH tag from executables and libraries. But doing so
19495 # requires that you compile everything twice, which is a pain.
19496 # So that behaviour is only enabled if SCOABSPATH is set to a
19497 # non-empty value in the environment. Most likely only useful for
19498 # creating official distributions of packages.
19499 # This is a hack until libtool officially supports absolute path
19500 # names for shared libraries.
19501 no_undefined_flag_CXX='${wl}-z,text'
19502 allow_undefined_flag_CXX='${wl}-z,nodefs'
19503 archive_cmds_need_lc_CXX=no
19504 hardcode_shlibpath_var_CXX=no
19505 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19506 hardcode_libdir_separator_CXX=':'
19507 link_all_deplibs_CXX=yes
19508 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19509 runpath_var='LD_RUN_PATH'
19510
19511 case $cc_basename in
19512 CC*)
19513 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 ;;
19516 *)
19517 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19518 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 ;;
19520 esac
John Criswell47fdd832003-07-14 16:52:07 +000019521 ;;
19522 tandem*)
19523 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019524 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019525 # NonStop-UX NCC 3.20
19526 # FIXME: insert proper C++ library support
19527 ld_shlibs_CXX=no
19528 ;;
19529 *)
19530 # FIXME: insert proper C++ library support
19531 ld_shlibs_CXX=no
19532 ;;
19533 esac
19534 ;;
19535 vxworks*)
19536 # FIXME: insert proper C++ library support
19537 ld_shlibs_CXX=no
19538 ;;
19539 *)
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 ;;
19543esac
Reid Spencera773bd52006-08-04 18:18:08 +000019544{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19545echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019546test "$ld_shlibs_CXX" = no && can_build_shared=no
19547
19548GCC_CXX="$GXX"
19549LD_CXX="$LD"
19550
John Criswell47fdd832003-07-14 16:52:07 +000019551
19552cat > conftest.$ac_ext <<EOF
19553class Foo
19554{
19555public:
19556 Foo (void) { a = 0; }
19557private:
19558 int a;
19559};
19560EOF
19561
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; then
19567 # Parse the compiler output and extract the necessary
19568 # objects, libraries and library flags.
19569
19570 # Sentinel used to keep track of whether or not we are before
19571 # the conftest object file.
19572 pre_test_object_deps_done=no
19573
19574 # The `*' in the case matches for architectures that use `case' in
19575 # $output_verbose_cmd can trigger glob expansion during the loop
19576 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019577 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019578
19579 for p in `eval $output_verbose_link_cmd`; do
19580 case $p in
19581
19582 -L* | -R* | -l*)
19583 # Some compilers place space between "-{L,R}" and the path.
19584 # Remove the space.
19585 if test $p = "-L" \
19586 || test $p = "-R"; then
19587 prev=$p
19588 continue
19589 else
19590 prev=
19591 fi
19592
19593 if test "$pre_test_object_deps_done" = no; then
19594 case $p in
19595 -L* | -R*)
19596 # Internal compiler library paths should come after those
19597 # provided the user. The postdeps already come after the
19598 # user supplied libs so there is no need to process them.
19599 if test -z "$compiler_lib_search_path_CXX"; then
19600 compiler_lib_search_path_CXX="${prev}${p}"
19601 else
19602 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19603 fi
19604 ;;
19605 # The "-l" case would never come before the object being
19606 # linked, so don't bother handling this case.
19607 esac
19608 else
19609 if test -z "$postdeps_CXX"; then
19610 postdeps_CXX="${prev}${p}"
19611 else
19612 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19613 fi
19614 fi
19615 ;;
19616
19617 *.$objext)
19618 # This assumes that the test object file only shows up
19619 # once in the compiler output.
19620 if test "$p" = "conftest.$objext"; then
19621 pre_test_object_deps_done=yes
19622 continue
19623 fi
19624
19625 if test "$pre_test_object_deps_done" = no; then
19626 if test -z "$predep_objects_CXX"; then
19627 predep_objects_CXX="$p"
19628 else
19629 predep_objects_CXX="$predep_objects_CXX $p"
19630 fi
19631 else
19632 if test -z "$postdep_objects_CXX"; then
19633 postdep_objects_CXX="$p"
19634 else
19635 postdep_objects_CXX="$postdep_objects_CXX $p"
19636 fi
19637 fi
19638 ;;
19639
19640 *) ;; # Ignore the rest.
19641
19642 esac
19643 done
19644
19645 # Clean up.
19646 rm -f a.out a.exe
19647else
19648 echo "libtool.m4: error: problem compiling CXX test program"
19649fi
19650
19651$rm -f confest.$objext
19652
Reid Spencera773bd52006-08-04 18:18:08 +000019653# PORTME: override above test on systems where it is broken
19654case $host_os in
19655interix3*)
19656 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19657 # hack all around it, let's just trust "g++" to DTRT.
19658 predep_objects_CXX=
19659 postdep_objects_CXX=
19660 postdeps_CXX=
19661 ;;
19662
19663solaris*)
19664 case $cc_basename in
19665 CC*)
19666 # Adding this requires a known-good setup of shared libraries for
19667 # Sun compiler versions before 5.6, else PIC objects from an old
19668 # archive will be linked into the output, leading to subtle bugs.
19669 postdeps_CXX='-lCstd -lCrun'
19670 ;;
19671 esac
19672 ;;
19673esac
19674
19675
John Criswell47fdd832003-07-14 16:52:07 +000019676case " $postdeps_CXX " in
19677*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19678esac
19679
19680lt_prog_compiler_wl_CXX=
19681lt_prog_compiler_pic_CXX=
19682lt_prog_compiler_static_CXX=
19683
Reid Spencera773bd52006-08-04 18:18:08 +000019684{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019686
19687 # C++ specific cases for pic, static, wl, etc.
19688 if test "$GXX" = yes; then
19689 lt_prog_compiler_wl_CXX='-Wl,'
19690 lt_prog_compiler_static_CXX='-static'
19691
19692 case $host_os in
19693 aix*)
19694 # All AIX code is PIC.
19695 if test "$host_cpu" = ia64; then
19696 # AIX 5 now supports IA64 processor
19697 lt_prog_compiler_static_CXX='-Bstatic'
19698 fi
19699 ;;
19700 amigaos*)
19701 # FIXME: we need at least 68020 code to build shared libraries, but
19702 # adding the `-m68020' flag to GCC prevents building anything better,
19703 # like `-m68040'.
19704 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19705 ;;
19706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19707 # PIC is the default for these OSes.
19708 ;;
19709 mingw* | os2* | pw32*)
19710 # This hack is so that the source file can tell whether it is being
19711 # built for inclusion in a dll (and should export symbols for example).
19712 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19713 ;;
19714 darwin* | rhapsody*)
19715 # PIC is the default on this platform
19716 # Common symbols not allowed in MH_DYLIB files
19717 lt_prog_compiler_pic_CXX='-fno-common'
19718 ;;
19719 *djgpp*)
19720 # DJGPP does not support shared libraries at all
19721 lt_prog_compiler_pic_CXX=
19722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019723 interix3*)
19724 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19725 # Instead, we relocate shared libraries at runtime.
19726 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019727 sysv4*MP*)
19728 if test -d /usr/nec; then
19729 lt_prog_compiler_pic_CXX=-Kconform_pic
19730 fi
19731 ;;
19732 hpux*)
19733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19734 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019735 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019736 hppa*64*|ia64*)
19737 ;;
19738 *)
19739 lt_prog_compiler_pic_CXX='-fPIC'
19740 ;;
19741 esac
19742 ;;
19743 *)
19744 lt_prog_compiler_pic_CXX='-fPIC'
19745 ;;
19746 esac
19747 else
19748 case $host_os in
19749 aix4* | aix5*)
19750 # All AIX code is PIC.
19751 if test "$host_cpu" = ia64; then
19752 # AIX 5 now supports IA64 processor
19753 lt_prog_compiler_static_CXX='-Bstatic'
19754 else
19755 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19756 fi
19757 ;;
19758 chorus*)
19759 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019760 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019761 # Green Hills C++ Compiler
19762 # _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"
19763 ;;
19764 esac
19765 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019766 darwin*)
19767 # PIC is the default on this platform
19768 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019769 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019770 xlc*)
19771 lt_prog_compiler_pic_CXX='-qnocommon'
19772 lt_prog_compiler_wl_CXX='-Wl,'
19773 ;;
19774 esac
19775 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019776 dgux*)
19777 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019778 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019779 lt_prog_compiler_pic_CXX='-KPIC'
19780 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019781 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019782 # Green Hills C++ Compiler
19783 lt_prog_compiler_pic_CXX='-pic'
19784 ;;
19785 *)
19786 ;;
19787 esac
19788 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019789 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019790 # FreeBSD uses GNU C++
19791 ;;
19792 hpux9* | hpux10* | hpux11*)
19793 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019794 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019795 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019796 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019797 if test "$host_cpu" != ia64; then
19798 lt_prog_compiler_pic_CXX='+Z'
19799 fi
19800 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019801 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019802 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019803 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19804 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019805 hppa*64*|ia64*)
19806 # +Z the default
19807 ;;
19808 *)
19809 lt_prog_compiler_pic_CXX='+Z'
19810 ;;
19811 esac
19812 ;;
19813 *)
19814 ;;
19815 esac
19816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019817 interix*)
19818 # This is c89, which is MS Visual C++ (no shared libs)
19819 # Anyone wants to do a port?
19820 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019821 irix5* | irix6* | nonstopux*)
19822 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019823 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019824 lt_prog_compiler_wl_CXX='-Wl,'
19825 lt_prog_compiler_static_CXX='-non_shared'
19826 # CC pic flag -KPIC is the default.
19827 ;;
19828 *)
19829 ;;
19830 esac
19831 ;;
19832 linux*)
19833 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019834 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019835 # KAI C++ Compiler
19836 lt_prog_compiler_wl_CXX='--backend -Wl,'
19837 lt_prog_compiler_pic_CXX='-fPIC'
19838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019839 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019840 # Intel C++
19841 lt_prog_compiler_wl_CXX='-Wl,'
19842 lt_prog_compiler_pic_CXX='-KPIC'
19843 lt_prog_compiler_static_CXX='-static'
19844 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019845 pgCC*)
19846 # Portland Group C++ compiler.
19847 lt_prog_compiler_wl_CXX='-Wl,'
19848 lt_prog_compiler_pic_CXX='-fpic'
19849 lt_prog_compiler_static_CXX='-Bstatic'
19850 ;;
19851 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019852 # Compaq C++
19853 # Make sure the PIC flag is empty. It appears that all Alpha
19854 # Linux and Compaq Tru64 Unix objects are PIC.
19855 lt_prog_compiler_pic_CXX=
19856 lt_prog_compiler_static_CXX='-non_shared'
19857 ;;
19858 *)
19859 ;;
19860 esac
19861 ;;
19862 lynxos*)
19863 ;;
19864 m88k*)
19865 ;;
19866 mvs*)
19867 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019868 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019869 lt_prog_compiler_pic_CXX='-W c,exportall'
19870 ;;
19871 *)
19872 ;;
19873 esac
19874 ;;
19875 netbsd*)
19876 ;;
19877 osf3* | osf4* | osf5*)
19878 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019879 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019880 lt_prog_compiler_wl_CXX='--backend -Wl,'
19881 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019882 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019883 # Rational C++ 2.4.1
19884 lt_prog_compiler_pic_CXX='-pic'
19885 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019886 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019887 # Digital/Compaq C++
19888 lt_prog_compiler_wl_CXX='-Wl,'
19889 # Make sure the PIC flag is empty. It appears that all Alpha
19890 # Linux and Compaq Tru64 Unix objects are PIC.
19891 lt_prog_compiler_pic_CXX=
19892 lt_prog_compiler_static_CXX='-non_shared'
19893 ;;
19894 *)
19895 ;;
19896 esac
19897 ;;
19898 psos*)
19899 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019900 solaris*)
19901 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019902 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019903 # Sun C++ 4.2, 5.x and Centerline C++
19904 lt_prog_compiler_pic_CXX='-KPIC'
19905 lt_prog_compiler_static_CXX='-Bstatic'
19906 lt_prog_compiler_wl_CXX='-Qoption ld '
19907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019908 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019909 # Green Hills C++ Compiler
19910 lt_prog_compiler_pic_CXX='-PIC'
19911 ;;
19912 *)
19913 ;;
19914 esac
19915 ;;
19916 sunos4*)
19917 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019918 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019919 # Sun C++ 4.x
19920 lt_prog_compiler_pic_CXX='-pic'
19921 lt_prog_compiler_static_CXX='-Bstatic'
19922 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019923 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019924 # Lucid
19925 lt_prog_compiler_pic_CXX='-pic'
19926 ;;
19927 *)
19928 ;;
19929 esac
19930 ;;
19931 tandem*)
19932 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019933 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019934 # NonStop-UX NCC 3.20
19935 lt_prog_compiler_pic_CXX='-KPIC'
19936 ;;
19937 *)
19938 ;;
19939 esac
19940 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19942 case $cc_basename in
19943 CC*)
19944 lt_prog_compiler_wl_CXX='-Wl,'
19945 lt_prog_compiler_pic_CXX='-KPIC'
19946 lt_prog_compiler_static_CXX='-Bstatic'
19947 ;;
19948 esac
John Criswell47fdd832003-07-14 16:52:07 +000019949 ;;
19950 vxworks*)
19951 ;;
19952 *)
19953 lt_prog_compiler_can_build_shared_CXX=no
19954 ;;
19955 esac
19956 fi
19957
Reid Spencera773bd52006-08-04 18:18:08 +000019958{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19959echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019960
19961#
19962# Check to make sure the PIC flag actually works.
19963#
19964if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019965
Reid Spencera773bd52006-08-04 18:18:08 +000019966{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019968if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970else
19971 lt_prog_compiler_pic_works_CXX=no
19972 ac_outfile=conftest.$ac_objext
19973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19975 # Insert the option either (1) after the last *FLAGS variable, or
19976 # (2) before a word containing "conftest.", or (3) at the end.
19977 # Note that $ac_compile itself does not contain backslashes and begins
19978 # with a dollar sign (not a hyphen), so the echo should work correctly.
19979 # The option is referenced via a variable to avoid confusing sed.
19980 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19983 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000019984 (eval echo "\"\$as_me:19984: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019985 (eval "$lt_compile" 2>conftest.err)
19986 ac_status=$?
19987 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000019988 echo "$as_me:19988: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019989 if (exit $ac_status) && test -s "$ac_outfile"; then
19990 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019991 # So say no if there are warnings other than the usual output.
19992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019995 lt_prog_compiler_pic_works_CXX=yes
19996 fi
19997 fi
19998 $rm conftest*
19999
20000fi
Reid Spencera773bd52006-08-04 18:18:08 +000020001{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20002echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020003
20004if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20005 case $lt_prog_compiler_pic_CXX in
20006 "" | " "*) ;;
20007 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20008 esac
20009else
20010 lt_prog_compiler_pic_CXX=
20011 lt_prog_compiler_can_build_shared_CXX=no
20012fi
20013
20014fi
Reid Spencera773bd52006-08-04 18:18:08 +000020015case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020016 # For platforms which do not support PIC, -DPIC is meaningless:
20017 *djgpp*)
20018 lt_prog_compiler_pic_CXX=
20019 ;;
20020 *)
20021 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20022 ;;
20023esac
20024
Reid Spencera773bd52006-08-04 18:18:08 +000020025#
20026# Check to make sure the static flag actually works.
20027#
20028wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20029{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20030echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20031if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034 lt_prog_compiler_static_works_CXX=no
20035 save_LDFLAGS="$LDFLAGS"
20036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20037 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20039 # The linker can only warn and ignore the option if not recognized
20040 # So say no if there are warnings
20041 if test -s conftest.err; then
20042 # Append any errors to the config.log.
20043 cat conftest.err 1>&5
20044 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20046 if diff conftest.exp conftest.er2 >/dev/null; then
20047 lt_prog_compiler_static_works_CXX=yes
20048 fi
20049 else
20050 lt_prog_compiler_static_works_CXX=yes
20051 fi
20052 fi
20053 $rm conftest*
20054 LDFLAGS="$save_LDFLAGS"
20055
20056fi
20057{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20058echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20059
20060if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20061 :
20062else
20063 lt_prog_compiler_static_CXX=
20064fi
20065
20066
20067{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20068echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020069if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20071else
20072 lt_cv_prog_compiler_c_o_CXX=no
20073 $rm -r conftest 2>/dev/null
20074 mkdir conftest
20075 cd conftest
20076 mkdir out
20077 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20078
John Criswell47fdd832003-07-14 16:52:07 +000020079 lt_compiler_flag="-o out/conftest2.$ac_objext"
20080 # Insert the option either (1) after the last *FLAGS variable, or
20081 # (2) before a word containing "conftest.", or (3) at the end.
20082 # Note that $ac_compile itself does not contain backslashes and begins
20083 # with a dollar sign (not a hyphen), so the echo should work correctly.
20084 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000020088 (eval echo "\"\$as_me:20088: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020089 (eval "$lt_compile" 2>out/conftest.err)
20090 ac_status=$?
20091 cat out/conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000020092 echo "$as_me:20092: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20094 then
20095 # The compiler can only warn and ignore the option if not recognized
20096 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020100 lt_cv_prog_compiler_c_o_CXX=yes
20101 fi
20102 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020103 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020104 $rm conftest*
20105 # SGI C++ compiler will create directory out/ii_files/ for
20106 # template instantiation
20107 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20108 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020109 cd ..
20110 rmdir conftest
20111 $rm conftest*
20112
20113fi
Reid Spencera773bd52006-08-04 18:18:08 +000020114{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20115echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020116
20117
20118hard_links="nottested"
20119if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20120 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020121 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20122echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020123 hard_links=yes
20124 $rm conftest*
20125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20126 touch conftest.a
20127 ln conftest.a conftest.b 2>&5 || hard_links=no
20128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020129 { echo "$as_me:$LINENO: result: $hard_links" >&5
20130echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020131 if test "$hard_links" = no; then
20132 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20133echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20134 need_locks=warn
20135 fi
20136else
20137 need_locks=no
20138fi
20139
Reid Spencera773bd52006-08-04 18:18:08 +000020140{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20141echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020142
20143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20144 case $host_os in
20145 aix4* | aix5*)
20146 # If we're using GNU nm, then we don't want the "-C" option.
20147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20149 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'
20150 else
20151 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'
20152 fi
20153 ;;
20154 pw32*)
20155 export_symbols_cmds_CXX="$ltdll_cmds"
20156 ;;
20157 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020158 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 +000020159 ;;
20160 *)
20161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20162 ;;
20163 esac
20164
Reid Spencera773bd52006-08-04 18:18:08 +000020165{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20166echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020167test "$ld_shlibs_CXX" = no && can_build_shared=no
20168
John Criswell47fdd832003-07-14 16:52:07 +000020169#
20170# Do we need to explicitly link libc?
20171#
20172case "x$archive_cmds_need_lc_CXX" in
20173x|xyes)
20174 # Assume -lc should be added
20175 archive_cmds_need_lc_CXX=yes
20176
20177 if test "$enable_shared" = yes && test "$GCC" = yes; then
20178 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020180 # FIXME: we may have to deal with multi-command sequences.
20181 ;;
20182 '$CC '*)
20183 # Test whether the compiler implicitly links with -lc since on some
20184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020186 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020188 $rm conftest*
20189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20190
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } 2>conftest.err; then
20196 soname=conftest
20197 lib=conftest
20198 libobjs=conftest.$ac_objext
20199 deplibs=
20200 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020201 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020202 compiler_flags=-v
20203 linker_flags=-v
20204 verstring=
20205 output_objdir=.
20206 libname=conftest
20207 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20208 allow_undefined_flag_CXX=
20209 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20210 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }
20214 then
20215 archive_cmds_need_lc_CXX=no
20216 else
20217 archive_cmds_need_lc_CXX=yes
20218 fi
20219 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20220 else
20221 cat conftest.err 1>&5
20222 fi
20223 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020224 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20225echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020226 ;;
20227 esac
20228 fi
20229 ;;
20230esac
20231
Reid Spencera773bd52006-08-04 18:18:08 +000020232{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20233echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020234library_names_spec=
20235libname_spec='lib$name'
20236soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020237shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020238postinstall_cmds=
20239postuninstall_cmds=
20240finish_cmds=
20241finish_eval=
20242shlibpath_var=
20243shlibpath_overrides_runpath=unknown
20244version_type=none
20245dynamic_linker="$host_os ld.so"
20246sys_lib_dlsearch_path_spec="/lib /usr/lib"
20247if test "$GCC" = yes; then
20248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20249 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20250 # if the path contains ";" then we assume it to be the separator
20251 # otherwise default to the standard path separator (i.e. ":") - it is
20252 # assumed that no part of a normal pathname contains ";" but that should
20253 # okay in the real world where ";" in dirpaths is itself problematic.
20254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20255 else
20256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20257 fi
20258else
20259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20260fi
20261need_lib_prefix=unknown
20262hardcode_into_libs=no
20263
20264# when you set need_version to no, make sure it does not cause -set_version
20265# flags to be left without arguments
20266need_version=unknown
20267
20268case $host_os in
20269aix3*)
20270 version_type=linux
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20272 shlibpath_var=LIBPATH
20273
20274 # AIX 3 has no versioning support, so we append a major version to the name.
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 ;;
20277
20278aix4* | aix5*)
20279 version_type=linux
20280 need_lib_prefix=no
20281 need_version=no
20282 hardcode_into_libs=yes
20283 if test "$host_cpu" = ia64; then
20284 # AIX 5 supports IA64
20285 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20286 shlibpath_var=LD_LIBRARY_PATH
20287 else
20288 # With GCC up to 2.95.x, collect2 would create an import file
20289 # for dependence libraries. The import file would start with
20290 # the line `#! .'. This would cause the generated library to
20291 # depend on `.', always an invalid library. This was fixed in
20292 # development snapshots of GCC prior to 3.0.
20293 case $host_os in
20294 aix4 | aix4.[01] | aix4.[01].*)
20295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20296 echo ' yes '
20297 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20298 :
20299 else
20300 can_build_shared=no
20301 fi
20302 ;;
20303 esac
20304 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20305 # soname into executable. Probably we can add versioning support to
20306 # collect2, so additional links can be useful in future.
20307 if test "$aix_use_runtimelinking" = yes; then
20308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20309 # instead of lib<name>.a to let people know that these are not
20310 # typical AIX shared libraries.
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 else
20313 # We preserve .a as extension for shared libraries through AIX4.2
20314 # and later when we are not doing run time linking.
20315 library_names_spec='${libname}${release}.a $libname.a'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 fi
20318 shlibpath_var=LIBPATH
20319 fi
20320 ;;
20321
20322amigaos*)
20323 library_names_spec='$libname.ixlibrary $libname.a'
20324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020325 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 +000020326 ;;
20327
20328beos*)
20329 library_names_spec='${libname}${shared_ext}'
20330 dynamic_linker="$host_os ld.so"
20331 shlibpath_var=LIBRARY_PATH
20332 ;;
20333
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020335 version_type=linux
20336 need_version=no
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20343 # the default ld.so.conf also contains /usr/contrib/lib and
20344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20345 # libtool to hard-code these into programs
20346 ;;
20347
20348cygwin* | mingw* | pw32*)
20349 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020350 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020351 need_version=no
20352 need_lib_prefix=no
20353
20354 case $GCC,$host_os in
20355 yes,cygwin* | yes,mingw* | yes,pw32*)
20356 library_names_spec='$libname.dll.a'
20357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020358 postinstall_cmds='base_file=`basename \${file}`~
20359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20360 dldir=$destdir/`dirname \$dlpath`~
20361 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020362 $install_prog $dir/$dlname \$dldir/$dlname~
20363 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20365 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020366 $rm \$dlpath'
20367 shlibpath_overrides_runpath=yes
20368
20369 case $host_os in
20370 cygwin*)
20371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20372 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 +000020373 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020374 ;;
20375 mingw*)
20376 # MinGW DLLs use traditional 'lib' prefix
20377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20379 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20380 # It is most probably a Windows format PATH printed by
20381 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20382 # path with ; separators, and with drive letters. We can handle the
20383 # drive letters (cygwin fileutils understands them), so leave them,
20384 # especially as we might pass files found there to a mingw objdump,
20385 # which wouldn't understand a cygwinified path. Ahh.
20386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20387 else
20388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20389 fi
20390 ;;
20391 pw32*)
20392 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020393 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 +000020394 ;;
20395 esac
20396 ;;
20397
20398 *)
20399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20400 ;;
20401 esac
20402 dynamic_linker='Win32 ld.exe'
20403 # FIXME: first we should search . and the directory the executable is in
20404 shlibpath_var=PATH
20405 ;;
20406
20407darwin* | rhapsody*)
20408 dynamic_linker="$host_os dyld"
20409 version_type=darwin
20410 need_lib_prefix=no
20411 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020412 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020413 soname_spec='${libname}${release}${major}$shared_ext'
20414 shlibpath_overrides_runpath=yes
20415 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020416 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020417 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020418 if test "$GCC" = yes; then
20419 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"`
20420 else
20421 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020422 fi
20423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20424 ;;
20425
20426dgux*)
20427 version_type=linux
20428 need_lib_prefix=no
20429 need_version=no
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 shlibpath_var=LD_LIBRARY_PATH
20433 ;;
20434
20435freebsd1*)
20436 dynamic_linker=no
20437 ;;
20438
Reid Spencer2706f8c2004-09-19 23:53:36 +000020439kfreebsd*-gnu)
20440 version_type=linux
20441 need_lib_prefix=no
20442 need_version=no
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=no
20447 hardcode_into_libs=yes
20448 dynamic_linker='GNU ld.so'
20449 ;;
20450
Reid Spencera773bd52006-08-04 18:18:08 +000020451freebsd* | dragonfly*)
20452 # DragonFly does not have aout. When/if they implement a new
20453 # versioning mechanism, adjust this.
20454 if test -x /usr/bin/objformat; then
20455 objformat=`/usr/bin/objformat`
20456 else
20457 case $host_os in
20458 freebsd[123]*) objformat=aout ;;
20459 *) objformat=elf ;;
20460 esac
20461 fi
John Criswell47fdd832003-07-14 16:52:07 +000020462 version_type=freebsd-$objformat
20463 case $version_type in
20464 freebsd-elf*)
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20466 need_version=no
20467 need_lib_prefix=no
20468 ;;
20469 freebsd-*)
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20471 need_version=yes
20472 ;;
20473 esac
20474 shlibpath_var=LD_LIBRARY_PATH
20475 case $host_os in
20476 freebsd2*)
20477 shlibpath_overrides_runpath=yes
20478 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020479 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020480 shlibpath_overrides_runpath=yes
20481 hardcode_into_libs=yes
20482 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020485 shlibpath_overrides_runpath=no
20486 hardcode_into_libs=yes
20487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020488 freebsd*) # from 4.6 on
20489 shlibpath_overrides_runpath=yes
20490 hardcode_into_libs=yes
20491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020492 esac
20493 ;;
20494
20495gnu*)
20496 version_type=linux
20497 need_lib_prefix=no
20498 need_version=no
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 hardcode_into_libs=yes
20503 ;;
20504
20505hpux9* | hpux10* | hpux11*)
20506 # Give a soname corresponding to the major version so that dld.sl refuses to
20507 # link against other versions.
20508 version_type=sunos
20509 need_lib_prefix=no
20510 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020511 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020512 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020513 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020514 hardcode_into_libs=yes
20515 dynamic_linker="$host_os dld.so"
20516 shlibpath_var=LD_LIBRARY_PATH
20517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 if test "X$HPUX_IA64_MODE" = X32; then
20521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20522 else
20523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20524 fi
20525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20526 ;;
20527 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020528 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020529 hardcode_into_libs=yes
20530 dynamic_linker="$host_os dld.sl"
20531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20537 ;;
20538 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020539 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020540 dynamic_linker="$host_os dld.sl"
20541 shlibpath_var=SHLIB_PATH
20542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20544 soname_spec='${libname}${release}${shared_ext}$major'
20545 ;;
20546 esac
20547 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20548 postinstall_cmds='chmod 555 $lib'
20549 ;;
20550
Reid Spencera773bd52006-08-04 18:18:08 +000020551interix3*)
20552 version_type=linux
20553 need_lib_prefix=no
20554 need_version=no
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 shlibpath_overrides_runpath=no
20560 hardcode_into_libs=yes
20561 ;;
20562
John Criswell47fdd832003-07-14 16:52:07 +000020563irix5* | irix6* | nonstopux*)
20564 case $host_os in
20565 nonstopux*) version_type=nonstopux ;;
20566 *)
20567 if test "$lt_cv_prog_gnu_ld" = yes; then
20568 version_type=linux
20569 else
20570 version_type=irix
20571 fi ;;
20572 esac
20573 need_lib_prefix=no
20574 need_version=no
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20577 case $host_os in
20578 irix5* | nonstopux*)
20579 libsuff= shlibsuff=
20580 ;;
20581 *)
20582 case $LD in # libtool.m4 will add one of these switches to LD
20583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20584 libsuff= shlibsuff= libmagic=32-bit;;
20585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20586 libsuff=32 shlibsuff=N32 libmagic=N32;;
20587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20589 *) libsuff= shlibsuff= libmagic=never-match;;
20590 esac
20591 ;;
20592 esac
20593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20594 shlibpath_overrides_runpath=no
20595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20597 hardcode_into_libs=yes
20598 ;;
20599
20600# No shared lib support for Linux oldld, aout, or coff.
20601linux*oldld* | linux*aout* | linux*coff*)
20602 dynamic_linker=no
20603 ;;
20604
20605# This must be Linux ELF.
20606linux*)
20607 version_type=linux
20608 need_lib_prefix=no
20609 need_version=no
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20613 shlibpath_var=LD_LIBRARY_PATH
20614 shlibpath_overrides_runpath=no
20615 # This implies no fast_install, which is unacceptable.
20616 # Some rework will be needed to allow for fast_install
20617 # before this can be enabled.
20618 hardcode_into_libs=yes
20619
Reid Spencer2706f8c2004-09-19 23:53:36 +000020620 # Append ld.so.conf contents to the search path
20621 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020622 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 +000020623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20624 fi
20625
John Criswell47fdd832003-07-14 16:52:07 +000020626 # We used to test for /lib/ld.so.1 and disable shared libraries on
20627 # powerpc, because MkLinux only supported shared libraries with the
20628 # GNU dynamic linker. Since this was broken with cross compilers,
20629 # most powerpc-linux boxes support dynamic linking these days and
20630 # people can always --disable-shared, the test was removed, and we
20631 # assume the GNU/Linux dynamic linker is in use.
20632 dynamic_linker='GNU/Linux ld.so'
20633 ;;
20634
Reid Spencer2706f8c2004-09-19 23:53:36 +000020635knetbsd*-gnu)
20636 version_type=linux
20637 need_lib_prefix=no
20638 need_version=no
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20640 soname_spec='${libname}${release}${shared_ext}$major'
20641 shlibpath_var=LD_LIBRARY_PATH
20642 shlibpath_overrides_runpath=no
20643 hardcode_into_libs=yes
20644 dynamic_linker='GNU ld.so'
20645 ;;
20646
John Criswell47fdd832003-07-14 16:52:07 +000020647netbsd*)
20648 version_type=sunos
20649 need_lib_prefix=no
20650 need_version=no
20651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20654 dynamic_linker='NetBSD (a.out) ld.so'
20655 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020657 soname_spec='${libname}${release}${shared_ext}$major'
20658 dynamic_linker='NetBSD ld.elf_so'
20659 fi
20660 shlibpath_var=LD_LIBRARY_PATH
20661 shlibpath_overrides_runpath=yes
20662 hardcode_into_libs=yes
20663 ;;
20664
20665newsos6)
20666 version_type=linux
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 shlibpath_overrides_runpath=yes
20670 ;;
20671
Reid Spencer2706f8c2004-09-19 23:53:36 +000020672nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020673 version_type=linux
20674 need_lib_prefix=no
20675 need_version=no
20676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677 soname_spec='${libname}${release}${shared_ext}$major'
20678 shlibpath_var=LD_LIBRARY_PATH
20679 shlibpath_overrides_runpath=yes
20680 ;;
20681
20682openbsd*)
20683 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020684 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020685 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20687 case $host_os in
20688 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20689 *) need_version=no ;;
20690 esac
John Criswell47fdd832003-07-14 16:52:07 +000020691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20693 shlibpath_var=LD_LIBRARY_PATH
20694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20695 case $host_os in
20696 openbsd2.[89] | openbsd2.[89].*)
20697 shlibpath_overrides_runpath=no
20698 ;;
20699 *)
20700 shlibpath_overrides_runpath=yes
20701 ;;
20702 esac
20703 else
20704 shlibpath_overrides_runpath=yes
20705 fi
20706 ;;
20707
20708os2*)
20709 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020710 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020711 need_lib_prefix=no
20712 library_names_spec='$libname${shared_ext} $libname.a'
20713 dynamic_linker='OS/2 ld.exe'
20714 shlibpath_var=LIBPATH
20715 ;;
20716
20717osf3* | osf4* | osf5*)
20718 version_type=osf
20719 need_lib_prefix=no
20720 need_version=no
20721 soname_spec='${libname}${release}${shared_ext}$major'
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723 shlibpath_var=LD_LIBRARY_PATH
20724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20726 ;;
20727
John Criswell47fdd832003-07-14 16:52:07 +000020728solaris*)
20729 version_type=linux
20730 need_lib_prefix=no
20731 need_version=no
20732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20733 soname_spec='${libname}${release}${shared_ext}$major'
20734 shlibpath_var=LD_LIBRARY_PATH
20735 shlibpath_overrides_runpath=yes
20736 hardcode_into_libs=yes
20737 # ldd complains unless libraries are executable
20738 postinstall_cmds='chmod +x $lib'
20739 ;;
20740
20741sunos4*)
20742 version_type=sunos
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20745 shlibpath_var=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath=yes
20747 if test "$with_gnu_ld" = yes; then
20748 need_lib_prefix=no
20749 fi
20750 need_version=yes
20751 ;;
20752
Reid Spencera773bd52006-08-04 18:18:08 +000020753sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020754 version_type=linux
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 case $host_vendor in
20759 sni)
20760 shlibpath_overrides_runpath=no
20761 need_lib_prefix=no
20762 export_dynamic_flag_spec='${wl}-Blargedynsym'
20763 runpath_var=LD_RUN_PATH
20764 ;;
20765 siemens)
20766 need_lib_prefix=no
20767 ;;
20768 motorola)
20769 need_lib_prefix=no
20770 need_version=no
20771 shlibpath_overrides_runpath=no
20772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20773 ;;
20774 esac
20775 ;;
20776
20777sysv4*MP*)
20778 if test -d /usr/nec ;then
20779 version_type=linux
20780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20781 soname_spec='$libname${shared_ext}.$major'
20782 shlibpath_var=LD_LIBRARY_PATH
20783 fi
20784 ;;
20785
Reid Spencera773bd52006-08-04 18:18:08 +000020786sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20787 version_type=freebsd-elf
20788 need_lib_prefix=no
20789 need_version=no
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 hardcode_into_libs=yes
20794 if test "$with_gnu_ld" = yes; then
20795 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20796 shlibpath_overrides_runpath=no
20797 else
20798 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20799 shlibpath_overrides_runpath=yes
20800 case $host_os in
20801 sco3.2v5*)
20802 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20803 ;;
20804 esac
20805 fi
20806 sys_lib_dlsearch_path_spec='/usr/lib'
20807 ;;
20808
John Criswell47fdd832003-07-14 16:52:07 +000020809uts4*)
20810 version_type=linux
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 ;;
20815
20816*)
20817 dynamic_linker=no
20818 ;;
20819esac
Reid Spencera773bd52006-08-04 18:18:08 +000020820{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20821echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020822test "$dynamic_linker" = no && can_build_shared=no
20823
Reid Spencera773bd52006-08-04 18:18:08 +000020824variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20825if test "$GCC" = yes; then
20826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20827fi
20828
20829{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20830echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020831hardcode_action_CXX=
20832if test -n "$hardcode_libdir_flag_spec_CXX" || \
20833 test -n "$runpath_var_CXX" || \
20834 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20835
20836 # We can hardcode non-existant directories.
20837 if test "$hardcode_direct_CXX" != no &&
20838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20839 # have to relink, otherwise we might link with an installed library
20840 # when we should be linking with a yet-to-be-installed one
20841 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20842 test "$hardcode_minus_L_CXX" != no; then
20843 # Linking always hardcodes the temporary library directory.
20844 hardcode_action_CXX=relink
20845 else
20846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20847 hardcode_action_CXX=immediate
20848 fi
20849else
20850 # We cannot hardcode anything, or else we can only hardcode existing
20851 # directories.
20852 hardcode_action_CXX=unsupported
20853fi
Reid Spencera773bd52006-08-04 18:18:08 +000020854{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20855echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020856
20857if test "$hardcode_action_CXX" = relink; then
20858 # Fast installation is not supported
20859 enable_fast_install=no
20860elif test "$shlibpath_overrides_runpath" = yes ||
20861 test "$enable_shared" = no; then
20862 # Fast installation is not necessary
20863 enable_fast_install=needless
20864fi
20865
John Criswell47fdd832003-07-14 16:52:07 +000020866
20867# The else clause should only fire when bootstrapping the
20868# libtool distribution, otherwise you forgot to ship ltmain.sh
20869# with your package, and you will get complaints that there are
20870# no rules to generate ltmain.sh.
20871if test -f "$ltmain"; then
20872 # See if we are running on zsh, and set the options which allow our commands through
20873 # without removal of \ escapes.
20874 if test -n "${ZSH_VERSION+set}" ; then
20875 setopt NO_GLOB_SUBST
20876 fi
20877 # Now quote all the things that may contain metacharacters while being
20878 # careful not to overquote the AC_SUBSTed values. We take copies of the
20879 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020880 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 +000020881 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020882 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20883 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20884 deplibs_check_method reload_flag reload_cmds need_locks \
20885 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20886 lt_cv_sys_global_symbol_to_c_name_address \
20887 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20888 old_postinstall_cmds old_postuninstall_cmds \
20889 compiler_CXX \
20890 CC_CXX \
20891 LD_CXX \
20892 lt_prog_compiler_wl_CXX \
20893 lt_prog_compiler_pic_CXX \
20894 lt_prog_compiler_static_CXX \
20895 lt_prog_compiler_no_builtin_flag_CXX \
20896 export_dynamic_flag_spec_CXX \
20897 thread_safe_flag_spec_CXX \
20898 whole_archive_flag_spec_CXX \
20899 enable_shared_with_static_runtimes_CXX \
20900 old_archive_cmds_CXX \
20901 old_archive_from_new_cmds_CXX \
20902 predep_objects_CXX \
20903 postdep_objects_CXX \
20904 predeps_CXX \
20905 postdeps_CXX \
20906 compiler_lib_search_path_CXX \
20907 archive_cmds_CXX \
20908 archive_expsym_cmds_CXX \
20909 postinstall_cmds_CXX \
20910 postuninstall_cmds_CXX \
20911 old_archive_from_expsyms_cmds_CXX \
20912 allow_undefined_flag_CXX \
20913 no_undefined_flag_CXX \
20914 export_symbols_cmds_CXX \
20915 hardcode_libdir_flag_spec_CXX \
20916 hardcode_libdir_flag_spec_ld_CXX \
20917 hardcode_libdir_separator_CXX \
20918 hardcode_automatic_CXX \
20919 module_cmds_CXX \
20920 module_expsym_cmds_CXX \
20921 lt_cv_prog_compiler_c_o_CXX \
20922 exclude_expsyms_CXX \
20923 include_expsyms_CXX; do
20924
20925 case $var in
20926 old_archive_cmds_CXX | \
20927 old_archive_from_new_cmds_CXX | \
20928 archive_cmds_CXX | \
20929 archive_expsym_cmds_CXX | \
20930 module_cmds_CXX | \
20931 module_expsym_cmds_CXX | \
20932 old_archive_from_expsyms_cmds_CXX | \
20933 export_symbols_cmds_CXX | \
20934 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20935 postinstall_cmds | postuninstall_cmds | \
20936 old_postinstall_cmds | old_postuninstall_cmds | \
20937 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20938 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020939 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 +000020940 ;;
20941 *)
20942 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20943 ;;
20944 esac
20945 done
20946
20947 case $lt_echo in
20948 *'\$0 --fallback-echo"')
20949 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20950 ;;
20951 esac
20952
20953cfgfile="$ofile"
20954
20955 cat <<__EOF__ >> "$cfgfile"
20956# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20957
20958# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20959
20960# Shell to use when invoking shell scripts.
20961SHELL=$lt_SHELL
20962
20963# Whether or not to build shared libraries.
20964build_libtool_libs=$enable_shared
20965
20966# Whether or not to build static libraries.
20967build_old_libs=$enable_static
20968
20969# Whether or not to add -lc for building shared libraries.
20970build_libtool_need_lc=$archive_cmds_need_lc_CXX
20971
20972# Whether or not to disallow shared libs when runtime libs are static
20973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20974
20975# Whether or not to optimize for fast installation.
20976fast_install=$enable_fast_install
20977
20978# The host system.
20979host_alias=$host_alias
20980host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020981host_os=$host_os
20982
20983# The build system.
20984build_alias=$build_alias
20985build=$build
20986build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020987
20988# An echo program that does not interpret backslashes.
20989echo=$lt_echo
20990
20991# The archiver.
20992AR=$lt_AR
20993AR_FLAGS=$lt_AR_FLAGS
20994
20995# A C compiler.
20996LTCC=$lt_LTCC
20997
Reid Spencera773bd52006-08-04 18:18:08 +000020998# LTCC compiler flags.
20999LTCFLAGS=$lt_LTCFLAGS
21000
John Criswell47fdd832003-07-14 16:52:07 +000021001# A language-specific compiler.
21002CC=$lt_compiler_CXX
21003
21004# Is the compiler the GNU C compiler?
21005with_gcc=$GCC_CXX
21006
21007# An ERE matcher.
21008EGREP=$lt_EGREP
21009
21010# The linker used to build libraries.
21011LD=$lt_LD_CXX
21012
21013# Whether we need hard or soft links.
21014LN_S=$lt_LN_S
21015
21016# A BSD-compatible nm program.
21017NM=$lt_NM
21018
21019# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021020STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021021
21022# Used to examine libraries when file_magic_cmd begins "file"
21023MAGIC_CMD=$MAGIC_CMD
21024
21025# Used on cygwin: DLL creation program.
21026DLLTOOL="$DLLTOOL"
21027
21028# Used on cygwin: object dumper.
21029OBJDUMP="$OBJDUMP"
21030
21031# Used on cygwin: assembler.
21032AS="$AS"
21033
21034# The name of the directory that contains temporary libtool files.
21035objdir=$objdir
21036
21037# How to create reloadable object files.
21038reload_flag=$lt_reload_flag
21039reload_cmds=$lt_reload_cmds
21040
21041# How to pass a linker flag through the compiler.
21042wl=$lt_lt_prog_compiler_wl_CXX
21043
21044# Object file suffix (normally "o").
21045objext="$ac_objext"
21046
21047# Old archive suffix (normally "a").
21048libext="$libext"
21049
21050# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021051shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021052
21053# Executable file suffix (normally "").
21054exeext="$exeext"
21055
21056# Additional compiler flags for building library objects.
21057pic_flag=$lt_lt_prog_compiler_pic_CXX
21058pic_mode=$pic_mode
21059
21060# What is the maximum length of a command?
21061max_cmd_len=$lt_cv_sys_max_cmd_len
21062
21063# Does compiler simultaneously support -c and -o options?
21064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21065
Reid Spencera773bd52006-08-04 18:18:08 +000021066# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021067need_locks=$lt_need_locks
21068
21069# Do we need the lib prefix for modules?
21070need_lib_prefix=$need_lib_prefix
21071
21072# Do we need a version for libraries?
21073need_version=$need_version
21074
21075# Whether dlopen is supported.
21076dlopen_support=$enable_dlopen
21077
21078# Whether dlopen of programs is supported.
21079dlopen_self=$enable_dlopen_self
21080
21081# Whether dlopen of statically linked programs is supported.
21082dlopen_self_static=$enable_dlopen_self_static
21083
21084# Compiler flag to prevent dynamic linking.
21085link_static_flag=$lt_lt_prog_compiler_static_CXX
21086
21087# Compiler flag to turn off builtin functions.
21088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21089
21090# Compiler flag to allow reflexive dlopens.
21091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21092
21093# Compiler flag to generate shared objects directly from archives.
21094whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21095
21096# Compiler flag to generate thread-safe objects.
21097thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21098
21099# Library versioning type.
21100version_type=$version_type
21101
21102# Format of library name prefix.
21103libname_spec=$lt_libname_spec
21104
21105# List of archive names. First name is the real one, the rest are links.
21106# The last name is the one that the linker finds with -lNAME.
21107library_names_spec=$lt_library_names_spec
21108
21109# The coded name of the library, if different from the real name.
21110soname_spec=$lt_soname_spec
21111
21112# Commands used to build and install an old-style archive.
21113RANLIB=$lt_RANLIB
21114old_archive_cmds=$lt_old_archive_cmds_CXX
21115old_postinstall_cmds=$lt_old_postinstall_cmds
21116old_postuninstall_cmds=$lt_old_postuninstall_cmds
21117
21118# Create an old-style archive from a shared archive.
21119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21120
21121# Create a temporary old-style archive to link instead of a shared archive.
21122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21123
21124# Commands used to build and install a shared archive.
21125archive_cmds=$lt_archive_cmds_CXX
21126archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21127postinstall_cmds=$lt_postinstall_cmds
21128postuninstall_cmds=$lt_postuninstall_cmds
21129
21130# Commands used to build a loadable module (assumed same as above if empty)
21131module_cmds=$lt_module_cmds_CXX
21132module_expsym_cmds=$lt_module_expsym_cmds_CXX
21133
21134# Commands to strip libraries.
21135old_striplib=$lt_old_striplib
21136striplib=$lt_striplib
21137
21138# Dependencies to place before the objects being linked to create a
21139# shared library.
21140predep_objects=$lt_predep_objects_CXX
21141
21142# Dependencies to place after the objects being linked to create a
21143# shared library.
21144postdep_objects=$lt_postdep_objects_CXX
21145
21146# Dependencies to place before the objects being linked to create a
21147# shared library.
21148predeps=$lt_predeps_CXX
21149
21150# Dependencies to place after the objects being linked to create a
21151# shared library.
21152postdeps=$lt_postdeps_CXX
21153
21154# The library search path used internally by the compiler when linking
21155# a shared library.
21156compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21157
21158# Method to check whether dependent libraries are shared objects.
21159deplibs_check_method=$lt_deplibs_check_method
21160
21161# Command to use when deplibs_check_method == file_magic.
21162file_magic_cmd=$lt_file_magic_cmd
21163
21164# Flag that allows shared libraries with undefined symbols to be built.
21165allow_undefined_flag=$lt_allow_undefined_flag_CXX
21166
21167# Flag that forces no undefined symbols.
21168no_undefined_flag=$lt_no_undefined_flag_CXX
21169
21170# Commands used to finish a libtool library installation in a directory.
21171finish_cmds=$lt_finish_cmds
21172
21173# Same as above, but a single script fragment to be evaled but not shown.
21174finish_eval=$lt_finish_eval
21175
21176# Take the output of nm and produce a listing of raw symbols and C names.
21177global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21178
21179# Transform the output of nm in a proper C declaration
21180global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21181
21182# Transform the output of nm in a C name address pair
21183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21184
21185# This is the shared library runtime path variable.
21186runpath_var=$runpath_var
21187
21188# This is the shared library path variable.
21189shlibpath_var=$shlibpath_var
21190
21191# Is shlibpath searched before the hard-coded library search path?
21192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21193
21194# How to hardcode a shared library path into an executable.
21195hardcode_action=$hardcode_action_CXX
21196
21197# Whether we should hardcode library paths into libraries.
21198hardcode_into_libs=$hardcode_into_libs
21199
21200# Flag to hardcode \$libdir into a binary during linking.
21201# This must work even if \$libdir does not exist.
21202hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21203
21204# If ld is used when linking, flag to hardcode \$libdir into
21205# a binary during linking. This must work even if \$libdir does
21206# not exist.
21207hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21208
21209# Whether we need a single -rpath flag with a separated argument.
21210hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21211
21212# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21213# resulting binary.
21214hardcode_direct=$hardcode_direct_CXX
21215
21216# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21217# resulting binary.
21218hardcode_minus_L=$hardcode_minus_L_CXX
21219
21220# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21221# the resulting binary.
21222hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21223
21224# Set to yes if building a shared library automatically hardcodes DIR into the library
21225# and all subsequent libraries and executables linked against it.
21226hardcode_automatic=$hardcode_automatic_CXX
21227
21228# Variables whose values should be saved in libtool wrapper scripts and
21229# restored at relink time.
21230variables_saved_for_relink="$variables_saved_for_relink"
21231
21232# Whether libtool must link a program against all its dependency libraries.
21233link_all_deplibs=$link_all_deplibs_CXX
21234
21235# Compile-time system search path for libraries
21236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21237
21238# Run-time system search path for libraries
21239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21240
21241# Fix the shell variable \$srcfile for the compiler.
21242fix_srcfile_path="$fix_srcfile_path_CXX"
21243
21244# Set to yes if exported symbols are required.
21245always_export_symbols=$always_export_symbols_CXX
21246
21247# The commands to list exported symbols.
21248export_symbols_cmds=$lt_export_symbols_cmds_CXX
21249
21250# The commands to extract the exported symbol list from a shared archive.
21251extract_expsyms_cmds=$lt_extract_expsyms_cmds
21252
21253# Symbols that should not be listed in the preloaded symbols.
21254exclude_expsyms=$lt_exclude_expsyms_CXX
21255
21256# Symbols that must always be exported.
21257include_expsyms=$lt_include_expsyms_CXX
21258
21259# ### END LIBTOOL TAG CONFIG: $tagname
21260
21261__EOF__
21262
21263
21264else
21265 # If there is no Makefile yet, we rely on a make rule to execute
21266 # `config.status --recheck' to rerun these tests and create the
21267 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021268 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21269 if test -f "$ltmain_in"; then
21270 test -f Makefile && make "$ltmain"
21271 fi
John Criswell47fdd832003-07-14 16:52:07 +000021272fi
21273
21274
21275ac_ext=c
21276ac_cpp='$CPP $CPPFLAGS'
21277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281CC=$lt_save_CC
21282LDCXX=$LD
21283LD=$lt_save_LD
21284GCC=$lt_save_GCC
21285with_gnu_ldcxx=$with_gnu_ld
21286with_gnu_ld=$lt_save_with_gnu_ld
21287lt_cv_path_LDCXX=$lt_cv_path_LD
21288lt_cv_path_LD=$lt_save_path_LD
21289lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21290lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21291
21292 else
21293 tagname=""
21294 fi
21295 ;;
21296
21297 F77)
21298 if test -n "$F77" && test "X$F77" != "Xno"; then
21299
21300ac_ext=f
21301ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21302ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21304
21305
21306archive_cmds_need_lc_F77=no
21307allow_undefined_flag_F77=
21308always_export_symbols_F77=no
21309archive_expsym_cmds_F77=
21310export_dynamic_flag_spec_F77=
21311hardcode_direct_F77=no
21312hardcode_libdir_flag_spec_F77=
21313hardcode_libdir_flag_spec_ld_F77=
21314hardcode_libdir_separator_F77=
21315hardcode_minus_L_F77=no
21316hardcode_automatic_F77=no
21317module_cmds_F77=
21318module_expsym_cmds_F77=
21319link_all_deplibs_F77=unknown
21320old_archive_cmds_F77=$old_archive_cmds
21321no_undefined_flag_F77=
21322whole_archive_flag_spec_F77=
21323enable_shared_with_static_runtimes_F77=no
21324
21325# Source file extension for f77 test sources.
21326ac_ext=f
21327
21328# Object file extension for compiled f77 test sources.
21329objext=o
21330objext_F77=$objext
21331
21332# Code to be used in simple compile tests
21333lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21334
21335# Code to be used in simple link tests
21336lt_simple_link_test_code=" program t\n end\n"
21337
21338# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21339
21340# If no C compiler was specified, use CC.
21341LTCC=${LTCC-"$CC"}
21342
Reid Spencera773bd52006-08-04 18:18:08 +000021343# If no C compiler flags were specified, use CFLAGS.
21344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21345
John Criswell47fdd832003-07-14 16:52:07 +000021346# Allow CC to be a program name with arguments.
21347compiler=$CC
21348
21349
Reid Spencera773bd52006-08-04 18:18:08 +000021350# save warnings/boilerplate of simple test code
21351ac_outfile=conftest.$ac_objext
21352printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21353eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21354_lt_compiler_boilerplate=`cat conftest.err`
21355$rm conftest*
21356
21357ac_outfile=conftest.$ac_objext
21358printf "$lt_simple_link_test_code" >conftest.$ac_ext
21359eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21360_lt_linker_boilerplate=`cat conftest.err`
21361$rm conftest*
21362
21363
John Criswell47fdd832003-07-14 16:52:07 +000021364# Allow CC to be a program name with arguments.
21365lt_save_CC="$CC"
21366CC=${F77-"f77"}
21367compiler=$CC
21368compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021369for cc_temp in $compiler""; do
21370 case $cc_temp in
21371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21373 \-*) ;;
21374 *) break;;
21375 esac
21376done
21377cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021378
John Criswell47fdd832003-07-14 16:52:07 +000021379
Reid Spencera773bd52006-08-04 18:18:08 +000021380{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21381echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21382{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21383echo "${ECHO_T}$can_build_shared" >&6; }
21384
21385{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21386echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021387test "$can_build_shared" = "no" && enable_shared=no
21388
21389# On AIX, shared libraries and static libraries use the same namespace, and
21390# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021391case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021392aix3*)
21393 test "$enable_shared" = yes && enable_static=no
21394 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021396 postinstall_cmds='$RANLIB $lib'
21397 fi
21398 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021399aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21401 test "$enable_shared" = yes && enable_static=no
21402 fi
John Criswell47fdd832003-07-14 16:52:07 +000021403 ;;
21404esac
Reid Spencera773bd52006-08-04 18:18:08 +000021405{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21406echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021407
Reid Spencera773bd52006-08-04 18:18:08 +000021408{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21409echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021410# Make sure either enable_shared or enable_static is yes.
21411test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021412{ echo "$as_me:$LINENO: result: $enable_static" >&5
21413echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021414
21415GCC_F77="$G77"
21416LD_F77="$LD"
21417
21418lt_prog_compiler_wl_F77=
21419lt_prog_compiler_pic_F77=
21420lt_prog_compiler_static_F77=
21421
Reid Spencera773bd52006-08-04 18:18:08 +000021422{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021424
21425 if test "$GCC" = yes; then
21426 lt_prog_compiler_wl_F77='-Wl,'
21427 lt_prog_compiler_static_F77='-static'
21428
21429 case $host_os in
21430 aix*)
21431 # All AIX code is PIC.
21432 if test "$host_cpu" = ia64; then
21433 # AIX 5 now supports IA64 processor
21434 lt_prog_compiler_static_F77='-Bstatic'
21435 fi
21436 ;;
21437
21438 amigaos*)
21439 # FIXME: we need at least 68020 code to build shared libraries, but
21440 # adding the `-m68020' flag to GCC prevents building anything better,
21441 # like `-m68040'.
21442 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21443 ;;
21444
21445 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21446 # PIC is the default for these OSes.
21447 ;;
21448
21449 mingw* | pw32* | os2*)
21450 # This hack is so that the source file can tell whether it is being
21451 # built for inclusion in a dll (and should export symbols for example).
21452 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21453 ;;
21454
21455 darwin* | rhapsody*)
21456 # PIC is the default on this platform
21457 # Common symbols not allowed in MH_DYLIB files
21458 lt_prog_compiler_pic_F77='-fno-common'
21459 ;;
21460
Reid Spencera773bd52006-08-04 18:18:08 +000021461 interix3*)
21462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21463 # Instead, we relocate shared libraries at runtime.
21464 ;;
21465
John Criswell47fdd832003-07-14 16:52:07 +000021466 msdosdjgpp*)
21467 # Just because we use GCC doesn't mean we suddenly get shared libraries
21468 # on systems that don't support them.
21469 lt_prog_compiler_can_build_shared_F77=no
21470 enable_shared=no
21471 ;;
21472
21473 sysv4*MP*)
21474 if test -d /usr/nec; then
21475 lt_prog_compiler_pic_F77=-Kconform_pic
21476 fi
21477 ;;
21478
21479 hpux*)
21480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21481 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021482 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021483 hppa*64*|ia64*)
21484 # +Z the default
21485 ;;
21486 *)
21487 lt_prog_compiler_pic_F77='-fPIC'
21488 ;;
21489 esac
21490 ;;
21491
21492 *)
21493 lt_prog_compiler_pic_F77='-fPIC'
21494 ;;
21495 esac
21496 else
21497 # PORTME Check for flag to pass linker flags through the system compiler.
21498 case $host_os in
21499 aix*)
21500 lt_prog_compiler_wl_F77='-Wl,'
21501 if test "$host_cpu" = ia64; then
21502 # AIX 5 now supports IA64 processor
21503 lt_prog_compiler_static_F77='-Bstatic'
21504 else
21505 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21506 fi
21507 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021508 darwin*)
21509 # PIC is the default on this platform
21510 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021511 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021512 xlc*)
21513 lt_prog_compiler_pic_F77='-qnocommon'
21514 lt_prog_compiler_wl_F77='-Wl,'
21515 ;;
21516 esac
21517 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021518
21519 mingw* | pw32* | os2*)
21520 # This hack is so that the source file can tell whether it is being
21521 # built for inclusion in a dll (and should export symbols for example).
21522 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21523 ;;
21524
21525 hpux9* | hpux10* | hpux11*)
21526 lt_prog_compiler_wl_F77='-Wl,'
21527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21528 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021529 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021530 hppa*64*|ia64*)
21531 # +Z the default
21532 ;;
21533 *)
21534 lt_prog_compiler_pic_F77='+Z'
21535 ;;
21536 esac
21537 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21538 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21539 ;;
21540
21541 irix5* | irix6* | nonstopux*)
21542 lt_prog_compiler_wl_F77='-Wl,'
21543 # PIC (with -KPIC) is the default.
21544 lt_prog_compiler_static_F77='-non_shared'
21545 ;;
21546
21547 newsos6)
21548 lt_prog_compiler_pic_F77='-KPIC'
21549 lt_prog_compiler_static_F77='-Bstatic'
21550 ;;
21551
21552 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021553 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021554 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021555 lt_prog_compiler_wl_F77='-Wl,'
21556 lt_prog_compiler_pic_F77='-KPIC'
21557 lt_prog_compiler_static_F77='-static'
21558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021559 pgcc* | pgf77* | pgf90* | pgf95*)
21560 # Portland Group compilers (*not* the Pentium gcc compiler,
21561 # which looks to be a dead project)
21562 lt_prog_compiler_wl_F77='-Wl,'
21563 lt_prog_compiler_pic_F77='-fpic'
21564 lt_prog_compiler_static_F77='-Bstatic'
21565 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021566 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021567 lt_prog_compiler_wl_F77='-Wl,'
21568 # All Alpha code is PIC.
21569 lt_prog_compiler_static_F77='-non_shared'
21570 ;;
21571 esac
21572 ;;
21573
21574 osf3* | osf4* | osf5*)
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 # All OSF/1 code is PIC.
21577 lt_prog_compiler_static_F77='-non_shared'
21578 ;;
21579
John Criswell47fdd832003-07-14 16:52:07 +000021580 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021581 lt_prog_compiler_pic_F77='-KPIC'
21582 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021583 case $cc_basename in
21584 f77* | f90* | f95*)
21585 lt_prog_compiler_wl_F77='-Qoption ld ';;
21586 *)
21587 lt_prog_compiler_wl_F77='-Wl,';;
21588 esac
John Criswell47fdd832003-07-14 16:52:07 +000021589 ;;
21590
21591 sunos4*)
21592 lt_prog_compiler_wl_F77='-Qoption ld '
21593 lt_prog_compiler_pic_F77='-PIC'
21594 lt_prog_compiler_static_F77='-Bstatic'
21595 ;;
21596
Reid Spencera773bd52006-08-04 18:18:08 +000021597 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021598 lt_prog_compiler_wl_F77='-Wl,'
21599 lt_prog_compiler_pic_F77='-KPIC'
21600 lt_prog_compiler_static_F77='-Bstatic'
21601 ;;
21602
21603 sysv4*MP*)
21604 if test -d /usr/nec ;then
21605 lt_prog_compiler_pic_F77='-Kconform_pic'
21606 lt_prog_compiler_static_F77='-Bstatic'
21607 fi
21608 ;;
21609
Reid Spencera773bd52006-08-04 18:18:08 +000021610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21611 lt_prog_compiler_wl_F77='-Wl,'
21612 lt_prog_compiler_pic_F77='-KPIC'
21613 lt_prog_compiler_static_F77='-Bstatic'
21614 ;;
21615
21616 unicos*)
21617 lt_prog_compiler_wl_F77='-Wl,'
21618 lt_prog_compiler_can_build_shared_F77=no
21619 ;;
21620
John Criswell47fdd832003-07-14 16:52:07 +000021621 uts4*)
21622 lt_prog_compiler_pic_F77='-pic'
21623 lt_prog_compiler_static_F77='-Bstatic'
21624 ;;
21625
21626 *)
21627 lt_prog_compiler_can_build_shared_F77=no
21628 ;;
21629 esac
21630 fi
21631
Reid Spencera773bd52006-08-04 18:18:08 +000021632{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21633echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021634
21635#
21636# Check to make sure the PIC flag actually works.
21637#
21638if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021639
Reid Spencera773bd52006-08-04 18:18:08 +000021640{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021642if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645 lt_prog_compiler_pic_works_F77=no
21646 ac_outfile=conftest.$ac_objext
21647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21648 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21649 # Insert the option either (1) after the last *FLAGS variable, or
21650 # (2) before a word containing "conftest.", or (3) at the end.
21651 # Note that $ac_compile itself does not contain backslashes and begins
21652 # with a dollar sign (not a hyphen), so the echo should work correctly.
21653 # The option is referenced via a variable to avoid confusing sed.
21654 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21657 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000021658 (eval echo "\"\$as_me:21658: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021659 (eval "$lt_compile" 2>conftest.err)
21660 ac_status=$?
21661 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000021662 echo "$as_me:21662: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021663 if (exit $ac_status) && test -s "$ac_outfile"; then
21664 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021665 # So say no if there are warnings other than the usual output.
21666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021669 lt_prog_compiler_pic_works_F77=yes
21670 fi
21671 fi
21672 $rm conftest*
21673
21674fi
Reid Spencera773bd52006-08-04 18:18:08 +000021675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21676echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021677
21678if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21679 case $lt_prog_compiler_pic_F77 in
21680 "" | " "*) ;;
21681 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21682 esac
21683else
21684 lt_prog_compiler_pic_F77=
21685 lt_prog_compiler_can_build_shared_F77=no
21686fi
21687
21688fi
Reid Spencera773bd52006-08-04 18:18:08 +000021689case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021690 # For platforms which do not support PIC, -DPIC is meaningless:
21691 *djgpp*)
21692 lt_prog_compiler_pic_F77=
21693 ;;
21694 *)
21695 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21696 ;;
21697esac
21698
Reid Spencera773bd52006-08-04 18:18:08 +000021699#
21700# Check to make sure the static flag actually works.
21701#
21702wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21703{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21705if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707else
21708 lt_prog_compiler_static_works_F77=no
21709 save_LDFLAGS="$LDFLAGS"
21710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21711 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21713 # The linker can only warn and ignore the option if not recognized
21714 # So say no if there are warnings
21715 if test -s conftest.err; then
21716 # Append any errors to the config.log.
21717 cat conftest.err 1>&5
21718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21720 if diff conftest.exp conftest.er2 >/dev/null; then
21721 lt_prog_compiler_static_works_F77=yes
21722 fi
21723 else
21724 lt_prog_compiler_static_works_F77=yes
21725 fi
21726 fi
21727 $rm conftest*
21728 LDFLAGS="$save_LDFLAGS"
21729
21730fi
21731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21732echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21733
21734if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21735 :
21736else
21737 lt_prog_compiler_static_F77=
21738fi
21739
21740
21741{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021743if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746 lt_cv_prog_compiler_c_o_F77=no
21747 $rm -r conftest 2>/dev/null
21748 mkdir conftest
21749 cd conftest
21750 mkdir out
21751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21752
John Criswell47fdd832003-07-14 16:52:07 +000021753 lt_compiler_flag="-o out/conftest2.$ac_objext"
21754 # Insert the option either (1) after the last *FLAGS variable, or
21755 # (2) before a word containing "conftest.", or (3) at the end.
21756 # Note that $ac_compile itself does not contain backslashes and begins
21757 # with a dollar sign (not a hyphen), so the echo should work correctly.
21758 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000021762 (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021763 (eval "$lt_compile" 2>out/conftest.err)
21764 ac_status=$?
21765 cat out/conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000021766 echo "$as_me:21766: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21768 then
21769 # The compiler can only warn and ignore the option if not recognized
21770 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021774 lt_cv_prog_compiler_c_o_F77=yes
21775 fi
21776 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021777 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021778 $rm conftest*
21779 # SGI C++ compiler will create directory out/ii_files/ for
21780 # template instantiation
21781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21782 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021783 cd ..
21784 rmdir conftest
21785 $rm conftest*
21786
21787fi
Reid Spencera773bd52006-08-04 18:18:08 +000021788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21789echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021790
21791
21792hard_links="nottested"
21793if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21794 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021795 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021797 hard_links=yes
21798 $rm conftest*
21799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21800 touch conftest.a
21801 ln conftest.a conftest.b 2>&5 || hard_links=no
21802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021803 { echo "$as_me:$LINENO: result: $hard_links" >&5
21804echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021805 if test "$hard_links" = no; then
21806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21808 need_locks=warn
21809 fi
21810else
21811 need_locks=no
21812fi
21813
Reid Spencera773bd52006-08-04 18:18:08 +000021814{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021816
21817 runpath_var=
21818 allow_undefined_flag_F77=
21819 enable_shared_with_static_runtimes_F77=no
21820 archive_cmds_F77=
21821 archive_expsym_cmds_F77=
21822 old_archive_From_new_cmds_F77=
21823 old_archive_from_expsyms_cmds_F77=
21824 export_dynamic_flag_spec_F77=
21825 whole_archive_flag_spec_F77=
21826 thread_safe_flag_spec_F77=
21827 hardcode_libdir_flag_spec_F77=
21828 hardcode_libdir_flag_spec_ld_F77=
21829 hardcode_libdir_separator_F77=
21830 hardcode_direct_F77=no
21831 hardcode_minus_L_F77=no
21832 hardcode_shlibpath_var_F77=unsupported
21833 link_all_deplibs_F77=unknown
21834 hardcode_automatic_F77=no
21835 module_cmds_F77=
21836 module_expsym_cmds_F77=
21837 always_export_symbols_F77=no
21838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21839 # include_expsyms should be a list of space-separated symbols to be *always*
21840 # included in the symbol list
21841 include_expsyms_F77=
21842 # exclude_expsyms can be an extended regexp of symbols to exclude
21843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21845 # as well as any symbol that contains `d'.
21846 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21848 # platforms (ab)use it in PIC code, but their linkers get confused if
21849 # the symbol is explicitly referenced. Since portable code cannot
21850 # rely on this symbol name, it's probably fine to never include it in
21851 # preloaded symbol tables.
21852 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021853 # Just being paranoid about ensuring that cc_basename is set.
21854 for cc_temp in $compiler""; do
21855 case $cc_temp in
21856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21858 \-*) ;;
21859 *) break;;
21860 esac
21861done
21862cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021863
21864 case $host_os in
21865 cygwin* | mingw* | pw32*)
21866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21867 # When not using gcc, we currently assume that we are using
21868 # Microsoft Visual C++.
21869 if test "$GCC" != yes; then
21870 with_gnu_ld=no
21871 fi
21872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021873 interix*)
21874 # we just hope/assume this is gcc and not c89 (= MSVC++)
21875 with_gnu_ld=yes
21876 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021877 openbsd*)
21878 with_gnu_ld=no
21879 ;;
21880 esac
21881
21882 ld_shlibs_F77=yes
21883 if test "$with_gnu_ld" = yes; then
21884 # If archive_cmds runs LD, not CC, wlarc should be empty
21885 wlarc='${wl}'
21886
Reid Spencera773bd52006-08-04 18:18:08 +000021887 # Set some defaults for GNU ld with shared library support. These
21888 # are reset later if shared libraries are not supported. Putting them
21889 # here allows them to be overridden if necessary.
21890 runpath_var=LD_RUN_PATH
21891 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21892 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21893 # ancient GNU ld didn't support --whole-archive et. al.
21894 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21895 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21896 else
21897 whole_archive_flag_spec_F77=
21898 fi
21899 supports_anon_versioning=no
21900 case `$LD -v 2>/dev/null` in
21901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21904 *\ 2.11.*) ;; # other 2.11 versions
21905 *) supports_anon_versioning=yes ;;
21906 esac
21907
John Criswell47fdd832003-07-14 16:52:07 +000021908 # See if GNU ld supports shared libraries.
21909 case $host_os in
21910 aix3* | aix4* | aix5*)
21911 # On AIX/PPC, the GNU linker is very broken
21912 if test "$host_cpu" != ia64; then
21913 ld_shlibs_F77=no
21914 cat <<EOF 1>&2
21915
21916*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21917*** to be unable to reliably create shared libraries on AIX.
21918*** Therefore, libtool is disabling shared libraries support. If you
21919*** really care for shared libraries, you may want to modify your PATH
21920*** so that a non-GNU linker is found, and then restart.
21921
21922EOF
21923 fi
21924 ;;
21925
21926 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021927 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 +000021928 hardcode_libdir_flag_spec_F77='-L$libdir'
21929 hardcode_minus_L_F77=yes
21930
21931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21932 # that the semantics of dynamic libraries on AmigaOS, at least up
21933 # to version 4, is to share data among multiple programs linked
21934 # with the same dynamic library. Since this doesn't match the
21935 # behavior of shared libraries on other platforms, we can't use
21936 # them.
21937 ld_shlibs_F77=no
21938 ;;
21939
21940 beos*)
21941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21942 allow_undefined_flag_F77=unsupported
21943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21944 # support --undefined. This deserves some investigation. FIXME
21945 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21946 else
21947 ld_shlibs_F77=no
21948 fi
21949 ;;
21950
21951 cygwin* | mingw* | pw32*)
21952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21953 # as there is no search path for DLLs.
21954 hardcode_libdir_flag_spec_F77='-L$libdir'
21955 allow_undefined_flag_F77=unsupported
21956 always_export_symbols_F77=no
21957 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021958 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 +000021959
21960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021961 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 +000021962 # If the export-symbols file already is a .def file (1st line
21963 # is EXPORTS), use it as is; otherwise, prepend...
21964 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21965 cp $export_symbols $output_objdir/$soname.def;
21966 else
21967 echo EXPORTS > $output_objdir/$soname.def;
21968 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021969 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021970 $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 +000021971 else
Reid Spencera773bd52006-08-04 18:18:08 +000021972 ld_shlibs_F77=no
21973 fi
21974 ;;
21975
21976 interix3*)
21977 hardcode_direct_F77=no
21978 hardcode_shlibpath_var_F77=no
21979 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21980 export_dynamic_flag_spec_F77='${wl}-E'
21981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21982 # Instead, shared libraries are loaded at an image base (0x10000000 by
21983 # default) and relocated if they conflict, which is a slow very memory
21984 # consuming and fragmenting process. To avoid this, we pick a random,
21985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21987 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'
21988 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'
21989 ;;
21990
21991 linux*)
21992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21993 tmp_addflag=
21994 case $cc_basename,$host_cpu in
21995 pgcc*) # Portland Group C compiler
21996 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'
21997 tmp_addflag=' $pic_flag'
21998 ;;
21999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22000 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'
22001 tmp_addflag=' $pic_flag -Mnomain' ;;
22002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22003 tmp_addflag=' -i_dynamic' ;;
22004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22005 tmp_addflag=' -i_dynamic -nofor_main' ;;
22006 ifc* | ifort*) # Intel Fortran compiler
22007 tmp_addflag=' -nofor_main' ;;
22008 esac
22009 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22010
22011 if test $supports_anon_versioning = yes; then
22012 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22014 $echo "local: *; };" >> $output_objdir/$libname.ver~
22015 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22016 fi
22017 else
22018 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022019 fi
22020 ;;
22021
22022 netbsd*)
22023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22024 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22025 wlarc=
22026 else
22027 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22028 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22029 fi
22030 ;;
22031
Reid Spencera773bd52006-08-04 18:18:08 +000022032 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022033 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22034 ld_shlibs_F77=no
22035 cat <<EOF 1>&2
22036
22037*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22038*** create shared libraries on Solaris systems. Therefore, libtool
22039*** is disabling shared libraries support. We urge you to upgrade GNU
22040*** binutils to release 2.9.1 or newer. Another option is to modify
22041*** your PATH or compiler configuration so that the native linker is
22042*** used, and then restart.
22043
22044EOF
22045 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22046 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22047 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22048 else
22049 ld_shlibs_F77=no
22050 fi
22051 ;;
22052
Reid Spencera773bd52006-08-04 18:18:08 +000022053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22054 case `$LD -v 2>&1` in
22055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22056 ld_shlibs_F77=no
22057 cat <<_LT_EOF 1>&2
22058
22059*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22060*** reliably create shared libraries on SCO systems. Therefore, libtool
22061*** is disabling shared libraries support. We urge you to upgrade GNU
22062*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22063*** your PATH or compiler configuration so that the native linker is
22064*** used, and then restart.
22065
22066_LT_EOF
22067 ;;
22068 *)
22069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22070 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22071 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22072 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22073 else
22074 ld_shlibs_F77=no
22075 fi
22076 ;;
22077 esac
22078 ;;
22079
John Criswell47fdd832003-07-14 16:52:07 +000022080 sunos4*)
22081 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22082 wlarc=
22083 hardcode_direct_F77=yes
22084 hardcode_shlibpath_var_F77=no
22085 ;;
22086
22087 *)
22088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22089 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22090 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22091 else
22092 ld_shlibs_F77=no
22093 fi
22094 ;;
22095 esac
22096
Reid Spencera773bd52006-08-04 18:18:08 +000022097 if test "$ld_shlibs_F77" = no; then
22098 runpath_var=
22099 hardcode_libdir_flag_spec_F77=
22100 export_dynamic_flag_spec_F77=
22101 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022102 fi
22103 else
22104 # PORTME fill in a description of your system's linker (not GNU ld)
22105 case $host_os in
22106 aix3*)
22107 allow_undefined_flag_F77=unsupported
22108 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022109 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 +000022110 # Note: this linker hardcodes the directories in LIBPATH if there
22111 # are no directories specified by -L.
22112 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022113 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022114 # Neither direct hardcoding nor static linking is supported with a
22115 # broken collect2.
22116 hardcode_direct_F77=unsupported
22117 fi
22118 ;;
22119
22120 aix4* | aix5*)
22121 if test "$host_cpu" = ia64; then
22122 # On IA64, the linker does run time linking by default, so we don't
22123 # have to do anything special.
22124 aix_use_runtimelinking=no
22125 exp_sym_flag='-Bexport'
22126 no_entry_flag=""
22127 else
22128 # If we're using GNU nm, then we don't want the "-C" option.
22129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22131 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'
22132 else
22133 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'
22134 fi
22135 aix_use_runtimelinking=no
22136
22137 # Test if we are trying to use run time linking or normal
22138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22139 # need to do runtime linking.
22140 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22141 for ld_flag in $LDFLAGS; do
22142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22143 aix_use_runtimelinking=yes
22144 break
22145 fi
22146 done
Reid Spencera773bd52006-08-04 18:18:08 +000022147 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022148 esac
22149
22150 exp_sym_flag='-bexport'
22151 no_entry_flag='-bnoentry'
22152 fi
22153
22154 # When large executables or shared objects are built, AIX ld can
22155 # have problems creating the table of contents. If linking a library
22156 # or program results in "error TOC overflow" add -mminimal-toc to
22157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22159
22160 archive_cmds_F77=''
22161 hardcode_direct_F77=yes
22162 hardcode_libdir_separator_F77=':'
22163 link_all_deplibs_F77=yes
22164
22165 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022166 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022167 # We only want to do this on AIX 4.2 and lower, the check
22168 # below for broken collect2 doesn't work under 4.3+
22169 collect2name=`${CC} -print-prog-name=collect2`
22170 if test -f "$collect2name" && \
22171 strings "$collect2name" | grep resolve_lib_name >/dev/null
22172 then
22173 # We have reworked collect2
22174 hardcode_direct_F77=yes
22175 else
22176 # We have old collect2
22177 hardcode_direct_F77=unsupported
22178 # It fails to find uninstalled libraries when the uninstalled
22179 # path is not listed in the libpath. Setting hardcode_minus_L
22180 # to unsupported forces relinking
22181 hardcode_minus_L_F77=yes
22182 hardcode_libdir_flag_spec_F77='-L$libdir'
22183 hardcode_libdir_separator_F77=
22184 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022185 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022186 esac
22187 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022188 if test "$aix_use_runtimelinking" = yes; then
22189 shared_flag="$shared_flag "'${wl}-G'
22190 fi
John Criswell47fdd832003-07-14 16:52:07 +000022191 else
22192 # not using gcc
22193 if test "$host_cpu" = ia64; then
22194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22195 # chokes on -Wl,-G. The following line is correct:
22196 shared_flag='-G'
22197 else
Reid Spencera773bd52006-08-04 18:18:08 +000022198 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022199 shared_flag='${wl}-G'
22200 else
22201 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022202 fi
John Criswell47fdd832003-07-14 16:52:07 +000022203 fi
22204 fi
22205
22206 # It seems that -bexpall does not export symbols beginning with
22207 # underscore (_), so it is better to generate a list of symbols to export.
22208 always_export_symbols_F77=yes
22209 if test "$aix_use_runtimelinking" = yes; then
22210 # Warning - without using the other runtime loading flags (-brtl),
22211 # -berok will link without error, but may produce a broken library.
22212 allow_undefined_flag_F77='-berok'
22213 # Determine the default libpath from the value encoded in an empty executable.
22214 cat >conftest.$ac_ext <<_ACEOF
22215 program main
22216
22217 end
22218_ACEOF
22219rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022220if { (ac_try="$ac_link"
22221case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224esac
22225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022228 grep -v '^ *+' conftest.er1 >conftest.err
22229 rm -f conftest.er1
22230 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022232 (exit $ac_status); } &&
22233 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22234 { (case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22237esac
22238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_try") 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247esac
22248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_try") 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022253
22254aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22255}'`
22256# Check for a 64-bit object if we didn't find anything.
22257if 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; }
22258}'`; fi
22259else
22260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022261sed 's/^/| /' conftest.$ac_ext >&5
22262
Reid Spencera773bd52006-08-04 18:18:08 +000022263
John Criswell47fdd832003-07-14 16:52:07 +000022264fi
Reid Spencera773bd52006-08-04 18:18:08 +000022265
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022266rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022267 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22269
22270 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022271 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 +000022272 else
22273 if test "$host_cpu" = ia64; then
22274 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22275 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022276 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 +000022277 else
22278 # Determine the default libpath from the value encoded in an empty executable.
22279 cat >conftest.$ac_ext <<_ACEOF
22280 program main
22281
22282 end
22283_ACEOF
22284rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022285if { (ac_try="$ac_link"
22286case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289esac
22290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022297 (exit $ac_status); } &&
22298 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302esac
22303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; } &&
22308 { ac_try='test -s conftest$ac_exeext'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312esac
22313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022318
22319aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22320}'`
22321# Check for a 64-bit object if we didn't find anything.
22322if 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; }
22323}'`; fi
22324else
22325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022326sed 's/^/| /' conftest.$ac_ext >&5
22327
Reid Spencera773bd52006-08-04 18:18:08 +000022328
John Criswell47fdd832003-07-14 16:52:07 +000022329fi
Reid Spencera773bd52006-08-04 18:18:08 +000022330
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022331rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022332 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22334
22335 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22336 # Warning - without using the other run time loading flags,
22337 # -berok will link without error, but may produce a broken library.
22338 no_undefined_flag_F77=' ${wl}-bernotok'
22339 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022340 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022341 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022342 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022343 # This is similar to how AIX traditionally builds its shared libraries.
22344 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 +000022345 fi
22346 fi
22347 ;;
22348
22349 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022350 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 +000022351 hardcode_libdir_flag_spec_F77='-L$libdir'
22352 hardcode_minus_L_F77=yes
22353 # see comment about different semantics on the GNU ld section
22354 ld_shlibs_F77=no
22355 ;;
22356
Reid Spencer2706f8c2004-09-19 23:53:36 +000022357 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022358 export_dynamic_flag_spec_F77=-rdynamic
22359 ;;
22360
22361 cygwin* | mingw* | pw32*)
22362 # When not using gcc, we currently assume that we are using
22363 # Microsoft Visual C++.
22364 # hardcode_libdir_flag_spec is actually meaningless, as there is
22365 # no search path for DLLs.
22366 hardcode_libdir_flag_spec_F77=' '
22367 allow_undefined_flag_F77=unsupported
22368 # Tell ltmain to make .lib files, not .a files.
22369 libext=lib
22370 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022371 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022372 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022373 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 +000022374 # The linker will automatically build a .lib file if we build a DLL.
22375 old_archive_From_new_cmds_F77='true'
22376 # FIXME: Should let the user specify the lib program.
22377 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022378 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022379 enable_shared_with_static_runtimes_F77=yes
22380 ;;
22381
22382 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022383 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022384 rhapsody* | darwin1.[012])
22385 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22386 ;;
22387 *) # Darwin 1.3 on
22388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22389 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22390 else
22391 case ${MACOSX_DEPLOYMENT_TARGET} in
22392 10.[012])
22393 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22394 ;;
22395 10.*)
22396 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22397 ;;
22398 esac
22399 fi
22400 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022401 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022402 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022403 hardcode_direct_F77=no
22404 hardcode_automatic_F77=yes
22405 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022406 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022407 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022408 if test "$GCC" = yes ; then
22409 output_verbose_link_cmd='echo'
22410 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22411 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022412 # 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 +000022413 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}'
22414 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 +000022415 else
Reid Spencera773bd52006-08-04 18:18:08 +000022416 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022417 xlc*)
22418 output_verbose_link_cmd='echo'
22419 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22420 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022421 # 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 +000022422 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}'
22423 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 +000022424 ;;
22425 *)
22426 ld_shlibs_F77=no
22427 ;;
22428 esac
John Criswell47fdd832003-07-14 16:52:07 +000022429 fi
22430 ;;
22431
22432 dgux*)
22433 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434 hardcode_libdir_flag_spec_F77='-L$libdir'
22435 hardcode_shlibpath_var_F77=no
22436 ;;
22437
22438 freebsd1*)
22439 ld_shlibs_F77=no
22440 ;;
22441
22442 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22443 # support. Future versions do this automatically, but an explicit c++rt0.o
22444 # does not break anything, and helps significantly (at the cost of a little
22445 # extra space).
22446 freebsd2.2*)
22447 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22448 hardcode_libdir_flag_spec_F77='-R$libdir'
22449 hardcode_direct_F77=yes
22450 hardcode_shlibpath_var_F77=no
22451 ;;
22452
22453 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22454 freebsd2*)
22455 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22456 hardcode_direct_F77=yes
22457 hardcode_minus_L_F77=yes
22458 hardcode_shlibpath_var_F77=no
22459 ;;
22460
22461 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022462 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022463 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22464 hardcode_libdir_flag_spec_F77='-R$libdir'
22465 hardcode_direct_F77=yes
22466 hardcode_shlibpath_var_F77=no
22467 ;;
22468
22469 hpux9*)
22470 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022471 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 +000022472 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022473 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 +000022474 fi
22475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22476 hardcode_libdir_separator_F77=:
22477 hardcode_direct_F77=yes
22478
22479 # hardcode_minus_L: Not really in the search PATH,
22480 # but as the default location of the library.
22481 hardcode_minus_L_F77=yes
22482 export_dynamic_flag_spec_F77='${wl}-E'
22483 ;;
22484
Reid Spencera773bd52006-08-04 18:18:08 +000022485 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022487 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22488 else
22489 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22490 fi
22491 if test "$with_gnu_ld" = no; then
22492 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22493 hardcode_libdir_separator_F77=:
22494
22495 hardcode_direct_F77=yes
22496 export_dynamic_flag_spec_F77='${wl}-E'
22497
22498 # hardcode_minus_L: Not really in the search PATH,
22499 # but as the default location of the library.
22500 hardcode_minus_L_F77=yes
22501 fi
22502 ;;
22503
22504 hpux11*)
22505 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22506 case $host_cpu in
22507 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022508 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022510 ia64*)
22511 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022513 *)
22514 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22515 ;;
22516 esac
22517 else
Reid Spencera773bd52006-08-04 18:18:08 +000022518 case $host_cpu in
22519 hppa*64*)
22520 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22521 ;;
22522 ia64*)
22523 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022524 ;;
22525 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022526 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 +000022527 ;;
22528 esac
22529 fi
22530 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022531 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22532 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022533
Reid Spencera773bd52006-08-04 18:18:08 +000022534 case $host_cpu in
22535 hppa*64*|ia64*)
22536 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22537 hardcode_direct_F77=no
22538 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022539 ;;
22540 *)
John Criswell47fdd832003-07-14 16:52:07 +000022541 hardcode_direct_F77=yes
22542 export_dynamic_flag_spec_F77='${wl}-E'
22543
22544 # hardcode_minus_L: Not really in the search PATH,
22545 # but as the default location of the library.
22546 hardcode_minus_L_F77=yes
22547 ;;
22548 esac
22549 fi
22550 ;;
22551
22552 irix5* | irix6* | nonstopux*)
22553 if test "$GCC" = yes; then
22554 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'
22555 else
22556 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'
22557 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22558 fi
22559 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22560 hardcode_libdir_separator_F77=:
22561 link_all_deplibs_F77=yes
22562 ;;
22563
22564 netbsd*)
22565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22567 else
22568 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22569 fi
22570 hardcode_libdir_flag_spec_F77='-R$libdir'
22571 hardcode_direct_F77=yes
22572 hardcode_shlibpath_var_F77=no
22573 ;;
22574
22575 newsos6)
22576 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22577 hardcode_direct_F77=yes
22578 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22579 hardcode_libdir_separator_F77=:
22580 hardcode_shlibpath_var_F77=no
22581 ;;
22582
22583 openbsd*)
22584 hardcode_direct_F77=yes
22585 hardcode_shlibpath_var_F77=no
22586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22587 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022588 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 +000022589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22590 export_dynamic_flag_spec_F77='${wl}-E'
22591 else
22592 case $host_os in
22593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22595 hardcode_libdir_flag_spec_F77='-R$libdir'
22596 ;;
22597 *)
22598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22600 ;;
22601 esac
22602 fi
22603 ;;
22604
22605 os2*)
22606 hardcode_libdir_flag_spec_F77='-L$libdir'
22607 hardcode_minus_L_F77=yes
22608 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022609 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 +000022610 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22611 ;;
22612
22613 osf3*)
22614 if test "$GCC" = yes; then
22615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22616 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'
22617 else
22618 allow_undefined_flag_F77=' -expect_unresolved \*'
22619 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'
22620 fi
22621 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22622 hardcode_libdir_separator_F77=:
22623 ;;
22624
22625 osf4* | osf5*) # as osf3* with the addition of -msym flag
22626 if test "$GCC" = yes; then
22627 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22628 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'
22629 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22630 else
22631 allow_undefined_flag_F77=' -expect_unresolved \*'
22632 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 +000022633 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 +000022634 $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 +000022635
John Criswell47fdd832003-07-14 16:52:07 +000022636 # Both c and cxx compiler support -rpath directly
22637 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22638 fi
22639 hardcode_libdir_separator_F77=:
22640 ;;
22641
John Criswell47fdd832003-07-14 16:52:07 +000022642 solaris*)
22643 no_undefined_flag_F77=' -z text'
22644 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022645 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022646 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022647 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22648 $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 +000022649 else
Reid Spencera773bd52006-08-04 18:18:08 +000022650 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022651 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022652 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653 $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 +000022654 fi
22655 hardcode_libdir_flag_spec_F77='-R$libdir'
22656 hardcode_shlibpath_var_F77=no
22657 case $host_os in
22658 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022659 *)
22660 # The compiler driver will combine linker options so we
22661 # cannot just pass the convience library names through
22662 # without $wl, iff we do not link with $LD.
22663 # Luckily, gcc supports the same syntax we need for Sun Studio.
22664 # Supported since Solaris 2.6 (maybe 2.5.1?)
22665 case $wlarc in
22666 '')
22667 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22668 *)
22669 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' ;;
22670 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022671 esac
22672 link_all_deplibs_F77=yes
22673 ;;
22674
22675 sunos4*)
22676 if test "x$host_vendor" = xsequent; then
22677 # Use $CC to link under sequent, because it throws in some extra .o
22678 # files that make .init and .fini sections work.
22679 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22680 else
22681 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22682 fi
22683 hardcode_libdir_flag_spec_F77='-L$libdir'
22684 hardcode_direct_F77=yes
22685 hardcode_minus_L_F77=yes
22686 hardcode_shlibpath_var_F77=no
22687 ;;
22688
22689 sysv4)
22690 case $host_vendor in
22691 sni)
22692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22693 hardcode_direct_F77=yes # is this really true???
22694 ;;
22695 siemens)
22696 ## LD is ld it makes a PLAMLIB
22697 ## CC just makes a GrossModule.
22698 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22699 reload_cmds_F77='$CC -r -o $output$reload_objs'
22700 hardcode_direct_F77=no
22701 ;;
22702 motorola)
22703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22704 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22705 ;;
22706 esac
22707 runpath_var='LD_RUN_PATH'
22708 hardcode_shlibpath_var_F77=no
22709 ;;
22710
22711 sysv4.3*)
22712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713 hardcode_shlibpath_var_F77=no
22714 export_dynamic_flag_spec_F77='-Bexport'
22715 ;;
22716
22717 sysv4*MP*)
22718 if test -d /usr/nec; then
22719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720 hardcode_shlibpath_var_F77=no
22721 runpath_var=LD_RUN_PATH
22722 hardcode_runpath_var=yes
22723 ld_shlibs_F77=yes
22724 fi
22725 ;;
22726
Reid Spencera773bd52006-08-04 18:18:08 +000022727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22728 no_undefined_flag_F77='${wl}-z,text'
22729 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022730 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022731 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022732
John Criswell47fdd832003-07-14 16:52:07 +000022733 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022734 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22735 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 +000022736 else
Reid Spencera773bd52006-08-04 18:18:08 +000022737 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22738 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 +000022739 fi
John Criswell47fdd832003-07-14 16:52:07 +000022740 ;;
22741
Reid Spencera773bd52006-08-04 18:18:08 +000022742 sysv5* | sco3.2v5* | sco5v6*)
22743 # Note: We can NOT use -z defs as we might desire, because we do not
22744 # link with -lc, and that would cause any symbols used from libc to
22745 # always be unresolved, which means just about no library would
22746 # ever link correctly. If we're not using GNU ld we use -z text
22747 # though, which does catch some bad symbols but isn't as heavy-handed
22748 # as -z defs.
22749 no_undefined_flag_F77='${wl}-z,text'
22750 allow_undefined_flag_F77='${wl}-z,nodefs'
22751 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022752 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022753 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22754 hardcode_libdir_separator_F77=':'
22755 link_all_deplibs_F77=yes
22756 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022757 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022758
22759 if test "$GCC" = yes; then
22760 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22761 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22762 else
22763 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22764 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22765 fi
John Criswell47fdd832003-07-14 16:52:07 +000022766 ;;
22767
22768 uts4*)
22769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22770 hardcode_libdir_flag_spec_F77='-L$libdir'
22771 hardcode_shlibpath_var_F77=no
22772 ;;
22773
22774 *)
22775 ld_shlibs_F77=no
22776 ;;
22777 esac
22778 fi
22779
Reid Spencera773bd52006-08-04 18:18:08 +000022780{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22781echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022782test "$ld_shlibs_F77" = no && can_build_shared=no
22783
John Criswell47fdd832003-07-14 16:52:07 +000022784#
22785# Do we need to explicitly link libc?
22786#
22787case "x$archive_cmds_need_lc_F77" in
22788x|xyes)
22789 # Assume -lc should be added
22790 archive_cmds_need_lc_F77=yes
22791
22792 if test "$enable_shared" = yes && test "$GCC" = yes; then
22793 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022794 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022795 # FIXME: we may have to deal with multi-command sequences.
22796 ;;
22797 '$CC '*)
22798 # Test whether the compiler implicitly links with -lc since on some
22799 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22800 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022801 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22802echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022803 $rm conftest*
22804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22805
22806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807 (eval $ac_compile) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } 2>conftest.err; then
22811 soname=conftest
22812 lib=conftest
22813 libobjs=conftest.$ac_objext
22814 deplibs=
22815 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022816 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022817 compiler_flags=-v
22818 linker_flags=-v
22819 verstring=
22820 output_objdir=.
22821 libname=conftest
22822 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22823 allow_undefined_flag_F77=
22824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22825 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22826 ac_status=$?
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); }
22829 then
22830 archive_cmds_need_lc_F77=no
22831 else
22832 archive_cmds_need_lc_F77=yes
22833 fi
22834 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22835 else
22836 cat conftest.err 1>&5
22837 fi
22838 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022839 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22840echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022841 ;;
22842 esac
22843 fi
22844 ;;
22845esac
22846
Reid Spencera773bd52006-08-04 18:18:08 +000022847{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22848echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022849library_names_spec=
22850libname_spec='lib$name'
22851soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022852shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022853postinstall_cmds=
22854postuninstall_cmds=
22855finish_cmds=
22856finish_eval=
22857shlibpath_var=
22858shlibpath_overrides_runpath=unknown
22859version_type=none
22860dynamic_linker="$host_os ld.so"
22861sys_lib_dlsearch_path_spec="/lib /usr/lib"
22862if test "$GCC" = yes; then
22863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22865 # if the path contains ";" then we assume it to be the separator
22866 # otherwise default to the standard path separator (i.e. ":") - it is
22867 # assumed that no part of a normal pathname contains ";" but that should
22868 # okay in the real world where ";" in dirpaths is itself problematic.
22869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22870 else
22871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22872 fi
22873else
22874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22875fi
22876need_lib_prefix=unknown
22877hardcode_into_libs=no
22878
22879# when you set need_version to no, make sure it does not cause -set_version
22880# flags to be left without arguments
22881need_version=unknown
22882
22883case $host_os in
22884aix3*)
22885 version_type=linux
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22887 shlibpath_var=LIBPATH
22888
22889 # AIX 3 has no versioning support, so we append a major version to the name.
22890 soname_spec='${libname}${release}${shared_ext}$major'
22891 ;;
22892
22893aix4* | aix5*)
22894 version_type=linux
22895 need_lib_prefix=no
22896 need_version=no
22897 hardcode_into_libs=yes
22898 if test "$host_cpu" = ia64; then
22899 # AIX 5 supports IA64
22900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22901 shlibpath_var=LD_LIBRARY_PATH
22902 else
22903 # With GCC up to 2.95.x, collect2 would create an import file
22904 # for dependence libraries. The import file would start with
22905 # the line `#! .'. This would cause the generated library to
22906 # depend on `.', always an invalid library. This was fixed in
22907 # development snapshots of GCC prior to 3.0.
22908 case $host_os in
22909 aix4 | aix4.[01] | aix4.[01].*)
22910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22911 echo ' yes '
22912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22913 :
22914 else
22915 can_build_shared=no
22916 fi
22917 ;;
22918 esac
22919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22920 # soname into executable. Probably we can add versioning support to
22921 # collect2, so additional links can be useful in future.
22922 if test "$aix_use_runtimelinking" = yes; then
22923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22924 # instead of lib<name>.a to let people know that these are not
22925 # typical AIX shared libraries.
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927 else
22928 # We preserve .a as extension for shared libraries through AIX4.2
22929 # and later when we are not doing run time linking.
22930 library_names_spec='${libname}${release}.a $libname.a'
22931 soname_spec='${libname}${release}${shared_ext}$major'
22932 fi
22933 shlibpath_var=LIBPATH
22934 fi
22935 ;;
22936
22937amigaos*)
22938 library_names_spec='$libname.ixlibrary $libname.a'
22939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022940 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 +000022941 ;;
22942
22943beos*)
22944 library_names_spec='${libname}${shared_ext}'
22945 dynamic_linker="$host_os ld.so"
22946 shlibpath_var=LIBRARY_PATH
22947 ;;
22948
Reid Spencer2706f8c2004-09-19 23:53:36 +000022949bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022950 version_type=linux
22951 need_version=no
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22958 # the default ld.so.conf also contains /usr/contrib/lib and
22959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22960 # libtool to hard-code these into programs
22961 ;;
22962
22963cygwin* | mingw* | pw32*)
22964 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022965 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022966 need_version=no
22967 need_lib_prefix=no
22968
22969 case $GCC,$host_os in
22970 yes,cygwin* | yes,mingw* | yes,pw32*)
22971 library_names_spec='$libname.dll.a'
22972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022973 postinstall_cmds='base_file=`basename \${file}`~
22974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22975 dldir=$destdir/`dirname \$dlpath`~
22976 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022977 $install_prog $dir/$dlname \$dldir/$dlname~
22978 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22980 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022981 $rm \$dlpath'
22982 shlibpath_overrides_runpath=yes
22983
22984 case $host_os in
22985 cygwin*)
22986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22987 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 +000022988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022989 ;;
22990 mingw*)
22991 # MinGW DLLs use traditional 'lib' prefix
22992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22995 # It is most probably a Windows format PATH printed by
22996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22997 # path with ; separators, and with drive letters. We can handle the
22998 # drive letters (cygwin fileutils understands them), so leave them,
22999 # especially as we might pass files found there to a mingw objdump,
23000 # which wouldn't understand a cygwinified path. Ahh.
23001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23002 else
23003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23004 fi
23005 ;;
23006 pw32*)
23007 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023008 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 +000023009 ;;
23010 esac
23011 ;;
23012
23013 *)
23014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23015 ;;
23016 esac
23017 dynamic_linker='Win32 ld.exe'
23018 # FIXME: first we should search . and the directory the executable is in
23019 shlibpath_var=PATH
23020 ;;
23021
23022darwin* | rhapsody*)
23023 dynamic_linker="$host_os dyld"
23024 version_type=darwin
23025 need_lib_prefix=no
23026 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023028 soname_spec='${libname}${release}${major}$shared_ext'
23029 shlibpath_overrides_runpath=yes
23030 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023031 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023033 if test "$GCC" = yes; then
23034 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"`
23035 else
23036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023037 fi
23038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23039 ;;
23040
23041dgux*)
23042 version_type=linux
23043 need_lib_prefix=no
23044 need_version=no
23045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23046 soname_spec='${libname}${release}${shared_ext}$major'
23047 shlibpath_var=LD_LIBRARY_PATH
23048 ;;
23049
23050freebsd1*)
23051 dynamic_linker=no
23052 ;;
23053
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054kfreebsd*-gnu)
23055 version_type=linux
23056 need_lib_prefix=no
23057 need_version=no
23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 shlibpath_overrides_runpath=no
23062 hardcode_into_libs=yes
23063 dynamic_linker='GNU ld.so'
23064 ;;
23065
Reid Spencera773bd52006-08-04 18:18:08 +000023066freebsd* | dragonfly*)
23067 # DragonFly does not have aout. When/if they implement a new
23068 # versioning mechanism, adjust this.
23069 if test -x /usr/bin/objformat; then
23070 objformat=`/usr/bin/objformat`
23071 else
23072 case $host_os in
23073 freebsd[123]*) objformat=aout ;;
23074 *) objformat=elf ;;
23075 esac
23076 fi
John Criswell47fdd832003-07-14 16:52:07 +000023077 version_type=freebsd-$objformat
23078 case $version_type in
23079 freebsd-elf*)
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23081 need_version=no
23082 need_lib_prefix=no
23083 ;;
23084 freebsd-*)
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23086 need_version=yes
23087 ;;
23088 esac
23089 shlibpath_var=LD_LIBRARY_PATH
23090 case $host_os in
23091 freebsd2*)
23092 shlibpath_overrides_runpath=yes
23093 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023094 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023095 shlibpath_overrides_runpath=yes
23096 hardcode_into_libs=yes
23097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023100 shlibpath_overrides_runpath=no
23101 hardcode_into_libs=yes
23102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023103 freebsd*) # from 4.6 on
23104 shlibpath_overrides_runpath=yes
23105 hardcode_into_libs=yes
23106 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023107 esac
23108 ;;
23109
23110gnu*)
23111 version_type=linux
23112 need_lib_prefix=no
23113 need_version=no
23114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23115 soname_spec='${libname}${release}${shared_ext}$major'
23116 shlibpath_var=LD_LIBRARY_PATH
23117 hardcode_into_libs=yes
23118 ;;
23119
23120hpux9* | hpux10* | hpux11*)
23121 # Give a soname corresponding to the major version so that dld.sl refuses to
23122 # link against other versions.
23123 version_type=sunos
23124 need_lib_prefix=no
23125 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023126 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023127 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023128 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023129 hardcode_into_libs=yes
23130 dynamic_linker="$host_os dld.so"
23131 shlibpath_var=LD_LIBRARY_PATH
23132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 if test "X$HPUX_IA64_MODE" = X32; then
23136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23137 else
23138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23139 fi
23140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23141 ;;
23142 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023143 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023144 hardcode_into_libs=yes
23145 dynamic_linker="$host_os dld.sl"
23146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23152 ;;
23153 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023154 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023155 dynamic_linker="$host_os dld.sl"
23156 shlibpath_var=SHLIB_PATH
23157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23159 soname_spec='${libname}${release}${shared_ext}$major'
23160 ;;
23161 esac
23162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23163 postinstall_cmds='chmod 555 $lib'
23164 ;;
23165
Reid Spencera773bd52006-08-04 18:18:08 +000023166interix3*)
23167 version_type=linux
23168 need_lib_prefix=no
23169 need_version=no
23170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23171 soname_spec='${libname}${release}${shared_ext}$major'
23172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23173 shlibpath_var=LD_LIBRARY_PATH
23174 shlibpath_overrides_runpath=no
23175 hardcode_into_libs=yes
23176 ;;
23177
John Criswell47fdd832003-07-14 16:52:07 +000023178irix5* | irix6* | nonstopux*)
23179 case $host_os in
23180 nonstopux*) version_type=nonstopux ;;
23181 *)
23182 if test "$lt_cv_prog_gnu_ld" = yes; then
23183 version_type=linux
23184 else
23185 version_type=irix
23186 fi ;;
23187 esac
23188 need_lib_prefix=no
23189 need_version=no
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23192 case $host_os in
23193 irix5* | nonstopux*)
23194 libsuff= shlibsuff=
23195 ;;
23196 *)
23197 case $LD in # libtool.m4 will add one of these switches to LD
23198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23199 libsuff= shlibsuff= libmagic=32-bit;;
23200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23201 libsuff=32 shlibsuff=N32 libmagic=N32;;
23202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23204 *) libsuff= shlibsuff= libmagic=never-match;;
23205 esac
23206 ;;
23207 esac
23208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23209 shlibpath_overrides_runpath=no
23210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23212 hardcode_into_libs=yes
23213 ;;
23214
23215# No shared lib support for Linux oldld, aout, or coff.
23216linux*oldld* | linux*aout* | linux*coff*)
23217 dynamic_linker=no
23218 ;;
23219
23220# This must be Linux ELF.
23221linux*)
23222 version_type=linux
23223 need_lib_prefix=no
23224 need_version=no
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23228 shlibpath_var=LD_LIBRARY_PATH
23229 shlibpath_overrides_runpath=no
23230 # This implies no fast_install, which is unacceptable.
23231 # Some rework will be needed to allow for fast_install
23232 # before this can be enabled.
23233 hardcode_into_libs=yes
23234
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235 # Append ld.so.conf contents to the search path
23236 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023237 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 +000023238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23239 fi
23240
John Criswell47fdd832003-07-14 16:52:07 +000023241 # We used to test for /lib/ld.so.1 and disable shared libraries on
23242 # powerpc, because MkLinux only supported shared libraries with the
23243 # GNU dynamic linker. Since this was broken with cross compilers,
23244 # most powerpc-linux boxes support dynamic linking these days and
23245 # people can always --disable-shared, the test was removed, and we
23246 # assume the GNU/Linux dynamic linker is in use.
23247 dynamic_linker='GNU/Linux ld.so'
23248 ;;
23249
Reid Spencer2706f8c2004-09-19 23:53:36 +000023250knetbsd*-gnu)
23251 version_type=linux
23252 need_lib_prefix=no
23253 need_version=no
23254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23255 soname_spec='${libname}${release}${shared_ext}$major'
23256 shlibpath_var=LD_LIBRARY_PATH
23257 shlibpath_overrides_runpath=no
23258 hardcode_into_libs=yes
23259 dynamic_linker='GNU ld.so'
23260 ;;
23261
John Criswell47fdd832003-07-14 16:52:07 +000023262netbsd*)
23263 version_type=sunos
23264 need_lib_prefix=no
23265 need_version=no
23266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23269 dynamic_linker='NetBSD (a.out) ld.so'
23270 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023272 soname_spec='${libname}${release}${shared_ext}$major'
23273 dynamic_linker='NetBSD ld.elf_so'
23274 fi
23275 shlibpath_var=LD_LIBRARY_PATH
23276 shlibpath_overrides_runpath=yes
23277 hardcode_into_libs=yes
23278 ;;
23279
23280newsos6)
23281 version_type=linux
23282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283 shlibpath_var=LD_LIBRARY_PATH
23284 shlibpath_overrides_runpath=yes
23285 ;;
23286
Reid Spencer2706f8c2004-09-19 23:53:36 +000023287nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023288 version_type=linux
23289 need_lib_prefix=no
23290 need_version=no
23291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292 soname_spec='${libname}${release}${shared_ext}$major'
23293 shlibpath_var=LD_LIBRARY_PATH
23294 shlibpath_overrides_runpath=yes
23295 ;;
23296
23297openbsd*)
23298 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023299 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023300 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23302 case $host_os in
23303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23304 *) need_version=no ;;
23305 esac
John Criswell47fdd832003-07-14 16:52:07 +000023306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23308 shlibpath_var=LD_LIBRARY_PATH
23309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23310 case $host_os in
23311 openbsd2.[89] | openbsd2.[89].*)
23312 shlibpath_overrides_runpath=no
23313 ;;
23314 *)
23315 shlibpath_overrides_runpath=yes
23316 ;;
23317 esac
23318 else
23319 shlibpath_overrides_runpath=yes
23320 fi
23321 ;;
23322
23323os2*)
23324 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023325 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023326 need_lib_prefix=no
23327 library_names_spec='$libname${shared_ext} $libname.a'
23328 dynamic_linker='OS/2 ld.exe'
23329 shlibpath_var=LIBPATH
23330 ;;
23331
23332osf3* | osf4* | osf5*)
23333 version_type=osf
23334 need_lib_prefix=no
23335 need_version=no
23336 soname_spec='${libname}${release}${shared_ext}$major'
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23338 shlibpath_var=LD_LIBRARY_PATH
23339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23341 ;;
23342
John Criswell47fdd832003-07-14 16:52:07 +000023343solaris*)
23344 version_type=linux
23345 need_lib_prefix=no
23346 need_version=no
23347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23348 soname_spec='${libname}${release}${shared_ext}$major'
23349 shlibpath_var=LD_LIBRARY_PATH
23350 shlibpath_overrides_runpath=yes
23351 hardcode_into_libs=yes
23352 # ldd complains unless libraries are executable
23353 postinstall_cmds='chmod +x $lib'
23354 ;;
23355
23356sunos4*)
23357 version_type=sunos
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23360 shlibpath_var=LD_LIBRARY_PATH
23361 shlibpath_overrides_runpath=yes
23362 if test "$with_gnu_ld" = yes; then
23363 need_lib_prefix=no
23364 fi
23365 need_version=yes
23366 ;;
23367
Reid Spencera773bd52006-08-04 18:18:08 +000023368sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023369 version_type=linux
23370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 shlibpath_var=LD_LIBRARY_PATH
23373 case $host_vendor in
23374 sni)
23375 shlibpath_overrides_runpath=no
23376 need_lib_prefix=no
23377 export_dynamic_flag_spec='${wl}-Blargedynsym'
23378 runpath_var=LD_RUN_PATH
23379 ;;
23380 siemens)
23381 need_lib_prefix=no
23382 ;;
23383 motorola)
23384 need_lib_prefix=no
23385 need_version=no
23386 shlibpath_overrides_runpath=no
23387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23388 ;;
23389 esac
23390 ;;
23391
23392sysv4*MP*)
23393 if test -d /usr/nec ;then
23394 version_type=linux
23395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23396 soname_spec='$libname${shared_ext}.$major'
23397 shlibpath_var=LD_LIBRARY_PATH
23398 fi
23399 ;;
23400
Reid Spencera773bd52006-08-04 18:18:08 +000023401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23402 version_type=freebsd-elf
23403 need_lib_prefix=no
23404 need_version=no
23405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23406 soname_spec='${libname}${release}${shared_ext}$major'
23407 shlibpath_var=LD_LIBRARY_PATH
23408 hardcode_into_libs=yes
23409 if test "$with_gnu_ld" = yes; then
23410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23411 shlibpath_overrides_runpath=no
23412 else
23413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23414 shlibpath_overrides_runpath=yes
23415 case $host_os in
23416 sco3.2v5*)
23417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23418 ;;
23419 esac
23420 fi
23421 sys_lib_dlsearch_path_spec='/usr/lib'
23422 ;;
23423
John Criswell47fdd832003-07-14 16:52:07 +000023424uts4*)
23425 version_type=linux
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 shlibpath_var=LD_LIBRARY_PATH
23429 ;;
23430
23431*)
23432 dynamic_linker=no
23433 ;;
23434esac
Reid Spencera773bd52006-08-04 18:18:08 +000023435{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23436echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023437test "$dynamic_linker" = no && can_build_shared=no
23438
Reid Spencera773bd52006-08-04 18:18:08 +000023439variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23440if test "$GCC" = yes; then
23441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23442fi
23443
23444{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23445echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023446hardcode_action_F77=
23447if test -n "$hardcode_libdir_flag_spec_F77" || \
23448 test -n "$runpath_var_F77" || \
23449 test "X$hardcode_automatic_F77" = "Xyes" ; then
23450
23451 # We can hardcode non-existant directories.
23452 if test "$hardcode_direct_F77" != no &&
23453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23454 # have to relink, otherwise we might link with an installed library
23455 # when we should be linking with a yet-to-be-installed one
23456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23457 test "$hardcode_minus_L_F77" != no; then
23458 # Linking always hardcodes the temporary library directory.
23459 hardcode_action_F77=relink
23460 else
23461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23462 hardcode_action_F77=immediate
23463 fi
23464else
23465 # We cannot hardcode anything, or else we can only hardcode existing
23466 # directories.
23467 hardcode_action_F77=unsupported
23468fi
Reid Spencera773bd52006-08-04 18:18:08 +000023469{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23470echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023471
23472if test "$hardcode_action_F77" = relink; then
23473 # Fast installation is not supported
23474 enable_fast_install=no
23475elif test "$shlibpath_overrides_runpath" = yes ||
23476 test "$enable_shared" = no; then
23477 # Fast installation is not necessary
23478 enable_fast_install=needless
23479fi
23480
John Criswell47fdd832003-07-14 16:52:07 +000023481
23482# The else clause should only fire when bootstrapping the
23483# libtool distribution, otherwise you forgot to ship ltmain.sh
23484# with your package, and you will get complaints that there are
23485# no rules to generate ltmain.sh.
23486if test -f "$ltmain"; then
23487 # See if we are running on zsh, and set the options which allow our commands through
23488 # without removal of \ escapes.
23489 if test -n "${ZSH_VERSION+set}" ; then
23490 setopt NO_GLOB_SUBST
23491 fi
23492 # Now quote all the things that may contain metacharacters while being
23493 # careful not to overquote the AC_SUBSTed values. We take copies of the
23494 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023495 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 +000023496 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23499 deplibs_check_method reload_flag reload_cmds need_locks \
23500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23501 lt_cv_sys_global_symbol_to_c_name_address \
23502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23503 old_postinstall_cmds old_postuninstall_cmds \
23504 compiler_F77 \
23505 CC_F77 \
23506 LD_F77 \
23507 lt_prog_compiler_wl_F77 \
23508 lt_prog_compiler_pic_F77 \
23509 lt_prog_compiler_static_F77 \
23510 lt_prog_compiler_no_builtin_flag_F77 \
23511 export_dynamic_flag_spec_F77 \
23512 thread_safe_flag_spec_F77 \
23513 whole_archive_flag_spec_F77 \
23514 enable_shared_with_static_runtimes_F77 \
23515 old_archive_cmds_F77 \
23516 old_archive_from_new_cmds_F77 \
23517 predep_objects_F77 \
23518 postdep_objects_F77 \
23519 predeps_F77 \
23520 postdeps_F77 \
23521 compiler_lib_search_path_F77 \
23522 archive_cmds_F77 \
23523 archive_expsym_cmds_F77 \
23524 postinstall_cmds_F77 \
23525 postuninstall_cmds_F77 \
23526 old_archive_from_expsyms_cmds_F77 \
23527 allow_undefined_flag_F77 \
23528 no_undefined_flag_F77 \
23529 export_symbols_cmds_F77 \
23530 hardcode_libdir_flag_spec_F77 \
23531 hardcode_libdir_flag_spec_ld_F77 \
23532 hardcode_libdir_separator_F77 \
23533 hardcode_automatic_F77 \
23534 module_cmds_F77 \
23535 module_expsym_cmds_F77 \
23536 lt_cv_prog_compiler_c_o_F77 \
23537 exclude_expsyms_F77 \
23538 include_expsyms_F77; do
23539
23540 case $var in
23541 old_archive_cmds_F77 | \
23542 old_archive_from_new_cmds_F77 | \
23543 archive_cmds_F77 | \
23544 archive_expsym_cmds_F77 | \
23545 module_cmds_F77 | \
23546 module_expsym_cmds_F77 | \
23547 old_archive_from_expsyms_cmds_F77 | \
23548 export_symbols_cmds_F77 | \
23549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23550 postinstall_cmds | postuninstall_cmds | \
23551 old_postinstall_cmds | old_postuninstall_cmds | \
23552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23553 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023554 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 +000023555 ;;
23556 *)
23557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23558 ;;
23559 esac
23560 done
23561
23562 case $lt_echo in
23563 *'\$0 --fallback-echo"')
23564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23565 ;;
23566 esac
23567
23568cfgfile="$ofile"
23569
23570 cat <<__EOF__ >> "$cfgfile"
23571# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23572
23573# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23574
23575# Shell to use when invoking shell scripts.
23576SHELL=$lt_SHELL
23577
23578# Whether or not to build shared libraries.
23579build_libtool_libs=$enable_shared
23580
23581# Whether or not to build static libraries.
23582build_old_libs=$enable_static
23583
23584# Whether or not to add -lc for building shared libraries.
23585build_libtool_need_lc=$archive_cmds_need_lc_F77
23586
23587# Whether or not to disallow shared libs when runtime libs are static
23588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23589
23590# Whether or not to optimize for fast installation.
23591fast_install=$enable_fast_install
23592
23593# The host system.
23594host_alias=$host_alias
23595host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023596host_os=$host_os
23597
23598# The build system.
23599build_alias=$build_alias
23600build=$build
23601build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023602
23603# An echo program that does not interpret backslashes.
23604echo=$lt_echo
23605
23606# The archiver.
23607AR=$lt_AR
23608AR_FLAGS=$lt_AR_FLAGS
23609
23610# A C compiler.
23611LTCC=$lt_LTCC
23612
Reid Spencera773bd52006-08-04 18:18:08 +000023613# LTCC compiler flags.
23614LTCFLAGS=$lt_LTCFLAGS
23615
John Criswell47fdd832003-07-14 16:52:07 +000023616# A language-specific compiler.
23617CC=$lt_compiler_F77
23618
23619# Is the compiler the GNU C compiler?
23620with_gcc=$GCC_F77
23621
23622# An ERE matcher.
23623EGREP=$lt_EGREP
23624
23625# The linker used to build libraries.
23626LD=$lt_LD_F77
23627
23628# Whether we need hard or soft links.
23629LN_S=$lt_LN_S
23630
23631# A BSD-compatible nm program.
23632NM=$lt_NM
23633
23634# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023635STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023636
23637# Used to examine libraries when file_magic_cmd begins "file"
23638MAGIC_CMD=$MAGIC_CMD
23639
23640# Used on cygwin: DLL creation program.
23641DLLTOOL="$DLLTOOL"
23642
23643# Used on cygwin: object dumper.
23644OBJDUMP="$OBJDUMP"
23645
23646# Used on cygwin: assembler.
23647AS="$AS"
23648
23649# The name of the directory that contains temporary libtool files.
23650objdir=$objdir
23651
23652# How to create reloadable object files.
23653reload_flag=$lt_reload_flag
23654reload_cmds=$lt_reload_cmds
23655
23656# How to pass a linker flag through the compiler.
23657wl=$lt_lt_prog_compiler_wl_F77
23658
23659# Object file suffix (normally "o").
23660objext="$ac_objext"
23661
23662# Old archive suffix (normally "a").
23663libext="$libext"
23664
23665# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023666shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023667
23668# Executable file suffix (normally "").
23669exeext="$exeext"
23670
23671# Additional compiler flags for building library objects.
23672pic_flag=$lt_lt_prog_compiler_pic_F77
23673pic_mode=$pic_mode
23674
23675# What is the maximum length of a command?
23676max_cmd_len=$lt_cv_sys_max_cmd_len
23677
23678# Does compiler simultaneously support -c and -o options?
23679compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23680
Reid Spencera773bd52006-08-04 18:18:08 +000023681# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023682need_locks=$lt_need_locks
23683
23684# Do we need the lib prefix for modules?
23685need_lib_prefix=$need_lib_prefix
23686
23687# Do we need a version for libraries?
23688need_version=$need_version
23689
23690# Whether dlopen is supported.
23691dlopen_support=$enable_dlopen
23692
23693# Whether dlopen of programs is supported.
23694dlopen_self=$enable_dlopen_self
23695
23696# Whether dlopen of statically linked programs is supported.
23697dlopen_self_static=$enable_dlopen_self_static
23698
23699# Compiler flag to prevent dynamic linking.
23700link_static_flag=$lt_lt_prog_compiler_static_F77
23701
23702# Compiler flag to turn off builtin functions.
23703no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23704
23705# Compiler flag to allow reflexive dlopens.
23706export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23707
23708# Compiler flag to generate shared objects directly from archives.
23709whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23710
23711# Compiler flag to generate thread-safe objects.
23712thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23713
23714# Library versioning type.
23715version_type=$version_type
23716
23717# Format of library name prefix.
23718libname_spec=$lt_libname_spec
23719
23720# List of archive names. First name is the real one, the rest are links.
23721# The last name is the one that the linker finds with -lNAME.
23722library_names_spec=$lt_library_names_spec
23723
23724# The coded name of the library, if different from the real name.
23725soname_spec=$lt_soname_spec
23726
23727# Commands used to build and install an old-style archive.
23728RANLIB=$lt_RANLIB
23729old_archive_cmds=$lt_old_archive_cmds_F77
23730old_postinstall_cmds=$lt_old_postinstall_cmds
23731old_postuninstall_cmds=$lt_old_postuninstall_cmds
23732
23733# Create an old-style archive from a shared archive.
23734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23735
23736# Create a temporary old-style archive to link instead of a shared archive.
23737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23738
23739# Commands used to build and install a shared archive.
23740archive_cmds=$lt_archive_cmds_F77
23741archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23742postinstall_cmds=$lt_postinstall_cmds
23743postuninstall_cmds=$lt_postuninstall_cmds
23744
23745# Commands used to build a loadable module (assumed same as above if empty)
23746module_cmds=$lt_module_cmds_F77
23747module_expsym_cmds=$lt_module_expsym_cmds_F77
23748
23749# Commands to strip libraries.
23750old_striplib=$lt_old_striplib
23751striplib=$lt_striplib
23752
23753# Dependencies to place before the objects being linked to create a
23754# shared library.
23755predep_objects=$lt_predep_objects_F77
23756
23757# Dependencies to place after the objects being linked to create a
23758# shared library.
23759postdep_objects=$lt_postdep_objects_F77
23760
23761# Dependencies to place before the objects being linked to create a
23762# shared library.
23763predeps=$lt_predeps_F77
23764
23765# Dependencies to place after the objects being linked to create a
23766# shared library.
23767postdeps=$lt_postdeps_F77
23768
23769# The library search path used internally by the compiler when linking
23770# a shared library.
23771compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23772
23773# Method to check whether dependent libraries are shared objects.
23774deplibs_check_method=$lt_deplibs_check_method
23775
23776# Command to use when deplibs_check_method == file_magic.
23777file_magic_cmd=$lt_file_magic_cmd
23778
23779# Flag that allows shared libraries with undefined symbols to be built.
23780allow_undefined_flag=$lt_allow_undefined_flag_F77
23781
23782# Flag that forces no undefined symbols.
23783no_undefined_flag=$lt_no_undefined_flag_F77
23784
23785# Commands used to finish a libtool library installation in a directory.
23786finish_cmds=$lt_finish_cmds
23787
23788# Same as above, but a single script fragment to be evaled but not shown.
23789finish_eval=$lt_finish_eval
23790
23791# Take the output of nm and produce a listing of raw symbols and C names.
23792global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23793
23794# Transform the output of nm in a proper C declaration
23795global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23796
23797# Transform the output of nm in a C name address pair
23798global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23799
23800# This is the shared library runtime path variable.
23801runpath_var=$runpath_var
23802
23803# This is the shared library path variable.
23804shlibpath_var=$shlibpath_var
23805
23806# Is shlibpath searched before the hard-coded library search path?
23807shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23808
23809# How to hardcode a shared library path into an executable.
23810hardcode_action=$hardcode_action_F77
23811
23812# Whether we should hardcode library paths into libraries.
23813hardcode_into_libs=$hardcode_into_libs
23814
23815# Flag to hardcode \$libdir into a binary during linking.
23816# This must work even if \$libdir does not exist.
23817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23818
23819# If ld is used when linking, flag to hardcode \$libdir into
23820# a binary during linking. This must work even if \$libdir does
23821# not exist.
23822hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23823
23824# Whether we need a single -rpath flag with a separated argument.
23825hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23826
23827# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23828# resulting binary.
23829hardcode_direct=$hardcode_direct_F77
23830
23831# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23832# resulting binary.
23833hardcode_minus_L=$hardcode_minus_L_F77
23834
23835# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23836# the resulting binary.
23837hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23838
23839# Set to yes if building a shared library automatically hardcodes DIR into the library
23840# and all subsequent libraries and executables linked against it.
23841hardcode_automatic=$hardcode_automatic_F77
23842
23843# Variables whose values should be saved in libtool wrapper scripts and
23844# restored at relink time.
23845variables_saved_for_relink="$variables_saved_for_relink"
23846
23847# Whether libtool must link a program against all its dependency libraries.
23848link_all_deplibs=$link_all_deplibs_F77
23849
23850# Compile-time system search path for libraries
23851sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23852
23853# Run-time system search path for libraries
23854sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23855
23856# Fix the shell variable \$srcfile for the compiler.
23857fix_srcfile_path="$fix_srcfile_path_F77"
23858
23859# Set to yes if exported symbols are required.
23860always_export_symbols=$always_export_symbols_F77
23861
23862# The commands to list exported symbols.
23863export_symbols_cmds=$lt_export_symbols_cmds_F77
23864
23865# The commands to extract the exported symbol list from a shared archive.
23866extract_expsyms_cmds=$lt_extract_expsyms_cmds
23867
23868# Symbols that should not be listed in the preloaded symbols.
23869exclude_expsyms=$lt_exclude_expsyms_F77
23870
23871# Symbols that must always be exported.
23872include_expsyms=$lt_include_expsyms_F77
23873
23874# ### END LIBTOOL TAG CONFIG: $tagname
23875
23876__EOF__
23877
23878
23879else
23880 # If there is no Makefile yet, we rely on a make rule to execute
23881 # `config.status --recheck' to rerun these tests and create the
23882 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23884 if test -f "$ltmain_in"; then
23885 test -f Makefile && make "$ltmain"
23886 fi
John Criswell47fdd832003-07-14 16:52:07 +000023887fi
23888
23889
23890ac_ext=c
23891ac_cpp='$CPP $CPPFLAGS'
23892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894ac_compiler_gnu=$ac_cv_c_compiler_gnu
23895
23896CC="$lt_save_CC"
23897
23898 else
23899 tagname=""
23900 fi
23901 ;;
23902
23903 GCJ)
23904 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023905 ac_ext=c
23906ac_cpp='$CPP $CPPFLAGS'
23907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023910
23911
23912# Source file extension for Java test sources.
23913ac_ext=java
23914
23915# Object file extension for compiled Java test sources.
23916objext=o
23917objext_GCJ=$objext
23918
23919# Code to be used in simple compile tests
23920lt_simple_compile_test_code="class foo {}\n"
23921
23922# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023923lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023924
23925# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23926
23927# If no C compiler was specified, use CC.
23928LTCC=${LTCC-"$CC"}
23929
Reid Spencera773bd52006-08-04 18:18:08 +000023930# If no C compiler flags were specified, use CFLAGS.
23931LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23932
John Criswell47fdd832003-07-14 16:52:07 +000023933# Allow CC to be a program name with arguments.
23934compiler=$CC
23935
23936
Reid Spencera773bd52006-08-04 18:18:08 +000023937# save warnings/boilerplate of simple test code
23938ac_outfile=conftest.$ac_objext
23939printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23940eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23941_lt_compiler_boilerplate=`cat conftest.err`
23942$rm conftest*
23943
23944ac_outfile=conftest.$ac_objext
23945printf "$lt_simple_link_test_code" >conftest.$ac_ext
23946eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23947_lt_linker_boilerplate=`cat conftest.err`
23948$rm conftest*
23949
23950
John Criswell47fdd832003-07-14 16:52:07 +000023951# Allow CC to be a program name with arguments.
23952lt_save_CC="$CC"
23953CC=${GCJ-"gcj"}
23954compiler=$CC
23955compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023956for cc_temp in $compiler""; do
23957 case $cc_temp in
23958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23960 \-*) ;;
23961 *) break;;
23962 esac
23963done
23964cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23965
John Criswell47fdd832003-07-14 16:52:07 +000023966
23967# GCJ did not exist at the time GCC didn't implicitly link libc in.
23968archive_cmds_need_lc_GCJ=no
23969
Reid Spencera773bd52006-08-04 18:18:08 +000023970old_archive_cmds_GCJ=$old_archive_cmds
23971
John Criswell47fdd832003-07-14 16:52:07 +000023972
23973lt_prog_compiler_no_builtin_flag_GCJ=
23974
23975if test "$GCC" = yes; then
23976 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23977
Reid Spencer2706f8c2004-09-19 23:53:36 +000023978
Reid Spencera773bd52006-08-04 18:18:08 +000023979{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23980echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023981if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23983else
23984 lt_cv_prog_compiler_rtti_exceptions=no
23985 ac_outfile=conftest.$ac_objext
23986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23987 lt_compiler_flag="-fno-rtti -fno-exceptions"
23988 # Insert the option either (1) after the last *FLAGS variable, or
23989 # (2) before a word containing "conftest.", or (3) at the end.
23990 # Note that $ac_compile itself does not contain backslashes and begins
23991 # with a dollar sign (not a hyphen), so the echo should work correctly.
23992 # The option is referenced via a variable to avoid confusing sed.
23993 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23996 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000023997 (eval echo "\"\$as_me:23997: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023998 (eval "$lt_compile" 2>conftest.err)
23999 ac_status=$?
24000 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024001 echo "$as_me:24001: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024002 if (exit $ac_status) && test -s "$ac_outfile"; then
24003 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024004 # So say no if there are warnings other than the usual output.
24005 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024008 lt_cv_prog_compiler_rtti_exceptions=yes
24009 fi
24010 fi
24011 $rm conftest*
24012
24013fi
Reid Spencera773bd52006-08-04 18:18:08 +000024014{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24015echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024016
24017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24018 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24019else
24020 :
24021fi
24022
24023fi
24024
24025lt_prog_compiler_wl_GCJ=
24026lt_prog_compiler_pic_GCJ=
24027lt_prog_compiler_static_GCJ=
24028
Reid Spencera773bd52006-08-04 18:18:08 +000024029{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24030echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024031
24032 if test "$GCC" = yes; then
24033 lt_prog_compiler_wl_GCJ='-Wl,'
24034 lt_prog_compiler_static_GCJ='-static'
24035
24036 case $host_os in
24037 aix*)
24038 # All AIX code is PIC.
24039 if test "$host_cpu" = ia64; then
24040 # AIX 5 now supports IA64 processor
24041 lt_prog_compiler_static_GCJ='-Bstatic'
24042 fi
24043 ;;
24044
24045 amigaos*)
24046 # FIXME: we need at least 68020 code to build shared libraries, but
24047 # adding the `-m68020' flag to GCC prevents building anything better,
24048 # like `-m68040'.
24049 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24050 ;;
24051
24052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24053 # PIC is the default for these OSes.
24054 ;;
24055
24056 mingw* | pw32* | os2*)
24057 # This hack is so that the source file can tell whether it is being
24058 # built for inclusion in a dll (and should export symbols for example).
24059 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24060 ;;
24061
24062 darwin* | rhapsody*)
24063 # PIC is the default on this platform
24064 # Common symbols not allowed in MH_DYLIB files
24065 lt_prog_compiler_pic_GCJ='-fno-common'
24066 ;;
24067
Reid Spencera773bd52006-08-04 18:18:08 +000024068 interix3*)
24069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24070 # Instead, we relocate shared libraries at runtime.
24071 ;;
24072
John Criswell47fdd832003-07-14 16:52:07 +000024073 msdosdjgpp*)
24074 # Just because we use GCC doesn't mean we suddenly get shared libraries
24075 # on systems that don't support them.
24076 lt_prog_compiler_can_build_shared_GCJ=no
24077 enable_shared=no
24078 ;;
24079
24080 sysv4*MP*)
24081 if test -d /usr/nec; then
24082 lt_prog_compiler_pic_GCJ=-Kconform_pic
24083 fi
24084 ;;
24085
24086 hpux*)
24087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24088 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024089 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024090 hppa*64*|ia64*)
24091 # +Z the default
24092 ;;
24093 *)
24094 lt_prog_compiler_pic_GCJ='-fPIC'
24095 ;;
24096 esac
24097 ;;
24098
24099 *)
24100 lt_prog_compiler_pic_GCJ='-fPIC'
24101 ;;
24102 esac
24103 else
24104 # PORTME Check for flag to pass linker flags through the system compiler.
24105 case $host_os in
24106 aix*)
24107 lt_prog_compiler_wl_GCJ='-Wl,'
24108 if test "$host_cpu" = ia64; then
24109 # AIX 5 now supports IA64 processor
24110 lt_prog_compiler_static_GCJ='-Bstatic'
24111 else
24112 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24113 fi
24114 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024115 darwin*)
24116 # PIC is the default on this platform
24117 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024118 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024119 xlc*)
24120 lt_prog_compiler_pic_GCJ='-qnocommon'
24121 lt_prog_compiler_wl_GCJ='-Wl,'
24122 ;;
24123 esac
24124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024125
24126 mingw* | pw32* | os2*)
24127 # This hack is so that the source file can tell whether it is being
24128 # built for inclusion in a dll (and should export symbols for example).
24129 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24130 ;;
24131
24132 hpux9* | hpux10* | hpux11*)
24133 lt_prog_compiler_wl_GCJ='-Wl,'
24134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24135 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024136 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024137 hppa*64*|ia64*)
24138 # +Z the default
24139 ;;
24140 *)
24141 lt_prog_compiler_pic_GCJ='+Z'
24142 ;;
24143 esac
24144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24145 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24146 ;;
24147
24148 irix5* | irix6* | nonstopux*)
24149 lt_prog_compiler_wl_GCJ='-Wl,'
24150 # PIC (with -KPIC) is the default.
24151 lt_prog_compiler_static_GCJ='-non_shared'
24152 ;;
24153
24154 newsos6)
24155 lt_prog_compiler_pic_GCJ='-KPIC'
24156 lt_prog_compiler_static_GCJ='-Bstatic'
24157 ;;
24158
24159 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024160 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024161 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024162 lt_prog_compiler_wl_GCJ='-Wl,'
24163 lt_prog_compiler_pic_GCJ='-KPIC'
24164 lt_prog_compiler_static_GCJ='-static'
24165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024166 pgcc* | pgf77* | pgf90* | pgf95*)
24167 # Portland Group compilers (*not* the Pentium gcc compiler,
24168 # which looks to be a dead project)
24169 lt_prog_compiler_wl_GCJ='-Wl,'
24170 lt_prog_compiler_pic_GCJ='-fpic'
24171 lt_prog_compiler_static_GCJ='-Bstatic'
24172 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024173 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024174 lt_prog_compiler_wl_GCJ='-Wl,'
24175 # All Alpha code is PIC.
24176 lt_prog_compiler_static_GCJ='-non_shared'
24177 ;;
24178 esac
24179 ;;
24180
24181 osf3* | osf4* | osf5*)
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 # All OSF/1 code is PIC.
24184 lt_prog_compiler_static_GCJ='-non_shared'
24185 ;;
24186
John Criswell47fdd832003-07-14 16:52:07 +000024187 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024188 lt_prog_compiler_pic_GCJ='-KPIC'
24189 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024190 case $cc_basename in
24191 f77* | f90* | f95*)
24192 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24193 *)
24194 lt_prog_compiler_wl_GCJ='-Wl,';;
24195 esac
John Criswell47fdd832003-07-14 16:52:07 +000024196 ;;
24197
24198 sunos4*)
24199 lt_prog_compiler_wl_GCJ='-Qoption ld '
24200 lt_prog_compiler_pic_GCJ='-PIC'
24201 lt_prog_compiler_static_GCJ='-Bstatic'
24202 ;;
24203
Reid Spencera773bd52006-08-04 18:18:08 +000024204 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024205 lt_prog_compiler_wl_GCJ='-Wl,'
24206 lt_prog_compiler_pic_GCJ='-KPIC'
24207 lt_prog_compiler_static_GCJ='-Bstatic'
24208 ;;
24209
24210 sysv4*MP*)
24211 if test -d /usr/nec ;then
24212 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24213 lt_prog_compiler_static_GCJ='-Bstatic'
24214 fi
24215 ;;
24216
Reid Spencera773bd52006-08-04 18:18:08 +000024217 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24218 lt_prog_compiler_wl_GCJ='-Wl,'
24219 lt_prog_compiler_pic_GCJ='-KPIC'
24220 lt_prog_compiler_static_GCJ='-Bstatic'
24221 ;;
24222
24223 unicos*)
24224 lt_prog_compiler_wl_GCJ='-Wl,'
24225 lt_prog_compiler_can_build_shared_GCJ=no
24226 ;;
24227
John Criswell47fdd832003-07-14 16:52:07 +000024228 uts4*)
24229 lt_prog_compiler_pic_GCJ='-pic'
24230 lt_prog_compiler_static_GCJ='-Bstatic'
24231 ;;
24232
24233 *)
24234 lt_prog_compiler_can_build_shared_GCJ=no
24235 ;;
24236 esac
24237 fi
24238
Reid Spencera773bd52006-08-04 18:18:08 +000024239{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24240echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024241
24242#
24243# Check to make sure the PIC flag actually works.
24244#
24245if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024246
Reid Spencera773bd52006-08-04 18:18:08 +000024247{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24248echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024249if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24251else
24252 lt_prog_compiler_pic_works_GCJ=no
24253 ac_outfile=conftest.$ac_objext
24254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24255 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24256 # Insert the option either (1) after the last *FLAGS variable, or
24257 # (2) before a word containing "conftest.", or (3) at the end.
24258 # Note that $ac_compile itself does not contain backslashes and begins
24259 # with a dollar sign (not a hyphen), so the echo should work correctly.
24260 # The option is referenced via a variable to avoid confusing sed.
24261 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24264 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024265 (eval echo "\"\$as_me:24265: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024266 (eval "$lt_compile" 2>conftest.err)
24267 ac_status=$?
24268 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024269 echo "$as_me:24269: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024270 if (exit $ac_status) && test -s "$ac_outfile"; then
24271 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024272 # So say no if there are warnings other than the usual output.
24273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024276 lt_prog_compiler_pic_works_GCJ=yes
24277 fi
24278 fi
24279 $rm conftest*
24280
24281fi
Reid Spencera773bd52006-08-04 18:18:08 +000024282{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24283echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024284
24285if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24286 case $lt_prog_compiler_pic_GCJ in
24287 "" | " "*) ;;
24288 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24289 esac
24290else
24291 lt_prog_compiler_pic_GCJ=
24292 lt_prog_compiler_can_build_shared_GCJ=no
24293fi
24294
24295fi
Reid Spencera773bd52006-08-04 18:18:08 +000024296case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024297 # For platforms which do not support PIC, -DPIC is meaningless:
24298 *djgpp*)
24299 lt_prog_compiler_pic_GCJ=
24300 ;;
24301 *)
24302 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24303 ;;
24304esac
24305
Reid Spencera773bd52006-08-04 18:18:08 +000024306#
24307# Check to make sure the static flag actually works.
24308#
24309wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24310{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24311echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24312if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24314else
24315 lt_prog_compiler_static_works_GCJ=no
24316 save_LDFLAGS="$LDFLAGS"
24317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24318 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24320 # The linker can only warn and ignore the option if not recognized
24321 # So say no if there are warnings
24322 if test -s conftest.err; then
24323 # Append any errors to the config.log.
24324 cat conftest.err 1>&5
24325 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24327 if diff conftest.exp conftest.er2 >/dev/null; then
24328 lt_prog_compiler_static_works_GCJ=yes
24329 fi
24330 else
24331 lt_prog_compiler_static_works_GCJ=yes
24332 fi
24333 fi
24334 $rm conftest*
24335 LDFLAGS="$save_LDFLAGS"
24336
24337fi
24338{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24339echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24340
24341if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24342 :
24343else
24344 lt_prog_compiler_static_GCJ=
24345fi
24346
24347
24348{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24349echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024350if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24351 echo $ECHO_N "(cached) $ECHO_C" >&6
24352else
24353 lt_cv_prog_compiler_c_o_GCJ=no
24354 $rm -r conftest 2>/dev/null
24355 mkdir conftest
24356 cd conftest
24357 mkdir out
24358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24359
John Criswell47fdd832003-07-14 16:52:07 +000024360 lt_compiler_flag="-o out/conftest2.$ac_objext"
24361 # Insert the option either (1) after the last *FLAGS variable, or
24362 # (2) before a word containing "conftest.", or (3) at the end.
24363 # Note that $ac_compile itself does not contain backslashes and begins
24364 # with a dollar sign (not a hyphen), so the echo should work correctly.
24365 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24368 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024369 (eval echo "\"\$as_me:24369: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024370 (eval "$lt_compile" 2>out/conftest.err)
24371 ac_status=$?
24372 cat out/conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024373 echo "$as_me:24373: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24375 then
24376 # The compiler can only warn and ignore the option if not recognized
24377 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024381 lt_cv_prog_compiler_c_o_GCJ=yes
24382 fi
24383 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024384 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024385 $rm conftest*
24386 # SGI C++ compiler will create directory out/ii_files/ for
24387 # template instantiation
24388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24389 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024390 cd ..
24391 rmdir conftest
24392 $rm conftest*
24393
24394fi
Reid Spencera773bd52006-08-04 18:18:08 +000024395{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24396echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024397
24398
24399hard_links="nottested"
24400if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24401 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024402 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24403echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024404 hard_links=yes
24405 $rm conftest*
24406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24407 touch conftest.a
24408 ln conftest.a conftest.b 2>&5 || hard_links=no
24409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024410 { echo "$as_me:$LINENO: result: $hard_links" >&5
24411echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024412 if test "$hard_links" = no; then
24413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24414echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24415 need_locks=warn
24416 fi
24417else
24418 need_locks=no
24419fi
24420
Reid Spencera773bd52006-08-04 18:18:08 +000024421{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24422echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024423
24424 runpath_var=
24425 allow_undefined_flag_GCJ=
24426 enable_shared_with_static_runtimes_GCJ=no
24427 archive_cmds_GCJ=
24428 archive_expsym_cmds_GCJ=
24429 old_archive_From_new_cmds_GCJ=
24430 old_archive_from_expsyms_cmds_GCJ=
24431 export_dynamic_flag_spec_GCJ=
24432 whole_archive_flag_spec_GCJ=
24433 thread_safe_flag_spec_GCJ=
24434 hardcode_libdir_flag_spec_GCJ=
24435 hardcode_libdir_flag_spec_ld_GCJ=
24436 hardcode_libdir_separator_GCJ=
24437 hardcode_direct_GCJ=no
24438 hardcode_minus_L_GCJ=no
24439 hardcode_shlibpath_var_GCJ=unsupported
24440 link_all_deplibs_GCJ=unknown
24441 hardcode_automatic_GCJ=no
24442 module_cmds_GCJ=
24443 module_expsym_cmds_GCJ=
24444 always_export_symbols_GCJ=no
24445 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24446 # include_expsyms should be a list of space-separated symbols to be *always*
24447 # included in the symbol list
24448 include_expsyms_GCJ=
24449 # exclude_expsyms can be an extended regexp of symbols to exclude
24450 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24451 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24452 # as well as any symbol that contains `d'.
24453 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24454 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24455 # platforms (ab)use it in PIC code, but their linkers get confused if
24456 # the symbol is explicitly referenced. Since portable code cannot
24457 # rely on this symbol name, it's probably fine to never include it in
24458 # preloaded symbol tables.
24459 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024460 # Just being paranoid about ensuring that cc_basename is set.
24461 for cc_temp in $compiler""; do
24462 case $cc_temp in
24463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24465 \-*) ;;
24466 *) break;;
24467 esac
24468done
24469cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024470
24471 case $host_os in
24472 cygwin* | mingw* | pw32*)
24473 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24474 # When not using gcc, we currently assume that we are using
24475 # Microsoft Visual C++.
24476 if test "$GCC" != yes; then
24477 with_gnu_ld=no
24478 fi
24479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024480 interix*)
24481 # we just hope/assume this is gcc and not c89 (= MSVC++)
24482 with_gnu_ld=yes
24483 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024484 openbsd*)
24485 with_gnu_ld=no
24486 ;;
24487 esac
24488
24489 ld_shlibs_GCJ=yes
24490 if test "$with_gnu_ld" = yes; then
24491 # If archive_cmds runs LD, not CC, wlarc should be empty
24492 wlarc='${wl}'
24493
Reid Spencera773bd52006-08-04 18:18:08 +000024494 # Set some defaults for GNU ld with shared library support. These
24495 # are reset later if shared libraries are not supported. Putting them
24496 # here allows them to be overridden if necessary.
24497 runpath_var=LD_RUN_PATH
24498 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24499 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24500 # ancient GNU ld didn't support --whole-archive et. al.
24501 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24502 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24503 else
24504 whole_archive_flag_spec_GCJ=
24505 fi
24506 supports_anon_versioning=no
24507 case `$LD -v 2>/dev/null` in
24508 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24511 *\ 2.11.*) ;; # other 2.11 versions
24512 *) supports_anon_versioning=yes ;;
24513 esac
24514
John Criswell47fdd832003-07-14 16:52:07 +000024515 # See if GNU ld supports shared libraries.
24516 case $host_os in
24517 aix3* | aix4* | aix5*)
24518 # On AIX/PPC, the GNU linker is very broken
24519 if test "$host_cpu" != ia64; then
24520 ld_shlibs_GCJ=no
24521 cat <<EOF 1>&2
24522
24523*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24524*** to be unable to reliably create shared libraries on AIX.
24525*** Therefore, libtool is disabling shared libraries support. If you
24526*** really care for shared libraries, you may want to modify your PATH
24527*** so that a non-GNU linker is found, and then restart.
24528
24529EOF
24530 fi
24531 ;;
24532
24533 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024534 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 +000024535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24536 hardcode_minus_L_GCJ=yes
24537
24538 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24539 # that the semantics of dynamic libraries on AmigaOS, at least up
24540 # to version 4, is to share data among multiple programs linked
24541 # with the same dynamic library. Since this doesn't match the
24542 # behavior of shared libraries on other platforms, we can't use
24543 # them.
24544 ld_shlibs_GCJ=no
24545 ;;
24546
24547 beos*)
24548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24549 allow_undefined_flag_GCJ=unsupported
24550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24551 # support --undefined. This deserves some investigation. FIXME
24552 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24553 else
24554 ld_shlibs_GCJ=no
24555 fi
24556 ;;
24557
24558 cygwin* | mingw* | pw32*)
24559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24560 # as there is no search path for DLLs.
24561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562 allow_undefined_flag_GCJ=unsupported
24563 always_export_symbols_GCJ=no
24564 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024565 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 +000024566
24567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024568 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 +000024569 # If the export-symbols file already is a .def file (1st line
24570 # is EXPORTS), use it as is; otherwise, prepend...
24571 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24572 cp $export_symbols $output_objdir/$soname.def;
24573 else
24574 echo EXPORTS > $output_objdir/$soname.def;
24575 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024576 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024577 $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 +000024578 else
Reid Spencera773bd52006-08-04 18:18:08 +000024579 ld_shlibs_GCJ=no
24580 fi
24581 ;;
24582
24583 interix3*)
24584 hardcode_direct_GCJ=no
24585 hardcode_shlibpath_var_GCJ=no
24586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24587 export_dynamic_flag_spec_GCJ='${wl}-E'
24588 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24589 # Instead, shared libraries are loaded at an image base (0x10000000 by
24590 # default) and relocated if they conflict, which is a slow very memory
24591 # consuming and fragmenting process. To avoid this, we pick a random,
24592 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24593 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24594 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'
24595 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'
24596 ;;
24597
24598 linux*)
24599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24600 tmp_addflag=
24601 case $cc_basename,$host_cpu in
24602 pgcc*) # Portland Group C compiler
24603 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'
24604 tmp_addflag=' $pic_flag'
24605 ;;
24606 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24607 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'
24608 tmp_addflag=' $pic_flag -Mnomain' ;;
24609 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24610 tmp_addflag=' -i_dynamic' ;;
24611 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24612 tmp_addflag=' -i_dynamic -nofor_main' ;;
24613 ifc* | ifort*) # Intel Fortran compiler
24614 tmp_addflag=' -nofor_main' ;;
24615 esac
24616 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24617
24618 if test $supports_anon_versioning = yes; then
24619 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24621 $echo "local: *; };" >> $output_objdir/$libname.ver~
24622 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24623 fi
24624 else
24625 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024626 fi
24627 ;;
24628
24629 netbsd*)
24630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24631 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24632 wlarc=
24633 else
24634 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24635 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24636 fi
24637 ;;
24638
Reid Spencera773bd52006-08-04 18:18:08 +000024639 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24641 ld_shlibs_GCJ=no
24642 cat <<EOF 1>&2
24643
24644*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24645*** create shared libraries on Solaris systems. Therefore, libtool
24646*** is disabling shared libraries support. We urge you to upgrade GNU
24647*** binutils to release 2.9.1 or newer. Another option is to modify
24648*** your PATH or compiler configuration so that the native linker is
24649*** used, and then restart.
24650
24651EOF
24652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24653 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24654 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24655 else
24656 ld_shlibs_GCJ=no
24657 fi
24658 ;;
24659
Reid Spencera773bd52006-08-04 18:18:08 +000024660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24661 case `$LD -v 2>&1` in
24662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24663 ld_shlibs_GCJ=no
24664 cat <<_LT_EOF 1>&2
24665
24666*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24667*** reliably create shared libraries on SCO systems. Therefore, libtool
24668*** is disabling shared libraries support. We urge you to upgrade GNU
24669*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24670*** your PATH or compiler configuration so that the native linker is
24671*** used, and then restart.
24672
24673_LT_EOF
24674 ;;
24675 *)
24676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24677 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24680 else
24681 ld_shlibs_GCJ=no
24682 fi
24683 ;;
24684 esac
24685 ;;
24686
John Criswell47fdd832003-07-14 16:52:07 +000024687 sunos4*)
24688 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24689 wlarc=
24690 hardcode_direct_GCJ=yes
24691 hardcode_shlibpath_var_GCJ=no
24692 ;;
24693
24694 *)
24695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24696 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24697 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24698 else
24699 ld_shlibs_GCJ=no
24700 fi
24701 ;;
24702 esac
24703
Reid Spencera773bd52006-08-04 18:18:08 +000024704 if test "$ld_shlibs_GCJ" = no; then
24705 runpath_var=
24706 hardcode_libdir_flag_spec_GCJ=
24707 export_dynamic_flag_spec_GCJ=
24708 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024709 fi
24710 else
24711 # PORTME fill in a description of your system's linker (not GNU ld)
24712 case $host_os in
24713 aix3*)
24714 allow_undefined_flag_GCJ=unsupported
24715 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024716 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 +000024717 # Note: this linker hardcodes the directories in LIBPATH if there
24718 # are no directories specified by -L.
24719 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024721 # Neither direct hardcoding nor static linking is supported with a
24722 # broken collect2.
24723 hardcode_direct_GCJ=unsupported
24724 fi
24725 ;;
24726
24727 aix4* | aix5*)
24728 if test "$host_cpu" = ia64; then
24729 # On IA64, the linker does run time linking by default, so we don't
24730 # have to do anything special.
24731 aix_use_runtimelinking=no
24732 exp_sym_flag='-Bexport'
24733 no_entry_flag=""
24734 else
24735 # If we're using GNU nm, then we don't want the "-C" option.
24736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24738 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'
24739 else
24740 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'
24741 fi
24742 aix_use_runtimelinking=no
24743
24744 # Test if we are trying to use run time linking or normal
24745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24746 # need to do runtime linking.
24747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24748 for ld_flag in $LDFLAGS; do
24749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24750 aix_use_runtimelinking=yes
24751 break
24752 fi
24753 done
Reid Spencera773bd52006-08-04 18:18:08 +000024754 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024755 esac
24756
24757 exp_sym_flag='-bexport'
24758 no_entry_flag='-bnoentry'
24759 fi
24760
24761 # When large executables or shared objects are built, AIX ld can
24762 # have problems creating the table of contents. If linking a library
24763 # or program results in "error TOC overflow" add -mminimal-toc to
24764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24766
24767 archive_cmds_GCJ=''
24768 hardcode_direct_GCJ=yes
24769 hardcode_libdir_separator_GCJ=':'
24770 link_all_deplibs_GCJ=yes
24771
24772 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024773 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024774 # We only want to do this on AIX 4.2 and lower, the check
24775 # below for broken collect2 doesn't work under 4.3+
24776 collect2name=`${CC} -print-prog-name=collect2`
24777 if test -f "$collect2name" && \
24778 strings "$collect2name" | grep resolve_lib_name >/dev/null
24779 then
24780 # We have reworked collect2
24781 hardcode_direct_GCJ=yes
24782 else
24783 # We have old collect2
24784 hardcode_direct_GCJ=unsupported
24785 # It fails to find uninstalled libraries when the uninstalled
24786 # path is not listed in the libpath. Setting hardcode_minus_L
24787 # to unsupported forces relinking
24788 hardcode_minus_L_GCJ=yes
24789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24790 hardcode_libdir_separator_GCJ=
24791 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024792 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024793 esac
24794 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024795 if test "$aix_use_runtimelinking" = yes; then
24796 shared_flag="$shared_flag "'${wl}-G'
24797 fi
John Criswell47fdd832003-07-14 16:52:07 +000024798 else
24799 # not using gcc
24800 if test "$host_cpu" = ia64; then
24801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24802 # chokes on -Wl,-G. The following line is correct:
24803 shared_flag='-G'
24804 else
Reid Spencera773bd52006-08-04 18:18:08 +000024805 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024806 shared_flag='${wl}-G'
24807 else
24808 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024809 fi
John Criswell47fdd832003-07-14 16:52:07 +000024810 fi
24811 fi
24812
24813 # It seems that -bexpall does not export symbols beginning with
24814 # underscore (_), so it is better to generate a list of symbols to export.
24815 always_export_symbols_GCJ=yes
24816 if test "$aix_use_runtimelinking" = yes; then
24817 # Warning - without using the other runtime loading flags (-brtl),
24818 # -berok will link without error, but may produce a broken library.
24819 allow_undefined_flag_GCJ='-berok'
24820 # Determine the default libpath from the value encoded in an empty executable.
24821 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024822/* confdefs.h. */
24823_ACEOF
24824cat confdefs.h >>conftest.$ac_ext
24825cat >>conftest.$ac_ext <<_ACEOF
24826/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024827
John Criswell47fdd832003-07-14 16:52:07 +000024828int
24829main ()
24830{
24831
24832 ;
24833 return 0;
24834}
24835_ACEOF
24836rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024837if { (ac_try="$ac_link"
24838case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24841esac
24842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024844 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024845 grep -v '^ *+' conftest.er1 >conftest.err
24846 rm -f conftest.er1
24847 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024849 (exit $ac_status); } &&
24850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24851 { (case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24854esac
24855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_try") 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest$ac_exeext'
24861 { (case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24864esac
24865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866 (eval "$ac_try") 2>&5
24867 ac_status=$?
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024870
24871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24872}'`
24873# Check for a 64-bit object if we didn't find anything.
24874if 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; }
24875}'`; fi
24876else
24877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024878sed 's/^/| /' conftest.$ac_ext >&5
24879
Reid Spencera773bd52006-08-04 18:18:08 +000024880
John Criswell47fdd832003-07-14 16:52:07 +000024881fi
Reid Spencera773bd52006-08-04 18:18:08 +000024882
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024883rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024884 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24886
24887 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024888 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 +000024889 else
24890 if test "$host_cpu" = ia64; then
24891 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24892 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024893 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 +000024894 else
24895 # Determine the default libpath from the value encoded in an empty executable.
24896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024902
John Criswell47fdd832003-07-14 16:52:07 +000024903int
24904main ()
24905{
24906
24907 ;
24908 return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024912if { (ac_try="$ac_link"
24913case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916esac
24917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24929esac
24930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939esac
24940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024945
24946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24947}'`
24948# Check for a 64-bit object if we didn't find anything.
24949if 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; }
24950}'`; fi
24951else
24952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024953sed 's/^/| /' conftest.$ac_ext >&5
24954
Reid Spencera773bd52006-08-04 18:18:08 +000024955
John Criswell47fdd832003-07-14 16:52:07 +000024956fi
Reid Spencera773bd52006-08-04 18:18:08 +000024957
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024958rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024959 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24961
24962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963 # Warning - without using the other run time loading flags,
24964 # -berok will link without error, but may produce a broken library.
24965 no_undefined_flag_GCJ=' ${wl}-bernotok'
24966 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024967 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024968 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024969 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024970 # This is similar to how AIX traditionally builds its shared libraries.
24971 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 +000024972 fi
24973 fi
24974 ;;
24975
24976 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024977 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 +000024978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24979 hardcode_minus_L_GCJ=yes
24980 # see comment about different semantics on the GNU ld section
24981 ld_shlibs_GCJ=no
24982 ;;
24983
Reid Spencer2706f8c2004-09-19 23:53:36 +000024984 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024985 export_dynamic_flag_spec_GCJ=-rdynamic
24986 ;;
24987
24988 cygwin* | mingw* | pw32*)
24989 # When not using gcc, we currently assume that we are using
24990 # Microsoft Visual C++.
24991 # hardcode_libdir_flag_spec is actually meaningless, as there is
24992 # no search path for DLLs.
24993 hardcode_libdir_flag_spec_GCJ=' '
24994 allow_undefined_flag_GCJ=unsupported
24995 # Tell ltmain to make .lib files, not .a files.
24996 libext=lib
24997 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024998 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024999 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025000 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 +000025001 # The linker will automatically build a .lib file if we build a DLL.
25002 old_archive_From_new_cmds_GCJ='true'
25003 # FIXME: Should let the user specify the lib program.
25004 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025005 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025006 enable_shared_with_static_runtimes_GCJ=yes
25007 ;;
25008
25009 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025010 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025011 rhapsody* | darwin1.[012])
25012 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25013 ;;
25014 *) # Darwin 1.3 on
25015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25016 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25017 else
25018 case ${MACOSX_DEPLOYMENT_TARGET} in
25019 10.[012])
25020 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25021 ;;
25022 10.*)
25023 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25024 ;;
25025 esac
25026 fi
25027 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025028 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025029 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025030 hardcode_direct_GCJ=no
25031 hardcode_automatic_GCJ=yes
25032 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025033 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025034 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025035 if test "$GCC" = yes ; then
25036 output_verbose_link_cmd='echo'
25037 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25038 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025039 # 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 +000025040 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}'
25041 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 +000025042 else
Reid Spencera773bd52006-08-04 18:18:08 +000025043 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025044 xlc*)
25045 output_verbose_link_cmd='echo'
25046 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25047 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025048 # 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 +000025049 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}'
25050 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 +000025051 ;;
25052 *)
25053 ld_shlibs_GCJ=no
25054 ;;
25055 esac
John Criswell47fdd832003-07-14 16:52:07 +000025056 fi
25057 ;;
25058
25059 dgux*)
25060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25062 hardcode_shlibpath_var_GCJ=no
25063 ;;
25064
25065 freebsd1*)
25066 ld_shlibs_GCJ=no
25067 ;;
25068
25069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25070 # support. Future versions do this automatically, but an explicit c++rt0.o
25071 # does not break anything, and helps significantly (at the cost of a little
25072 # extra space).
25073 freebsd2.2*)
25074 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25075 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25076 hardcode_direct_GCJ=yes
25077 hardcode_shlibpath_var_GCJ=no
25078 ;;
25079
25080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25081 freebsd2*)
25082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25083 hardcode_direct_GCJ=yes
25084 hardcode_minus_L_GCJ=yes
25085 hardcode_shlibpath_var_GCJ=no
25086 ;;
25087
25088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025089 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025090 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092 hardcode_direct_GCJ=yes
25093 hardcode_shlibpath_var_GCJ=no
25094 ;;
25095
25096 hpux9*)
25097 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025098 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 +000025099 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025100 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 +000025101 fi
25102 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25103 hardcode_libdir_separator_GCJ=:
25104 hardcode_direct_GCJ=yes
25105
25106 # hardcode_minus_L: Not really in the search PATH,
25107 # but as the default location of the library.
25108 hardcode_minus_L_GCJ=yes
25109 export_dynamic_flag_spec_GCJ='${wl}-E'
25110 ;;
25111
Reid Spencera773bd52006-08-04 18:18:08 +000025112 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025114 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25115 else
25116 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25117 fi
25118 if test "$with_gnu_ld" = no; then
25119 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25120 hardcode_libdir_separator_GCJ=:
25121
25122 hardcode_direct_GCJ=yes
25123 export_dynamic_flag_spec_GCJ='${wl}-E'
25124
25125 # hardcode_minus_L: Not really in the search PATH,
25126 # but as the default location of the library.
25127 hardcode_minus_L_GCJ=yes
25128 fi
25129 ;;
25130
25131 hpux11*)
25132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25133 case $host_cpu in
25134 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025135 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025137 ia64*)
25138 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25139 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025140 *)
25141 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25142 ;;
25143 esac
25144 else
Reid Spencera773bd52006-08-04 18:18:08 +000025145 case $host_cpu in
25146 hppa*64*)
25147 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25148 ;;
25149 ia64*)
25150 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025151 ;;
25152 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025153 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 +000025154 ;;
25155 esac
25156 fi
25157 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025158 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25159 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025160
Reid Spencera773bd52006-08-04 18:18:08 +000025161 case $host_cpu in
25162 hppa*64*|ia64*)
25163 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25164 hardcode_direct_GCJ=no
25165 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025166 ;;
25167 *)
John Criswell47fdd832003-07-14 16:52:07 +000025168 hardcode_direct_GCJ=yes
25169 export_dynamic_flag_spec_GCJ='${wl}-E'
25170
25171 # hardcode_minus_L: Not really in the search PATH,
25172 # but as the default location of the library.
25173 hardcode_minus_L_GCJ=yes
25174 ;;
25175 esac
25176 fi
25177 ;;
25178
25179 irix5* | irix6* | nonstopux*)
25180 if test "$GCC" = yes; then
25181 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'
25182 else
25183 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'
25184 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25185 fi
25186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25187 hardcode_libdir_separator_GCJ=:
25188 link_all_deplibs_GCJ=yes
25189 ;;
25190
25191 netbsd*)
25192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25193 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25194 else
25195 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25196 fi
25197 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25198 hardcode_direct_GCJ=yes
25199 hardcode_shlibpath_var_GCJ=no
25200 ;;
25201
25202 newsos6)
25203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25204 hardcode_direct_GCJ=yes
25205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25206 hardcode_libdir_separator_GCJ=:
25207 hardcode_shlibpath_var_GCJ=no
25208 ;;
25209
25210 openbsd*)
25211 hardcode_direct_GCJ=yes
25212 hardcode_shlibpath_var_GCJ=no
25213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25214 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025215 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 +000025216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25217 export_dynamic_flag_spec_GCJ='${wl}-E'
25218 else
25219 case $host_os in
25220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25221 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25222 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25223 ;;
25224 *)
25225 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25227 ;;
25228 esac
25229 fi
25230 ;;
25231
25232 os2*)
25233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25234 hardcode_minus_L_GCJ=yes
25235 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025236 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 +000025237 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25238 ;;
25239
25240 osf3*)
25241 if test "$GCC" = yes; then
25242 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25243 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'
25244 else
25245 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25246 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'
25247 fi
25248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25249 hardcode_libdir_separator_GCJ=:
25250 ;;
25251
25252 osf4* | osf5*) # as osf3* with the addition of -msym flag
25253 if test "$GCC" = yes; then
25254 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25255 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'
25256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25257 else
25258 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25259 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 +000025260 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 +000025261 $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 +000025262
John Criswell47fdd832003-07-14 16:52:07 +000025263 # Both c and cxx compiler support -rpath directly
25264 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25265 fi
25266 hardcode_libdir_separator_GCJ=:
25267 ;;
25268
John Criswell47fdd832003-07-14 16:52:07 +000025269 solaris*)
25270 no_undefined_flag_GCJ=' -z text'
25271 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025272 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025273 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25275 $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 +000025276 else
Reid Spencera773bd52006-08-04 18:18:08 +000025277 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025278 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280 $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 +000025281 fi
25282 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25283 hardcode_shlibpath_var_GCJ=no
25284 case $host_os in
25285 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025286 *)
25287 # The compiler driver will combine linker options so we
25288 # cannot just pass the convience library names through
25289 # without $wl, iff we do not link with $LD.
25290 # Luckily, gcc supports the same syntax we need for Sun Studio.
25291 # Supported since Solaris 2.6 (maybe 2.5.1?)
25292 case $wlarc in
25293 '')
25294 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25295 *)
25296 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' ;;
25297 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025298 esac
25299 link_all_deplibs_GCJ=yes
25300 ;;
25301
25302 sunos4*)
25303 if test "x$host_vendor" = xsequent; then
25304 # Use $CC to link under sequent, because it throws in some extra .o
25305 # files that make .init and .fini sections work.
25306 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25307 else
25308 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25309 fi
25310 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25311 hardcode_direct_GCJ=yes
25312 hardcode_minus_L_GCJ=yes
25313 hardcode_shlibpath_var_GCJ=no
25314 ;;
25315
25316 sysv4)
25317 case $host_vendor in
25318 sni)
25319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25320 hardcode_direct_GCJ=yes # is this really true???
25321 ;;
25322 siemens)
25323 ## LD is ld it makes a PLAMLIB
25324 ## CC just makes a GrossModule.
25325 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25326 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25327 hardcode_direct_GCJ=no
25328 ;;
25329 motorola)
25330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25331 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25332 ;;
25333 esac
25334 runpath_var='LD_RUN_PATH'
25335 hardcode_shlibpath_var_GCJ=no
25336 ;;
25337
25338 sysv4.3*)
25339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25340 hardcode_shlibpath_var_GCJ=no
25341 export_dynamic_flag_spec_GCJ='-Bexport'
25342 ;;
25343
25344 sysv4*MP*)
25345 if test -d /usr/nec; then
25346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347 hardcode_shlibpath_var_GCJ=no
25348 runpath_var=LD_RUN_PATH
25349 hardcode_runpath_var=yes
25350 ld_shlibs_GCJ=yes
25351 fi
25352 ;;
25353
Reid Spencera773bd52006-08-04 18:18:08 +000025354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25355 no_undefined_flag_GCJ='${wl}-z,text'
25356 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025357 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025358 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025359
John Criswell47fdd832003-07-14 16:52:07 +000025360 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025361 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25362 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 +000025363 else
Reid Spencera773bd52006-08-04 18:18:08 +000025364 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25365 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 +000025366 fi
John Criswell47fdd832003-07-14 16:52:07 +000025367 ;;
25368
Reid Spencera773bd52006-08-04 18:18:08 +000025369 sysv5* | sco3.2v5* | sco5v6*)
25370 # Note: We can NOT use -z defs as we might desire, because we do not
25371 # link with -lc, and that would cause any symbols used from libc to
25372 # always be unresolved, which means just about no library would
25373 # ever link correctly. If we're not using GNU ld we use -z text
25374 # though, which does catch some bad symbols but isn't as heavy-handed
25375 # as -z defs.
25376 no_undefined_flag_GCJ='${wl}-z,text'
25377 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25378 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025379 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025380 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25381 hardcode_libdir_separator_GCJ=':'
25382 link_all_deplibs_GCJ=yes
25383 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025384 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025385
25386 if test "$GCC" = yes; then
25387 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25388 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25389 else
25390 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25391 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25392 fi
John Criswell47fdd832003-07-14 16:52:07 +000025393 ;;
25394
25395 uts4*)
25396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25398 hardcode_shlibpath_var_GCJ=no
25399 ;;
25400
25401 *)
25402 ld_shlibs_GCJ=no
25403 ;;
25404 esac
25405 fi
25406
Reid Spencera773bd52006-08-04 18:18:08 +000025407{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25408echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025409test "$ld_shlibs_GCJ" = no && can_build_shared=no
25410
John Criswell47fdd832003-07-14 16:52:07 +000025411#
25412# Do we need to explicitly link libc?
25413#
25414case "x$archive_cmds_need_lc_GCJ" in
25415x|xyes)
25416 # Assume -lc should be added
25417 archive_cmds_need_lc_GCJ=yes
25418
25419 if test "$enable_shared" = yes && test "$GCC" = yes; then
25420 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025421 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025422 # FIXME: we may have to deal with multi-command sequences.
25423 ;;
25424 '$CC '*)
25425 # Test whether the compiler implicitly links with -lc since on some
25426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25427 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025428 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25429echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025430 $rm conftest*
25431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25432
25433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25434 (eval $ac_compile) 2>&5
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } 2>conftest.err; then
25438 soname=conftest
25439 lib=conftest
25440 libobjs=conftest.$ac_objext
25441 deplibs=
25442 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025443 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025444 compiler_flags=-v
25445 linker_flags=-v
25446 verstring=
25447 output_objdir=.
25448 libname=conftest
25449 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25450 allow_undefined_flag_GCJ=
25451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25452 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); }
25456 then
25457 archive_cmds_need_lc_GCJ=no
25458 else
25459 archive_cmds_need_lc_GCJ=yes
25460 fi
25461 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25462 else
25463 cat conftest.err 1>&5
25464 fi
25465 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025466 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25467echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025468 ;;
25469 esac
25470 fi
25471 ;;
25472esac
25473
Reid Spencera773bd52006-08-04 18:18:08 +000025474{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25475echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025476library_names_spec=
25477libname_spec='lib$name'
25478soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025479shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025480postinstall_cmds=
25481postuninstall_cmds=
25482finish_cmds=
25483finish_eval=
25484shlibpath_var=
25485shlibpath_overrides_runpath=unknown
25486version_type=none
25487dynamic_linker="$host_os ld.so"
25488sys_lib_dlsearch_path_spec="/lib /usr/lib"
25489if test "$GCC" = yes; then
25490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25492 # if the path contains ";" then we assume it to be the separator
25493 # otherwise default to the standard path separator (i.e. ":") - it is
25494 # assumed that no part of a normal pathname contains ";" but that should
25495 # okay in the real world where ";" in dirpaths is itself problematic.
25496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25497 else
25498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25499 fi
25500else
25501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25502fi
25503need_lib_prefix=unknown
25504hardcode_into_libs=no
25505
25506# when you set need_version to no, make sure it does not cause -set_version
25507# flags to be left without arguments
25508need_version=unknown
25509
25510case $host_os in
25511aix3*)
25512 version_type=linux
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25514 shlibpath_var=LIBPATH
25515
25516 # AIX 3 has no versioning support, so we append a major version to the name.
25517 soname_spec='${libname}${release}${shared_ext}$major'
25518 ;;
25519
25520aix4* | aix5*)
25521 version_type=linux
25522 need_lib_prefix=no
25523 need_version=no
25524 hardcode_into_libs=yes
25525 if test "$host_cpu" = ia64; then
25526 # AIX 5 supports IA64
25527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25528 shlibpath_var=LD_LIBRARY_PATH
25529 else
25530 # With GCC up to 2.95.x, collect2 would create an import file
25531 # for dependence libraries. The import file would start with
25532 # the line `#! .'. This would cause the generated library to
25533 # depend on `.', always an invalid library. This was fixed in
25534 # development snapshots of GCC prior to 3.0.
25535 case $host_os in
25536 aix4 | aix4.[01] | aix4.[01].*)
25537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25538 echo ' yes '
25539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25540 :
25541 else
25542 can_build_shared=no
25543 fi
25544 ;;
25545 esac
25546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25547 # soname into executable. Probably we can add versioning support to
25548 # collect2, so additional links can be useful in future.
25549 if test "$aix_use_runtimelinking" = yes; then
25550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25551 # instead of lib<name>.a to let people know that these are not
25552 # typical AIX shared libraries.
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25554 else
25555 # We preserve .a as extension for shared libraries through AIX4.2
25556 # and later when we are not doing run time linking.
25557 library_names_spec='${libname}${release}.a $libname.a'
25558 soname_spec='${libname}${release}${shared_ext}$major'
25559 fi
25560 shlibpath_var=LIBPATH
25561 fi
25562 ;;
25563
25564amigaos*)
25565 library_names_spec='$libname.ixlibrary $libname.a'
25566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025567 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 +000025568 ;;
25569
25570beos*)
25571 library_names_spec='${libname}${shared_ext}'
25572 dynamic_linker="$host_os ld.so"
25573 shlibpath_var=LIBRARY_PATH
25574 ;;
25575
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025577 version_type=linux
25578 need_version=no
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25585 # the default ld.so.conf also contains /usr/contrib/lib and
25586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25587 # libtool to hard-code these into programs
25588 ;;
25589
25590cygwin* | mingw* | pw32*)
25591 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025592 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025593 need_version=no
25594 need_lib_prefix=no
25595
25596 case $GCC,$host_os in
25597 yes,cygwin* | yes,mingw* | yes,pw32*)
25598 library_names_spec='$libname.dll.a'
25599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025600 postinstall_cmds='base_file=`basename \${file}`~
25601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25602 dldir=$destdir/`dirname \$dlpath`~
25603 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025604 $install_prog $dir/$dlname \$dldir/$dlname~
25605 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25607 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025608 $rm \$dlpath'
25609 shlibpath_overrides_runpath=yes
25610
25611 case $host_os in
25612 cygwin*)
25613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25614 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 +000025615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025616 ;;
25617 mingw*)
25618 # MinGW DLLs use traditional 'lib' prefix
25619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25622 # It is most probably a Windows format PATH printed by
25623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25624 # path with ; separators, and with drive letters. We can handle the
25625 # drive letters (cygwin fileutils understands them), so leave them,
25626 # especially as we might pass files found there to a mingw objdump,
25627 # which wouldn't understand a cygwinified path. Ahh.
25628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25629 else
25630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25631 fi
25632 ;;
25633 pw32*)
25634 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025635 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 +000025636 ;;
25637 esac
25638 ;;
25639
25640 *)
25641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25642 ;;
25643 esac
25644 dynamic_linker='Win32 ld.exe'
25645 # FIXME: first we should search . and the directory the executable is in
25646 shlibpath_var=PATH
25647 ;;
25648
25649darwin* | rhapsody*)
25650 dynamic_linker="$host_os dyld"
25651 version_type=darwin
25652 need_lib_prefix=no
25653 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025654 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025655 soname_spec='${libname}${release}${major}$shared_ext'
25656 shlibpath_overrides_runpath=yes
25657 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025658 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025659 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025660 if test "$GCC" = yes; then
25661 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"`
25662 else
25663 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025664 fi
25665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25666 ;;
25667
25668dgux*)
25669 version_type=linux
25670 need_lib_prefix=no
25671 need_version=no
25672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25673 soname_spec='${libname}${release}${shared_ext}$major'
25674 shlibpath_var=LD_LIBRARY_PATH
25675 ;;
25676
25677freebsd1*)
25678 dynamic_linker=no
25679 ;;
25680
Reid Spencer2706f8c2004-09-19 23:53:36 +000025681kfreebsd*-gnu)
25682 version_type=linux
25683 need_lib_prefix=no
25684 need_version=no
25685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686 soname_spec='${libname}${release}${shared_ext}$major'
25687 shlibpath_var=LD_LIBRARY_PATH
25688 shlibpath_overrides_runpath=no
25689 hardcode_into_libs=yes
25690 dynamic_linker='GNU ld.so'
25691 ;;
25692
Reid Spencera773bd52006-08-04 18:18:08 +000025693freebsd* | dragonfly*)
25694 # DragonFly does not have aout. When/if they implement a new
25695 # versioning mechanism, adjust this.
25696 if test -x /usr/bin/objformat; then
25697 objformat=`/usr/bin/objformat`
25698 else
25699 case $host_os in
25700 freebsd[123]*) objformat=aout ;;
25701 *) objformat=elf ;;
25702 esac
25703 fi
John Criswell47fdd832003-07-14 16:52:07 +000025704 version_type=freebsd-$objformat
25705 case $version_type in
25706 freebsd-elf*)
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25708 need_version=no
25709 need_lib_prefix=no
25710 ;;
25711 freebsd-*)
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25713 need_version=yes
25714 ;;
25715 esac
25716 shlibpath_var=LD_LIBRARY_PATH
25717 case $host_os in
25718 freebsd2*)
25719 shlibpath_overrides_runpath=yes
25720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025721 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025722 shlibpath_overrides_runpath=yes
25723 hardcode_into_libs=yes
25724 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025727 shlibpath_overrides_runpath=no
25728 hardcode_into_libs=yes
25729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025730 freebsd*) # from 4.6 on
25731 shlibpath_overrides_runpath=yes
25732 hardcode_into_libs=yes
25733 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025734 esac
25735 ;;
25736
25737gnu*)
25738 version_type=linux
25739 need_lib_prefix=no
25740 need_version=no
25741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25742 soname_spec='${libname}${release}${shared_ext}$major'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 hardcode_into_libs=yes
25745 ;;
25746
25747hpux9* | hpux10* | hpux11*)
25748 # Give a soname corresponding to the major version so that dld.sl refuses to
25749 # link against other versions.
25750 version_type=sunos
25751 need_lib_prefix=no
25752 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025753 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025754 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025755 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025756 hardcode_into_libs=yes
25757 dynamic_linker="$host_os dld.so"
25758 shlibpath_var=LD_LIBRARY_PATH
25759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 if test "X$HPUX_IA64_MODE" = X32; then
25763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25764 else
25765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25766 fi
25767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25768 ;;
25769 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025770 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025771 hardcode_into_libs=yes
25772 dynamic_linker="$host_os dld.sl"
25773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25779 ;;
25780 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025781 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025782 dynamic_linker="$host_os dld.sl"
25783 shlibpath_var=SHLIB_PATH
25784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25786 soname_spec='${libname}${release}${shared_ext}$major'
25787 ;;
25788 esac
25789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25790 postinstall_cmds='chmod 555 $lib'
25791 ;;
25792
Reid Spencera773bd52006-08-04 18:18:08 +000025793interix3*)
25794 version_type=linux
25795 need_lib_prefix=no
25796 need_version=no
25797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25798 soname_spec='${libname}${release}${shared_ext}$major'
25799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25800 shlibpath_var=LD_LIBRARY_PATH
25801 shlibpath_overrides_runpath=no
25802 hardcode_into_libs=yes
25803 ;;
25804
John Criswell47fdd832003-07-14 16:52:07 +000025805irix5* | irix6* | nonstopux*)
25806 case $host_os in
25807 nonstopux*) version_type=nonstopux ;;
25808 *)
25809 if test "$lt_cv_prog_gnu_ld" = yes; then
25810 version_type=linux
25811 else
25812 version_type=irix
25813 fi ;;
25814 esac
25815 need_lib_prefix=no
25816 need_version=no
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25819 case $host_os in
25820 irix5* | nonstopux*)
25821 libsuff= shlibsuff=
25822 ;;
25823 *)
25824 case $LD in # libtool.m4 will add one of these switches to LD
25825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25826 libsuff= shlibsuff= libmagic=32-bit;;
25827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25828 libsuff=32 shlibsuff=N32 libmagic=N32;;
25829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25831 *) libsuff= shlibsuff= libmagic=never-match;;
25832 esac
25833 ;;
25834 esac
25835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25836 shlibpath_overrides_runpath=no
25837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25839 hardcode_into_libs=yes
25840 ;;
25841
25842# No shared lib support for Linux oldld, aout, or coff.
25843linux*oldld* | linux*aout* | linux*coff*)
25844 dynamic_linker=no
25845 ;;
25846
25847# This must be Linux ELF.
25848linux*)
25849 version_type=linux
25850 need_lib_prefix=no
25851 need_version=no
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25855 shlibpath_var=LD_LIBRARY_PATH
25856 shlibpath_overrides_runpath=no
25857 # This implies no fast_install, which is unacceptable.
25858 # Some rework will be needed to allow for fast_install
25859 # before this can be enabled.
25860 hardcode_into_libs=yes
25861
Reid Spencer2706f8c2004-09-19 23:53:36 +000025862 # Append ld.so.conf contents to the search path
25863 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025864 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 +000025865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25866 fi
25867
John Criswell47fdd832003-07-14 16:52:07 +000025868 # We used to test for /lib/ld.so.1 and disable shared libraries on
25869 # powerpc, because MkLinux only supported shared libraries with the
25870 # GNU dynamic linker. Since this was broken with cross compilers,
25871 # most powerpc-linux boxes support dynamic linking these days and
25872 # people can always --disable-shared, the test was removed, and we
25873 # assume the GNU/Linux dynamic linker is in use.
25874 dynamic_linker='GNU/Linux ld.so'
25875 ;;
25876
Reid Spencer2706f8c2004-09-19 23:53:36 +000025877knetbsd*-gnu)
25878 version_type=linux
25879 need_lib_prefix=no
25880 need_version=no
25881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25882 soname_spec='${libname}${release}${shared_ext}$major'
25883 shlibpath_var=LD_LIBRARY_PATH
25884 shlibpath_overrides_runpath=no
25885 hardcode_into_libs=yes
25886 dynamic_linker='GNU ld.so'
25887 ;;
25888
John Criswell47fdd832003-07-14 16:52:07 +000025889netbsd*)
25890 version_type=sunos
25891 need_lib_prefix=no
25892 need_version=no
25893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25896 dynamic_linker='NetBSD (a.out) ld.so'
25897 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025899 soname_spec='${libname}${release}${shared_ext}$major'
25900 dynamic_linker='NetBSD ld.elf_so'
25901 fi
25902 shlibpath_var=LD_LIBRARY_PATH
25903 shlibpath_overrides_runpath=yes
25904 hardcode_into_libs=yes
25905 ;;
25906
25907newsos6)
25908 version_type=linux
25909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910 shlibpath_var=LD_LIBRARY_PATH
25911 shlibpath_overrides_runpath=yes
25912 ;;
25913
Reid Spencer2706f8c2004-09-19 23:53:36 +000025914nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025915 version_type=linux
25916 need_lib_prefix=no
25917 need_version=no
25918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919 soname_spec='${libname}${release}${shared_ext}$major'
25920 shlibpath_var=LD_LIBRARY_PATH
25921 shlibpath_overrides_runpath=yes
25922 ;;
25923
25924openbsd*)
25925 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025926 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025927 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25929 case $host_os in
25930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25931 *) need_version=no ;;
25932 esac
John Criswell47fdd832003-07-14 16:52:07 +000025933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25935 shlibpath_var=LD_LIBRARY_PATH
25936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25937 case $host_os in
25938 openbsd2.[89] | openbsd2.[89].*)
25939 shlibpath_overrides_runpath=no
25940 ;;
25941 *)
25942 shlibpath_overrides_runpath=yes
25943 ;;
25944 esac
25945 else
25946 shlibpath_overrides_runpath=yes
25947 fi
25948 ;;
25949
25950os2*)
25951 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025952 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025953 need_lib_prefix=no
25954 library_names_spec='$libname${shared_ext} $libname.a'
25955 dynamic_linker='OS/2 ld.exe'
25956 shlibpath_var=LIBPATH
25957 ;;
25958
25959osf3* | osf4* | osf5*)
25960 version_type=osf
25961 need_lib_prefix=no
25962 need_version=no
25963 soname_spec='${libname}${release}${shared_ext}$major'
25964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25965 shlibpath_var=LD_LIBRARY_PATH
25966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25968 ;;
25969
John Criswell47fdd832003-07-14 16:52:07 +000025970solaris*)
25971 version_type=linux
25972 need_lib_prefix=no
25973 need_version=no
25974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25975 soname_spec='${libname}${release}${shared_ext}$major'
25976 shlibpath_var=LD_LIBRARY_PATH
25977 shlibpath_overrides_runpath=yes
25978 hardcode_into_libs=yes
25979 # ldd complains unless libraries are executable
25980 postinstall_cmds='chmod +x $lib'
25981 ;;
25982
25983sunos4*)
25984 version_type=sunos
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25987 shlibpath_var=LD_LIBRARY_PATH
25988 shlibpath_overrides_runpath=yes
25989 if test "$with_gnu_ld" = yes; then
25990 need_lib_prefix=no
25991 fi
25992 need_version=yes
25993 ;;
25994
Reid Spencera773bd52006-08-04 18:18:08 +000025995sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025996 version_type=linux
25997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 shlibpath_var=LD_LIBRARY_PATH
26000 case $host_vendor in
26001 sni)
26002 shlibpath_overrides_runpath=no
26003 need_lib_prefix=no
26004 export_dynamic_flag_spec='${wl}-Blargedynsym'
26005 runpath_var=LD_RUN_PATH
26006 ;;
26007 siemens)
26008 need_lib_prefix=no
26009 ;;
26010 motorola)
26011 need_lib_prefix=no
26012 need_version=no
26013 shlibpath_overrides_runpath=no
26014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26015 ;;
26016 esac
26017 ;;
26018
26019sysv4*MP*)
26020 if test -d /usr/nec ;then
26021 version_type=linux
26022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26023 soname_spec='$libname${shared_ext}.$major'
26024 shlibpath_var=LD_LIBRARY_PATH
26025 fi
26026 ;;
26027
Reid Spencera773bd52006-08-04 18:18:08 +000026028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26029 version_type=freebsd-elf
26030 need_lib_prefix=no
26031 need_version=no
26032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26033 soname_spec='${libname}${release}${shared_ext}$major'
26034 shlibpath_var=LD_LIBRARY_PATH
26035 hardcode_into_libs=yes
26036 if test "$with_gnu_ld" = yes; then
26037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26038 shlibpath_overrides_runpath=no
26039 else
26040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26041 shlibpath_overrides_runpath=yes
26042 case $host_os in
26043 sco3.2v5*)
26044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26045 ;;
26046 esac
26047 fi
26048 sys_lib_dlsearch_path_spec='/usr/lib'
26049 ;;
26050
John Criswell47fdd832003-07-14 16:52:07 +000026051uts4*)
26052 version_type=linux
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 shlibpath_var=LD_LIBRARY_PATH
26056 ;;
26057
26058*)
26059 dynamic_linker=no
26060 ;;
26061esac
Reid Spencera773bd52006-08-04 18:18:08 +000026062{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26063echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026064test "$dynamic_linker" = no && can_build_shared=no
26065
Reid Spencera773bd52006-08-04 18:18:08 +000026066variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26067if test "$GCC" = yes; then
26068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26069fi
26070
26071{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26072echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026073hardcode_action_GCJ=
26074if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26075 test -n "$runpath_var_GCJ" || \
26076 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26077
26078 # We can hardcode non-existant directories.
26079 if test "$hardcode_direct_GCJ" != no &&
26080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26081 # have to relink, otherwise we might link with an installed library
26082 # when we should be linking with a yet-to-be-installed one
26083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26084 test "$hardcode_minus_L_GCJ" != no; then
26085 # Linking always hardcodes the temporary library directory.
26086 hardcode_action_GCJ=relink
26087 else
26088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26089 hardcode_action_GCJ=immediate
26090 fi
26091else
26092 # We cannot hardcode anything, or else we can only hardcode existing
26093 # directories.
26094 hardcode_action_GCJ=unsupported
26095fi
Reid Spencera773bd52006-08-04 18:18:08 +000026096{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26097echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026098
26099if test "$hardcode_action_GCJ" = relink; then
26100 # Fast installation is not supported
26101 enable_fast_install=no
26102elif test "$shlibpath_overrides_runpath" = yes ||
26103 test "$enable_shared" = no; then
26104 # Fast installation is not necessary
26105 enable_fast_install=needless
26106fi
26107
John Criswell47fdd832003-07-14 16:52:07 +000026108
26109# The else clause should only fire when bootstrapping the
26110# libtool distribution, otherwise you forgot to ship ltmain.sh
26111# with your package, and you will get complaints that there are
26112# no rules to generate ltmain.sh.
26113if test -f "$ltmain"; then
26114 # See if we are running on zsh, and set the options which allow our commands through
26115 # without removal of \ escapes.
26116 if test -n "${ZSH_VERSION+set}" ; then
26117 setopt NO_GLOB_SUBST
26118 fi
26119 # Now quote all the things that may contain metacharacters while being
26120 # careful not to overquote the AC_SUBSTed values. We take copies of the
26121 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026122 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 +000026123 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26126 deplibs_check_method reload_flag reload_cmds need_locks \
26127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26128 lt_cv_sys_global_symbol_to_c_name_address \
26129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26130 old_postinstall_cmds old_postuninstall_cmds \
26131 compiler_GCJ \
26132 CC_GCJ \
26133 LD_GCJ \
26134 lt_prog_compiler_wl_GCJ \
26135 lt_prog_compiler_pic_GCJ \
26136 lt_prog_compiler_static_GCJ \
26137 lt_prog_compiler_no_builtin_flag_GCJ \
26138 export_dynamic_flag_spec_GCJ \
26139 thread_safe_flag_spec_GCJ \
26140 whole_archive_flag_spec_GCJ \
26141 enable_shared_with_static_runtimes_GCJ \
26142 old_archive_cmds_GCJ \
26143 old_archive_from_new_cmds_GCJ \
26144 predep_objects_GCJ \
26145 postdep_objects_GCJ \
26146 predeps_GCJ \
26147 postdeps_GCJ \
26148 compiler_lib_search_path_GCJ \
26149 archive_cmds_GCJ \
26150 archive_expsym_cmds_GCJ \
26151 postinstall_cmds_GCJ \
26152 postuninstall_cmds_GCJ \
26153 old_archive_from_expsyms_cmds_GCJ \
26154 allow_undefined_flag_GCJ \
26155 no_undefined_flag_GCJ \
26156 export_symbols_cmds_GCJ \
26157 hardcode_libdir_flag_spec_GCJ \
26158 hardcode_libdir_flag_spec_ld_GCJ \
26159 hardcode_libdir_separator_GCJ \
26160 hardcode_automatic_GCJ \
26161 module_cmds_GCJ \
26162 module_expsym_cmds_GCJ \
26163 lt_cv_prog_compiler_c_o_GCJ \
26164 exclude_expsyms_GCJ \
26165 include_expsyms_GCJ; do
26166
26167 case $var in
26168 old_archive_cmds_GCJ | \
26169 old_archive_from_new_cmds_GCJ | \
26170 archive_cmds_GCJ | \
26171 archive_expsym_cmds_GCJ | \
26172 module_cmds_GCJ | \
26173 module_expsym_cmds_GCJ | \
26174 old_archive_from_expsyms_cmds_GCJ | \
26175 export_symbols_cmds_GCJ | \
26176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26177 postinstall_cmds | postuninstall_cmds | \
26178 old_postinstall_cmds | old_postuninstall_cmds | \
26179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26180 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026181 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 +000026182 ;;
26183 *)
26184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26185 ;;
26186 esac
26187 done
26188
26189 case $lt_echo in
26190 *'\$0 --fallback-echo"')
26191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26192 ;;
26193 esac
26194
26195cfgfile="$ofile"
26196
26197 cat <<__EOF__ >> "$cfgfile"
26198# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26199
26200# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26201
26202# Shell to use when invoking shell scripts.
26203SHELL=$lt_SHELL
26204
26205# Whether or not to build shared libraries.
26206build_libtool_libs=$enable_shared
26207
26208# Whether or not to build static libraries.
26209build_old_libs=$enable_static
26210
26211# Whether or not to add -lc for building shared libraries.
26212build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26213
26214# Whether or not to disallow shared libs when runtime libs are static
26215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26216
26217# Whether or not to optimize for fast installation.
26218fast_install=$enable_fast_install
26219
26220# The host system.
26221host_alias=$host_alias
26222host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026223host_os=$host_os
26224
26225# The build system.
26226build_alias=$build_alias
26227build=$build
26228build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026229
26230# An echo program that does not interpret backslashes.
26231echo=$lt_echo
26232
26233# The archiver.
26234AR=$lt_AR
26235AR_FLAGS=$lt_AR_FLAGS
26236
26237# A C compiler.
26238LTCC=$lt_LTCC
26239
Reid Spencera773bd52006-08-04 18:18:08 +000026240# LTCC compiler flags.
26241LTCFLAGS=$lt_LTCFLAGS
26242
John Criswell47fdd832003-07-14 16:52:07 +000026243# A language-specific compiler.
26244CC=$lt_compiler_GCJ
26245
26246# Is the compiler the GNU C compiler?
26247with_gcc=$GCC_GCJ
26248
26249# An ERE matcher.
26250EGREP=$lt_EGREP
26251
26252# The linker used to build libraries.
26253LD=$lt_LD_GCJ
26254
26255# Whether we need hard or soft links.
26256LN_S=$lt_LN_S
26257
26258# A BSD-compatible nm program.
26259NM=$lt_NM
26260
26261# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026262STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026263
26264# Used to examine libraries when file_magic_cmd begins "file"
26265MAGIC_CMD=$MAGIC_CMD
26266
26267# Used on cygwin: DLL creation program.
26268DLLTOOL="$DLLTOOL"
26269
26270# Used on cygwin: object dumper.
26271OBJDUMP="$OBJDUMP"
26272
26273# Used on cygwin: assembler.
26274AS="$AS"
26275
26276# The name of the directory that contains temporary libtool files.
26277objdir=$objdir
26278
26279# How to create reloadable object files.
26280reload_flag=$lt_reload_flag
26281reload_cmds=$lt_reload_cmds
26282
26283# How to pass a linker flag through the compiler.
26284wl=$lt_lt_prog_compiler_wl_GCJ
26285
26286# Object file suffix (normally "o").
26287objext="$ac_objext"
26288
26289# Old archive suffix (normally "a").
26290libext="$libext"
26291
26292# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026293shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026294
26295# Executable file suffix (normally "").
26296exeext="$exeext"
26297
26298# Additional compiler flags for building library objects.
26299pic_flag=$lt_lt_prog_compiler_pic_GCJ
26300pic_mode=$pic_mode
26301
26302# What is the maximum length of a command?
26303max_cmd_len=$lt_cv_sys_max_cmd_len
26304
26305# Does compiler simultaneously support -c and -o options?
26306compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26307
Reid Spencera773bd52006-08-04 18:18:08 +000026308# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026309need_locks=$lt_need_locks
26310
26311# Do we need the lib prefix for modules?
26312need_lib_prefix=$need_lib_prefix
26313
26314# Do we need a version for libraries?
26315need_version=$need_version
26316
26317# Whether dlopen is supported.
26318dlopen_support=$enable_dlopen
26319
26320# Whether dlopen of programs is supported.
26321dlopen_self=$enable_dlopen_self
26322
26323# Whether dlopen of statically linked programs is supported.
26324dlopen_self_static=$enable_dlopen_self_static
26325
26326# Compiler flag to prevent dynamic linking.
26327link_static_flag=$lt_lt_prog_compiler_static_GCJ
26328
26329# Compiler flag to turn off builtin functions.
26330no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26331
26332# Compiler flag to allow reflexive dlopens.
26333export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26334
26335# Compiler flag to generate shared objects directly from archives.
26336whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26337
26338# Compiler flag to generate thread-safe objects.
26339thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26340
26341# Library versioning type.
26342version_type=$version_type
26343
26344# Format of library name prefix.
26345libname_spec=$lt_libname_spec
26346
26347# List of archive names. First name is the real one, the rest are links.
26348# The last name is the one that the linker finds with -lNAME.
26349library_names_spec=$lt_library_names_spec
26350
26351# The coded name of the library, if different from the real name.
26352soname_spec=$lt_soname_spec
26353
26354# Commands used to build and install an old-style archive.
26355RANLIB=$lt_RANLIB
26356old_archive_cmds=$lt_old_archive_cmds_GCJ
26357old_postinstall_cmds=$lt_old_postinstall_cmds
26358old_postuninstall_cmds=$lt_old_postuninstall_cmds
26359
26360# Create an old-style archive from a shared archive.
26361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26362
26363# Create a temporary old-style archive to link instead of a shared archive.
26364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26365
26366# Commands used to build and install a shared archive.
26367archive_cmds=$lt_archive_cmds_GCJ
26368archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26369postinstall_cmds=$lt_postinstall_cmds
26370postuninstall_cmds=$lt_postuninstall_cmds
26371
26372# Commands used to build a loadable module (assumed same as above if empty)
26373module_cmds=$lt_module_cmds_GCJ
26374module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26375
26376# Commands to strip libraries.
26377old_striplib=$lt_old_striplib
26378striplib=$lt_striplib
26379
26380# Dependencies to place before the objects being linked to create a
26381# shared library.
26382predep_objects=$lt_predep_objects_GCJ
26383
26384# Dependencies to place after the objects being linked to create a
26385# shared library.
26386postdep_objects=$lt_postdep_objects_GCJ
26387
26388# Dependencies to place before the objects being linked to create a
26389# shared library.
26390predeps=$lt_predeps_GCJ
26391
26392# Dependencies to place after the objects being linked to create a
26393# shared library.
26394postdeps=$lt_postdeps_GCJ
26395
26396# The library search path used internally by the compiler when linking
26397# a shared library.
26398compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26399
26400# Method to check whether dependent libraries are shared objects.
26401deplibs_check_method=$lt_deplibs_check_method
26402
26403# Command to use when deplibs_check_method == file_magic.
26404file_magic_cmd=$lt_file_magic_cmd
26405
26406# Flag that allows shared libraries with undefined symbols to be built.
26407allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26408
26409# Flag that forces no undefined symbols.
26410no_undefined_flag=$lt_no_undefined_flag_GCJ
26411
26412# Commands used to finish a libtool library installation in a directory.
26413finish_cmds=$lt_finish_cmds
26414
26415# Same as above, but a single script fragment to be evaled but not shown.
26416finish_eval=$lt_finish_eval
26417
26418# Take the output of nm and produce a listing of raw symbols and C names.
26419global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26420
26421# Transform the output of nm in a proper C declaration
26422global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26423
26424# Transform the output of nm in a C name address pair
26425global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26426
26427# This is the shared library runtime path variable.
26428runpath_var=$runpath_var
26429
26430# This is the shared library path variable.
26431shlibpath_var=$shlibpath_var
26432
26433# Is shlibpath searched before the hard-coded library search path?
26434shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26435
26436# How to hardcode a shared library path into an executable.
26437hardcode_action=$hardcode_action_GCJ
26438
26439# Whether we should hardcode library paths into libraries.
26440hardcode_into_libs=$hardcode_into_libs
26441
26442# Flag to hardcode \$libdir into a binary during linking.
26443# This must work even if \$libdir does not exist.
26444hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26445
26446# If ld is used when linking, flag to hardcode \$libdir into
26447# a binary during linking. This must work even if \$libdir does
26448# not exist.
26449hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26450
26451# Whether we need a single -rpath flag with a separated argument.
26452hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26453
26454# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26455# resulting binary.
26456hardcode_direct=$hardcode_direct_GCJ
26457
26458# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26459# resulting binary.
26460hardcode_minus_L=$hardcode_minus_L_GCJ
26461
26462# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26463# the resulting binary.
26464hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26465
26466# Set to yes if building a shared library automatically hardcodes DIR into the library
26467# and all subsequent libraries and executables linked against it.
26468hardcode_automatic=$hardcode_automatic_GCJ
26469
26470# Variables whose values should be saved in libtool wrapper scripts and
26471# restored at relink time.
26472variables_saved_for_relink="$variables_saved_for_relink"
26473
26474# Whether libtool must link a program against all its dependency libraries.
26475link_all_deplibs=$link_all_deplibs_GCJ
26476
26477# Compile-time system search path for libraries
26478sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26479
26480# Run-time system search path for libraries
26481sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26482
26483# Fix the shell variable \$srcfile for the compiler.
26484fix_srcfile_path="$fix_srcfile_path_GCJ"
26485
26486# Set to yes if exported symbols are required.
26487always_export_symbols=$always_export_symbols_GCJ
26488
26489# The commands to list exported symbols.
26490export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26491
26492# The commands to extract the exported symbol list from a shared archive.
26493extract_expsyms_cmds=$lt_extract_expsyms_cmds
26494
26495# Symbols that should not be listed in the preloaded symbols.
26496exclude_expsyms=$lt_exclude_expsyms_GCJ
26497
26498# Symbols that must always be exported.
26499include_expsyms=$lt_include_expsyms_GCJ
26500
26501# ### END LIBTOOL TAG CONFIG: $tagname
26502
26503__EOF__
26504
26505
26506else
26507 # If there is no Makefile yet, we rely on a make rule to execute
26508 # `config.status --recheck' to rerun these tests and create the
26509 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26511 if test -f "$ltmain_in"; then
26512 test -f Makefile && make "$ltmain"
26513 fi
John Criswell47fdd832003-07-14 16:52:07 +000026514fi
26515
26516
26517ac_ext=c
26518ac_cpp='$CPP $CPPFLAGS'
26519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521ac_compiler_gnu=$ac_cv_c_compiler_gnu
26522
26523CC="$lt_save_CC"
26524
26525 else
26526 tagname=""
26527 fi
26528 ;;
26529
26530 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026531 ac_ext=c
26532ac_cpp='$CPP $CPPFLAGS'
26533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026536
26537
26538# Source file extension for RC test sources.
26539ac_ext=rc
26540
26541# Object file extension for compiled RC test sources.
26542objext=o
26543objext_RC=$objext
26544
26545# Code to be used in simple compile tests
26546lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26547
26548# Code to be used in simple link tests
26549lt_simple_link_test_code="$lt_simple_compile_test_code"
26550
26551# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26552
26553# If no C compiler was specified, use CC.
26554LTCC=${LTCC-"$CC"}
26555
Reid Spencera773bd52006-08-04 18:18:08 +000026556# If no C compiler flags were specified, use CFLAGS.
26557LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26558
John Criswell47fdd832003-07-14 16:52:07 +000026559# Allow CC to be a program name with arguments.
26560compiler=$CC
26561
26562
Reid Spencera773bd52006-08-04 18:18:08 +000026563# save warnings/boilerplate of simple test code
26564ac_outfile=conftest.$ac_objext
26565printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26566eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26567_lt_compiler_boilerplate=`cat conftest.err`
26568$rm conftest*
26569
26570ac_outfile=conftest.$ac_objext
26571printf "$lt_simple_link_test_code" >conftest.$ac_ext
26572eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26573_lt_linker_boilerplate=`cat conftest.err`
26574$rm conftest*
26575
26576
John Criswell47fdd832003-07-14 16:52:07 +000026577# Allow CC to be a program name with arguments.
26578lt_save_CC="$CC"
26579CC=${RC-"windres"}
26580compiler=$CC
26581compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026582for cc_temp in $compiler""; do
26583 case $cc_temp in
26584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26586 \-*) ;;
26587 *) break;;
26588 esac
26589done
26590cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26591
John Criswell47fdd832003-07-14 16:52:07 +000026592lt_cv_prog_compiler_c_o_RC=yes
26593
26594# The else clause should only fire when bootstrapping the
26595# libtool distribution, otherwise you forgot to ship ltmain.sh
26596# with your package, and you will get complaints that there are
26597# no rules to generate ltmain.sh.
26598if test -f "$ltmain"; then
26599 # See if we are running on zsh, and set the options which allow our commands through
26600 # without removal of \ escapes.
26601 if test -n "${ZSH_VERSION+set}" ; then
26602 setopt NO_GLOB_SUBST
26603 fi
26604 # Now quote all the things that may contain metacharacters while being
26605 # careful not to overquote the AC_SUBSTed values. We take copies of the
26606 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026607 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 +000026608 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026609 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26610 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26611 deplibs_check_method reload_flag reload_cmds need_locks \
26612 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26613 lt_cv_sys_global_symbol_to_c_name_address \
26614 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26615 old_postinstall_cmds old_postuninstall_cmds \
26616 compiler_RC \
26617 CC_RC \
26618 LD_RC \
26619 lt_prog_compiler_wl_RC \
26620 lt_prog_compiler_pic_RC \
26621 lt_prog_compiler_static_RC \
26622 lt_prog_compiler_no_builtin_flag_RC \
26623 export_dynamic_flag_spec_RC \
26624 thread_safe_flag_spec_RC \
26625 whole_archive_flag_spec_RC \
26626 enable_shared_with_static_runtimes_RC \
26627 old_archive_cmds_RC \
26628 old_archive_from_new_cmds_RC \
26629 predep_objects_RC \
26630 postdep_objects_RC \
26631 predeps_RC \
26632 postdeps_RC \
26633 compiler_lib_search_path_RC \
26634 archive_cmds_RC \
26635 archive_expsym_cmds_RC \
26636 postinstall_cmds_RC \
26637 postuninstall_cmds_RC \
26638 old_archive_from_expsyms_cmds_RC \
26639 allow_undefined_flag_RC \
26640 no_undefined_flag_RC \
26641 export_symbols_cmds_RC \
26642 hardcode_libdir_flag_spec_RC \
26643 hardcode_libdir_flag_spec_ld_RC \
26644 hardcode_libdir_separator_RC \
26645 hardcode_automatic_RC \
26646 module_cmds_RC \
26647 module_expsym_cmds_RC \
26648 lt_cv_prog_compiler_c_o_RC \
26649 exclude_expsyms_RC \
26650 include_expsyms_RC; do
26651
26652 case $var in
26653 old_archive_cmds_RC | \
26654 old_archive_from_new_cmds_RC | \
26655 archive_cmds_RC | \
26656 archive_expsym_cmds_RC | \
26657 module_cmds_RC | \
26658 module_expsym_cmds_RC | \
26659 old_archive_from_expsyms_cmds_RC | \
26660 export_symbols_cmds_RC | \
26661 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26662 postinstall_cmds | postuninstall_cmds | \
26663 old_postinstall_cmds | old_postuninstall_cmds | \
26664 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26665 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026666 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 +000026667 ;;
26668 *)
26669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26670 ;;
26671 esac
26672 done
26673
26674 case $lt_echo in
26675 *'\$0 --fallback-echo"')
26676 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26677 ;;
26678 esac
26679
26680cfgfile="$ofile"
26681
26682 cat <<__EOF__ >> "$cfgfile"
26683# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26684
26685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26686
26687# Shell to use when invoking shell scripts.
26688SHELL=$lt_SHELL
26689
26690# Whether or not to build shared libraries.
26691build_libtool_libs=$enable_shared
26692
26693# Whether or not to build static libraries.
26694build_old_libs=$enable_static
26695
26696# Whether or not to add -lc for building shared libraries.
26697build_libtool_need_lc=$archive_cmds_need_lc_RC
26698
26699# Whether or not to disallow shared libs when runtime libs are static
26700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26701
26702# Whether or not to optimize for fast installation.
26703fast_install=$enable_fast_install
26704
26705# The host system.
26706host_alias=$host_alias
26707host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026708host_os=$host_os
26709
26710# The build system.
26711build_alias=$build_alias
26712build=$build
26713build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026714
26715# An echo program that does not interpret backslashes.
26716echo=$lt_echo
26717
26718# The archiver.
26719AR=$lt_AR
26720AR_FLAGS=$lt_AR_FLAGS
26721
26722# A C compiler.
26723LTCC=$lt_LTCC
26724
Reid Spencera773bd52006-08-04 18:18:08 +000026725# LTCC compiler flags.
26726LTCFLAGS=$lt_LTCFLAGS
26727
John Criswell47fdd832003-07-14 16:52:07 +000026728# A language-specific compiler.
26729CC=$lt_compiler_RC
26730
26731# Is the compiler the GNU C compiler?
26732with_gcc=$GCC_RC
26733
26734# An ERE matcher.
26735EGREP=$lt_EGREP
26736
26737# The linker used to build libraries.
26738LD=$lt_LD_RC
26739
26740# Whether we need hard or soft links.
26741LN_S=$lt_LN_S
26742
26743# A BSD-compatible nm program.
26744NM=$lt_NM
26745
26746# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026747STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026748
26749# Used to examine libraries when file_magic_cmd begins "file"
26750MAGIC_CMD=$MAGIC_CMD
26751
26752# Used on cygwin: DLL creation program.
26753DLLTOOL="$DLLTOOL"
26754
26755# Used on cygwin: object dumper.
26756OBJDUMP="$OBJDUMP"
26757
26758# Used on cygwin: assembler.
26759AS="$AS"
26760
26761# The name of the directory that contains temporary libtool files.
26762objdir=$objdir
26763
26764# How to create reloadable object files.
26765reload_flag=$lt_reload_flag
26766reload_cmds=$lt_reload_cmds
26767
26768# How to pass a linker flag through the compiler.
26769wl=$lt_lt_prog_compiler_wl_RC
26770
26771# Object file suffix (normally "o").
26772objext="$ac_objext"
26773
26774# Old archive suffix (normally "a").
26775libext="$libext"
26776
26777# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026778shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026779
26780# Executable file suffix (normally "").
26781exeext="$exeext"
26782
26783# Additional compiler flags for building library objects.
26784pic_flag=$lt_lt_prog_compiler_pic_RC
26785pic_mode=$pic_mode
26786
26787# What is the maximum length of a command?
26788max_cmd_len=$lt_cv_sys_max_cmd_len
26789
26790# Does compiler simultaneously support -c and -o options?
26791compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26792
Reid Spencera773bd52006-08-04 18:18:08 +000026793# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026794need_locks=$lt_need_locks
26795
26796# Do we need the lib prefix for modules?
26797need_lib_prefix=$need_lib_prefix
26798
26799# Do we need a version for libraries?
26800need_version=$need_version
26801
26802# Whether dlopen is supported.
26803dlopen_support=$enable_dlopen
26804
26805# Whether dlopen of programs is supported.
26806dlopen_self=$enable_dlopen_self
26807
26808# Whether dlopen of statically linked programs is supported.
26809dlopen_self_static=$enable_dlopen_self_static
26810
26811# Compiler flag to prevent dynamic linking.
26812link_static_flag=$lt_lt_prog_compiler_static_RC
26813
26814# Compiler flag to turn off builtin functions.
26815no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26816
26817# Compiler flag to allow reflexive dlopens.
26818export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26819
26820# Compiler flag to generate shared objects directly from archives.
26821whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26822
26823# Compiler flag to generate thread-safe objects.
26824thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26825
26826# Library versioning type.
26827version_type=$version_type
26828
26829# Format of library name prefix.
26830libname_spec=$lt_libname_spec
26831
26832# List of archive names. First name is the real one, the rest are links.
26833# The last name is the one that the linker finds with -lNAME.
26834library_names_spec=$lt_library_names_spec
26835
26836# The coded name of the library, if different from the real name.
26837soname_spec=$lt_soname_spec
26838
26839# Commands used to build and install an old-style archive.
26840RANLIB=$lt_RANLIB
26841old_archive_cmds=$lt_old_archive_cmds_RC
26842old_postinstall_cmds=$lt_old_postinstall_cmds
26843old_postuninstall_cmds=$lt_old_postuninstall_cmds
26844
26845# Create an old-style archive from a shared archive.
26846old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26847
26848# Create a temporary old-style archive to link instead of a shared archive.
26849old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26850
26851# Commands used to build and install a shared archive.
26852archive_cmds=$lt_archive_cmds_RC
26853archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26854postinstall_cmds=$lt_postinstall_cmds
26855postuninstall_cmds=$lt_postuninstall_cmds
26856
26857# Commands used to build a loadable module (assumed same as above if empty)
26858module_cmds=$lt_module_cmds_RC
26859module_expsym_cmds=$lt_module_expsym_cmds_RC
26860
26861# Commands to strip libraries.
26862old_striplib=$lt_old_striplib
26863striplib=$lt_striplib
26864
26865# Dependencies to place before the objects being linked to create a
26866# shared library.
26867predep_objects=$lt_predep_objects_RC
26868
26869# Dependencies to place after the objects being linked to create a
26870# shared library.
26871postdep_objects=$lt_postdep_objects_RC
26872
26873# Dependencies to place before the objects being linked to create a
26874# shared library.
26875predeps=$lt_predeps_RC
26876
26877# Dependencies to place after the objects being linked to create a
26878# shared library.
26879postdeps=$lt_postdeps_RC
26880
26881# The library search path used internally by the compiler when linking
26882# a shared library.
26883compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26884
26885# Method to check whether dependent libraries are shared objects.
26886deplibs_check_method=$lt_deplibs_check_method
26887
26888# Command to use when deplibs_check_method == file_magic.
26889file_magic_cmd=$lt_file_magic_cmd
26890
26891# Flag that allows shared libraries with undefined symbols to be built.
26892allow_undefined_flag=$lt_allow_undefined_flag_RC
26893
26894# Flag that forces no undefined symbols.
26895no_undefined_flag=$lt_no_undefined_flag_RC
26896
26897# Commands used to finish a libtool library installation in a directory.
26898finish_cmds=$lt_finish_cmds
26899
26900# Same as above, but a single script fragment to be evaled but not shown.
26901finish_eval=$lt_finish_eval
26902
26903# Take the output of nm and produce a listing of raw symbols and C names.
26904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26905
26906# Transform the output of nm in a proper C declaration
26907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26908
26909# Transform the output of nm in a C name address pair
26910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26911
26912# This is the shared library runtime path variable.
26913runpath_var=$runpath_var
26914
26915# This is the shared library path variable.
26916shlibpath_var=$shlibpath_var
26917
26918# Is shlibpath searched before the hard-coded library search path?
26919shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26920
26921# How to hardcode a shared library path into an executable.
26922hardcode_action=$hardcode_action_RC
26923
26924# Whether we should hardcode library paths into libraries.
26925hardcode_into_libs=$hardcode_into_libs
26926
26927# Flag to hardcode \$libdir into a binary during linking.
26928# This must work even if \$libdir does not exist.
26929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26930
26931# If ld is used when linking, flag to hardcode \$libdir into
26932# a binary during linking. This must work even if \$libdir does
26933# not exist.
26934hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26935
26936# Whether we need a single -rpath flag with a separated argument.
26937hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26938
26939# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26940# resulting binary.
26941hardcode_direct=$hardcode_direct_RC
26942
26943# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26944# resulting binary.
26945hardcode_minus_L=$hardcode_minus_L_RC
26946
26947# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26948# the resulting binary.
26949hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26950
26951# Set to yes if building a shared library automatically hardcodes DIR into the library
26952# and all subsequent libraries and executables linked against it.
26953hardcode_automatic=$hardcode_automatic_RC
26954
26955# Variables whose values should be saved in libtool wrapper scripts and
26956# restored at relink time.
26957variables_saved_for_relink="$variables_saved_for_relink"
26958
26959# Whether libtool must link a program against all its dependency libraries.
26960link_all_deplibs=$link_all_deplibs_RC
26961
26962# Compile-time system search path for libraries
26963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26964
26965# Run-time system search path for libraries
26966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26967
26968# Fix the shell variable \$srcfile for the compiler.
26969fix_srcfile_path="$fix_srcfile_path_RC"
26970
26971# Set to yes if exported symbols are required.
26972always_export_symbols=$always_export_symbols_RC
26973
26974# The commands to list exported symbols.
26975export_symbols_cmds=$lt_export_symbols_cmds_RC
26976
26977# The commands to extract the exported symbol list from a shared archive.
26978extract_expsyms_cmds=$lt_extract_expsyms_cmds
26979
26980# Symbols that should not be listed in the preloaded symbols.
26981exclude_expsyms=$lt_exclude_expsyms_RC
26982
26983# Symbols that must always be exported.
26984include_expsyms=$lt_include_expsyms_RC
26985
26986# ### END LIBTOOL TAG CONFIG: $tagname
26987
26988__EOF__
26989
26990
26991else
26992 # If there is no Makefile yet, we rely on a make rule to execute
26993 # `config.status --recheck' to rerun these tests and create the
26994 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026995 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26996 if test -f "$ltmain_in"; then
26997 test -f Makefile && make "$ltmain"
26998 fi
John Criswell47fdd832003-07-14 16:52:07 +000026999fi
27000
27001
27002ac_ext=c
27003ac_cpp='$CPP $CPPFLAGS'
27004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27006ac_compiler_gnu=$ac_cv_c_compiler_gnu
27007
27008CC="$lt_save_CC"
27009
27010 ;;
27011
27012 *)
27013 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27014echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27015 { (exit 1); exit 1; }; }
27016 ;;
27017 esac
27018
27019 # Append the new tag name to the list of available tags.
27020 if test -n "$tagname" ; then
27021 available_tags="$available_tags $tagname"
27022 fi
27023 fi
27024 done
27025 IFS="$lt_save_ifs"
27026
27027 # Now substitute the updated list of available tags.
27028 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27029 mv "${ofile}T" "$ofile"
27030 chmod +x "$ofile"
27031 else
27032 rm -f "${ofile}T"
27033 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27034echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27035 { (exit 1); exit 1; }; }
27036 fi
27037fi
John Criswell7a73b802003-06-30 21:59:07 +000027038
27039
27040
27041# This can be used to rebuild libtool when needed
27042LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27043
27044# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027045LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027046
27047# Prevent multiple expansion
27048
27049
27050
John Criswell47fdd832003-07-14 16:52:07 +000027051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027068
Reid Spencer582a23c2004-12-29 07:07:57 +000027069if test "$lt_cv_dlopen_self" = "yes" ; then
27070
27071cat >>confdefs.h <<\_ACEOF
27072#define CAN_DLOPEN_SELF 1
27073_ACEOF
27074
27075fi
27076
Reid Spencer7931a782004-12-27 06:15:02 +000027077if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027078 LLVMGCC="llvm-gcc${EXEEXT}"
27079 LLVMGXX="llvm-g++${EXEEXT}"
27080 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27081set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027084if test "${ac_cv_path_LLVMGCC+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087 case $LLVMGCC in
27088 [\\/]* | ?:[\\/]*)
27089 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27090 ;;
27091 *)
27092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093for as_dir in $PATH
27094do
27095 IFS=$as_save_IFS
27096 test -z "$as_dir" && as_dir=.
27097 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027098 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 +000027099 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27101 break 2
27102 fi
27103done
27104done
Reid Spencera773bd52006-08-04 18:18:08 +000027105IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027106
Reid Spencer59473af2004-12-25 07:31:29 +000027107 ;;
27108esac
27109fi
27110LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027111if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027112 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27113echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027114else
Reid Spencera773bd52006-08-04 18:18:08 +000027115 { echo "$as_me:$LINENO: result: no" >&5
27116echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027117fi
27118
Reid Spencera773bd52006-08-04 18:18:08 +000027119
Reid Spencerc84492c2005-06-02 22:34:49 +000027120 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27121set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027124if test "${ac_cv_path_LLVMGXX+set}" = set; then
27125 echo $ECHO_N "(cached) $ECHO_C" >&6
27126else
27127 case $LLVMGXX in
27128 [\\/]* | ?:[\\/]*)
27129 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27130 ;;
27131 *)
27132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27133for as_dir in $PATH
27134do
27135 IFS=$as_save_IFS
27136 test -z "$as_dir" && as_dir=.
27137 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027138 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 +000027139 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27141 break 2
27142 fi
27143done
27144done
Reid Spencera773bd52006-08-04 18:18:08 +000027145IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027146
Reid Spencer59473af2004-12-25 07:31:29 +000027147 ;;
27148esac
27149fi
27150LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027151if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027152 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27153echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027154else
Reid Spencera773bd52006-08-04 18:18:08 +000027155 { echo "$as_me:$LINENO: result: no" >&5
27156echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027157fi
27158
Reid Spencera773bd52006-08-04 18:18:08 +000027159
Reid Spencer59473af2004-12-25 07:31:29 +000027160else
Devang Patel5d28b882007-12-04 22:54:47 +000027161 if test -z "$LLVMGCC"; then
27162 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27163 fi
27164 if test -z "$LLVMGXX"; then
27165 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27166 fi
Reid Spencer59473af2004-12-25 07:31:29 +000027167 LLVMGCC=$LLVMGCC
27168
27169 LLVMGXX=$LLVMGXX
27170
27171fi
27172
Reid Spencera773bd52006-08-04 18:18:08 +000027173{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27174echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027175
Reid Spencer86901802004-12-08 23:07:27 +000027176ICC=no
27177IXX=no
27178case $CC in
27179 icc*|icpc*)
27180 ICC=yes
27181 IXX=yes
27182 ;;
27183 *)
27184 ;;
27185esac
27186
Duraid Madina937c60a2006-02-15 07:57:42 +000027187if test "$GCC" != "yes" && test "$ICC" != "yes"
27188then
27189 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27190echo "$as_me: error: gcc|icc required but not found" >&2;}
27191 { (exit 1); exit 1; }; }
27192fi
27193
27194if test "$GXX" != "yes" && test "$IXX" != "yes"
27195then
27196 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27197echo "$as_me: error: g++|icc required but not found" >&2;}
27198 { (exit 1); exit 1; }; }
27199fi
27200
Reid Spencer86901802004-12-08 23:07:27 +000027201if test "$GCC" = "yes"
27202then
Chris Lattner399c7c72008-02-05 19:43:53 +000027203 cat >conftest.$ac_ext <<_ACEOF
27204#if !defined(__GNUC__) || __GNUC__ < 3
27205#error Unsupported GCC version
27206#endif
27207
27208_ACEOF
27209rm -f conftest.$ac_objext
27210if { (ac_try="$ac_compile"
27211case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27214esac
27215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27217 ac_status=$?
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027222 (exit $ac_status); } &&
27223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27227esac
27228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest.$ac_objext'
27234 { (case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27237esac
27238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_try") 2>&5
27240 ac_status=$?
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027243 :
27244else
27245 echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027249echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27250 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027251fi
27252
27253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027254fi
27255
27256if test -z "$llvm_cv_gnu_make_command"
27257then
27258 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27259echo "$as_me: error: GNU Make required but not found" >&2;}
27260 { (exit 1); exit 1; }; }
27261fi
27262
Reid Spencera773bd52006-08-04 18:18:08 +000027263{ echo "$as_me:$LINENO: result: ok" >&5
27264echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027265
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027266
John Criswell7a73b802003-06-30 21:59:07 +000027267
Reid Spencera773bd52006-08-04 18:18:08 +000027268{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27269echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027270if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27272else
27273 ac_check_lib_save_LIBS=$LIBS
27274LIBS="-lelf $LIBS"
27275cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027276/* confdefs.h. */
27277_ACEOF
27278cat confdefs.h >>conftest.$ac_ext
27279cat >>conftest.$ac_ext <<_ACEOF
27280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027281
Reid Spencera773bd52006-08-04 18:18:08 +000027282/* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027285#ifdef __cplusplus
27286extern "C"
27287#endif
John Criswell7a73b802003-06-30 21:59:07 +000027288char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027289int
27290main ()
27291{
Reid Spencera773bd52006-08-04 18:18:08 +000027292return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027293 ;
27294 return 0;
27295}
27296_ACEOF
27297rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027298if { (ac_try="$ac_link"
27299case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27302esac
27303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027305 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027310 (exit $ac_status); } &&
27311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27312 { (case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27315esac
27316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_try") 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest$ac_exeext'
27322 { (case "(($ac_try" in
27323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324 *) ac_try_echo=$ac_try;;
27325esac
27326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327 (eval "$ac_try") 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027331 ac_cv_lib_elf_elf_begin=yes
27332else
27333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027334sed 's/^/| /' conftest.$ac_ext >&5
27335
Reid Spencera773bd52006-08-04 18:18:08 +000027336 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027337fi
Reid Spencera773bd52006-08-04 18:18:08 +000027338
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027339rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027340 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027341LIBS=$ac_check_lib_save_LIBS
27342fi
Reid Spencera773bd52006-08-04 18:18:08 +000027343{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27344echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027345if test $ac_cv_lib_elf_elf_begin = yes; then
27346 cat >>confdefs.h <<_ACEOF
27347#define HAVE_LIBELF 1
27348_ACEOF
27349
27350 LIBS="-lelf $LIBS"
27351
27352fi
27353
27354
Reid Spencera773bd52006-08-04 18:18:08 +000027355{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27356echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027357if test "${ac_cv_lib_m_sin+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27359else
27360 ac_check_lib_save_LIBS=$LIBS
27361LIBS="-lm $LIBS"
27362cat >conftest.$ac_ext <<_ACEOF
27363/* confdefs.h. */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h. */
27368
Reid Spencera773bd52006-08-04 18:18:08 +000027369/* Override any GCC internal prototype to avoid an error.
27370 Use char because int might match the return type of a GCC
27371 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027372#ifdef __cplusplus
27373extern "C"
27374#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027375char sin ();
27376int
27377main ()
27378{
Reid Spencera773bd52006-08-04 18:18:08 +000027379return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027380 ;
27381 return 0;
27382}
27383_ACEOF
27384rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027385if { (ac_try="$ac_link"
27386case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27389esac
27390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027392 ac_status=$?
27393 grep -v '^ *+' conftest.er1 >conftest.err
27394 rm -f conftest.er1
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27402esac
27403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
27409 { (case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27412esac
27413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_try") 2>&5
27415 ac_status=$?
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027418 ac_cv_lib_m_sin=yes
27419else
27420 echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
Reid Spencera773bd52006-08-04 18:18:08 +000027423 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027424fi
Reid Spencera773bd52006-08-04 18:18:08 +000027425
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027426rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027427 conftest$ac_exeext conftest.$ac_ext
27428LIBS=$ac_check_lib_save_LIBS
27429fi
Reid Spencera773bd52006-08-04 18:18:08 +000027430{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27431echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027432if test $ac_cv_lib_m_sin = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434#define HAVE_LIBM 1
27435_ACEOF
27436
27437 LIBS="-lm $LIBS"
27438
27439fi
27440
Jeff Cohen28783c32007-01-12 18:22:38 +000027441if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027442
Reid Spencera773bd52006-08-04 18:18:08 +000027443{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27444echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027445if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027446 echo $ECHO_N "(cached) $ECHO_C" >&6
27447else
27448 ac_check_lib_save_LIBS=$LIBS
27449LIBS="-limagehlp $LIBS"
27450cat >conftest.$ac_ext <<_ACEOF
27451/* confdefs.h. */
27452_ACEOF
27453cat confdefs.h >>conftest.$ac_ext
27454cat >>conftest.$ac_ext <<_ACEOF
27455/* end confdefs.h. */
27456
Reid Spencer48fdf912006-06-01 19:03:21 +000027457
Reid Spencer484fc8e2006-06-01 16:55:59 +000027458int
27459main ()
27460{
Reid Spencera773bd52006-08-04 18:18:08 +000027461return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027462 ;
27463 return 0;
27464}
27465_ACEOF
27466rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027467if { (ac_try="$ac_link"
27468case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27471esac
27472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027474 ac_status=$?
27475 grep -v '^ *+' conftest.er1 >conftest.err
27476 rm -f conftest.er1
27477 cat conftest.err >&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027479 (exit $ac_status); } &&
27480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; } &&
27490 { ac_try='test -s conftest$ac_exeext'
27491 { (case "(($ac_try" in
27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493 *) ac_try_echo=$ac_try;;
27494esac
27495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496 (eval "$ac_try") 2>&5
27497 ac_status=$?
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027500 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027501else
27502 echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
Reid Spencera773bd52006-08-04 18:18:08 +000027505 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027506fi
Reid Spencera773bd52006-08-04 18:18:08 +000027507
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027508rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027509 conftest$ac_exeext conftest.$ac_ext
27510LIBS=$ac_check_lib_save_LIBS
27511fi
Reid Spencera773bd52006-08-04 18:18:08 +000027512{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27513echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027514if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027515 cat >>confdefs.h <<_ACEOF
27516#define HAVE_LIBIMAGEHLP 1
27517_ACEOF
27518
27519 LIBS="-limagehlp $LIBS"
27520
27521fi
27522
27523
Reid Spencera773bd52006-08-04 18:18:08 +000027524{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27525echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027526if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027527 echo $ECHO_N "(cached) $ECHO_C" >&6
27528else
27529 ac_check_lib_save_LIBS=$LIBS
27530LIBS="-lpsapi $LIBS"
27531cat >conftest.$ac_ext <<_ACEOF
27532/* confdefs.h. */
27533_ACEOF
27534cat confdefs.h >>conftest.$ac_ext
27535cat >>conftest.$ac_ext <<_ACEOF
27536/* end confdefs.h. */
27537
Reid Spencer48fdf912006-06-01 19:03:21 +000027538
Reid Spencer484fc8e2006-06-01 16:55:59 +000027539int
27540main ()
27541{
Reid Spencera773bd52006-08-04 18:18:08 +000027542return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027543 ;
27544 return 0;
27545}
27546_ACEOF
27547rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027548if { (ac_try="$ac_link"
27549case "(($ac_try" in
27550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551 *) ac_try_echo=$ac_try;;
27552esac
27553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027555 ac_status=$?
27556 grep -v '^ *+' conftest.er1 >conftest.err
27557 rm -f conftest.er1
27558 cat conftest.err >&5
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027560 (exit $ac_status); } &&
27561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27562 { (case "(($ac_try" in
27563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564 *) ac_try_echo=$ac_try;;
27565esac
27566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567 (eval "$ac_try") 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; } &&
27571 { ac_try='test -s conftest$ac_exeext'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27578 ac_status=$?
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027581 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027582else
27583 echo "$as_me: failed program was:" >&5
27584sed 's/^/| /' conftest.$ac_ext >&5
27585
Reid Spencera773bd52006-08-04 18:18:08 +000027586 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027587fi
Reid Spencera773bd52006-08-04 18:18:08 +000027588
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027589rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027590 conftest$ac_exeext conftest.$ac_ext
27591LIBS=$ac_check_lib_save_LIBS
27592fi
Reid Spencera773bd52006-08-04 18:18:08 +000027593{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27594echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027595if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596 cat >>confdefs.h <<_ACEOF
27597#define HAVE_LIBPSAPI 1
27598_ACEOF
27599
27600 LIBS="-lpsapi $LIBS"
27601
27602fi
27603
27604fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027605
Reid Spencera773bd52006-08-04 18:18:08 +000027606{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27607echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027608if test "${ac_cv_search_dlopen+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27610else
27611 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027612cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027613/* confdefs.h. */
27614_ACEOF
27615cat confdefs.h >>conftest.$ac_ext
27616cat >>conftest.$ac_ext <<_ACEOF
27617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027618
Reid Spencera773bd52006-08-04 18:18:08 +000027619/* Override any GCC internal prototype to avoid an error.
27620 Use char because int might match the return type of a GCC
27621 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027622#ifdef __cplusplus
27623extern "C"
27624#endif
John Criswell7a73b802003-06-30 21:59:07 +000027625char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027626int
27627main ()
27628{
Reid Spencera773bd52006-08-04 18:18:08 +000027629return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027630 ;
27631 return 0;
27632}
27633_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027634for ac_lib in '' dl; do
27635 if test -z "$ac_lib"; then
27636 ac_res="none required"
27637 else
27638 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027640 fi
27641 rm -f conftest.$ac_objext conftest$ac_exeext
27642if { (ac_try="$ac_link"
27643case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027650 grep -v '^ *+' conftest.er1 >conftest.err
27651 rm -f conftest.er1
27652 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656 { (case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27659esac
27660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 (eval "$ac_try") 2>&5
27662 ac_status=$?
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest$ac_exeext'
27666 { (case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27669esac
27670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_try") 2>&5
27672 ac_status=$?
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027675 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027676else
27677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027678sed 's/^/| /' conftest.$ac_ext >&5
27679
Reid Spencera773bd52006-08-04 18:18:08 +000027680
John Criswell7a73b802003-06-30 21:59:07 +000027681fi
Reid Spencera773bd52006-08-04 18:18:08 +000027682
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027683rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027684 conftest$ac_exeext
27685 if test "${ac_cv_search_dlopen+set}" = set; then
27686 break
John Criswell7a73b802003-06-30 21:59:07 +000027687fi
Reid Spencera773bd52006-08-04 18:18:08 +000027688done
27689if test "${ac_cv_search_dlopen+set}" = set; then
27690 :
27691else
27692 ac_cv_search_dlopen=no
27693fi
27694rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027695LIBS=$ac_func_search_save_LIBS
27696fi
Reid Spencera773bd52006-08-04 18:18:08 +000027697{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27698echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27699ac_res=$ac_cv_search_dlopen
27700if test "$ac_res" != no; then
27701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027702
27703cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027704#define HAVE_DLOPEN 1
27705_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027706
27707else
Brian Gaekec45be042003-10-07 06:01:34 +000027708 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27709echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027710fi
27711
27712
Reid Spencera773bd52006-08-04 18:18:08 +000027713{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27714echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027715if test "${ac_cv_search_mallinfo+set}" = set; then
27716 echo $ECHO_N "(cached) $ECHO_C" >&6
27717else
27718 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027719cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027720/* confdefs.h. */
27721_ACEOF
27722cat confdefs.h >>conftest.$ac_ext
27723cat >>conftest.$ac_ext <<_ACEOF
27724/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027725
Reid Spencera773bd52006-08-04 18:18:08 +000027726/* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027729#ifdef __cplusplus
27730extern "C"
27731#endif
John Criswell7a73b802003-06-30 21:59:07 +000027732char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027733int
27734main ()
27735{
Reid Spencera773bd52006-08-04 18:18:08 +000027736return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027737 ;
27738 return 0;
27739}
27740_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027741for ac_lib in '' malloc; do
27742 if test -z "$ac_lib"; then
27743 ac_res="none required"
27744 else
27745 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027747 fi
27748 rm -f conftest.$ac_objext conftest$ac_exeext
27749if { (ac_try="$ac_link"
27750case "(($ac_try" in
27751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752 *) ac_try_echo=$ac_try;;
27753esac
27754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027757 grep -v '^ *+' conftest.er1 >conftest.err
27758 rm -f conftest.er1
27759 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027761 (exit $ac_status); } &&
27762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27763 { (case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27766esac
27767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_try") 2>&5
27769 ac_status=$?
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; } &&
27772 { ac_try='test -s conftest$ac_exeext'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027782 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027783else
27784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027785sed 's/^/| /' conftest.$ac_ext >&5
27786
Reid Spencera773bd52006-08-04 18:18:08 +000027787
John Criswell7a73b802003-06-30 21:59:07 +000027788fi
Reid Spencera773bd52006-08-04 18:18:08 +000027789
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027790rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027791 conftest$ac_exeext
27792 if test "${ac_cv_search_mallinfo+set}" = set; then
27793 break
John Criswell7a73b802003-06-30 21:59:07 +000027794fi
Reid Spencera773bd52006-08-04 18:18:08 +000027795done
27796if test "${ac_cv_search_mallinfo+set}" = set; then
27797 :
27798else
27799 ac_cv_search_mallinfo=no
27800fi
27801rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027802LIBS=$ac_func_search_save_LIBS
27803fi
Reid Spencera773bd52006-08-04 18:18:08 +000027804{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27805echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27806ac_res=$ac_cv_search_mallinfo
27807if test "$ac_res" != no; then
27808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027809
27810cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027811#define HAVE_MALLINFO 1
27812_ACEOF
27813
27814fi
27815
27816
Reid Spencer0a262ba2005-08-24 10:07:20 +000027817if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027818
Reid Spencera773bd52006-08-04 18:18:08 +000027819{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27820echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027821if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-lpthread $LIBS"
27826cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
27832
Reid Spencera773bd52006-08-04 18:18:08 +000027833/* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027836#ifdef __cplusplus
27837extern "C"
27838#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027839char pthread_mutex_init ();
27840int
27841main ()
27842{
Reid Spencera773bd52006-08-04 18:18:08 +000027843return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027844 ;
27845 return 0;
27846}
27847_ACEOF
27848rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027849if { (ac_try="$ac_link"
27850case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27853esac
27854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027856 ac_status=$?
27857 grep -v '^ *+' conftest.er1 >conftest.err
27858 rm -f conftest.er1
27859 cat conftest.err >&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027861 (exit $ac_status); } &&
27862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27863 { (case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27866esac
27867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_try") 2>&5
27869 ac_status=$?
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; } &&
27872 { ac_try='test -s conftest$ac_exeext'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27879 ac_status=$?
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027882 ac_cv_lib_pthread_pthread_mutex_init=yes
27883else
27884 echo "$as_me: failed program was:" >&5
27885sed 's/^/| /' conftest.$ac_ext >&5
27886
Reid Spencera773bd52006-08-04 18:18:08 +000027887 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027888fi
Reid Spencera773bd52006-08-04 18:18:08 +000027889
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027890rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027891 conftest$ac_exeext conftest.$ac_ext
27892LIBS=$ac_check_lib_save_LIBS
27893fi
Reid Spencera773bd52006-08-04 18:18:08 +000027894{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27895echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027896if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27897 cat >>confdefs.h <<_ACEOF
27898#define HAVE_LIBPTHREAD 1
27899_ACEOF
27900
27901 LIBS="-lpthread $LIBS"
27902
27903fi
27904
Reid Spencera773bd52006-08-04 18:18:08 +000027905 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27906echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027907if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909else
27910 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027911cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027912/* confdefs.h. */
27913_ACEOF
27914cat confdefs.h >>conftest.$ac_ext
27915cat >>conftest.$ac_ext <<_ACEOF
27916/* end confdefs.h. */
27917
Reid Spencera773bd52006-08-04 18:18:08 +000027918/* Override any GCC internal prototype to avoid an error.
27919 Use char because int might match the return type of a GCC
27920 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027921#ifdef __cplusplus
27922extern "C"
27923#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027924char pthread_mutex_lock ();
27925int
27926main ()
27927{
Reid Spencera773bd52006-08-04 18:18:08 +000027928return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027929 ;
27930 return 0;
27931}
27932_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027933for ac_lib in '' pthread; do
27934 if test -z "$ac_lib"; then
27935 ac_res="none required"
27936 else
27937 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027939 fi
27940 rm -f conftest.$ac_objext conftest$ac_exeext
27941if { (ac_try="$ac_link"
27942case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27945esac
27946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027949 grep -v '^ *+' conftest.er1 >conftest.err
27950 rm -f conftest.er1
27951 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27958esac
27959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest$ac_exeext'
27965 { (case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27968esac
27969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_try") 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027974 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027975else
27976 echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
Reid Spencera773bd52006-08-04 18:18:08 +000027979
Brian Gaeke5f268f72003-12-05 19:29:01 +000027980fi
Reid Spencera773bd52006-08-04 18:18:08 +000027981
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027982rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027983 conftest$ac_exeext
27984 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27985 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027986fi
Reid Spencera773bd52006-08-04 18:18:08 +000027987done
27988if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27989 :
27990else
27991 ac_cv_search_pthread_mutex_lock=no
27992fi
27993rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027994LIBS=$ac_func_search_save_LIBS
27995fi
Reid Spencera773bd52006-08-04 18:18:08 +000027996{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27997echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27998ac_res=$ac_cv_search_pthread_mutex_lock
27999if test "$ac_res" != no; then
28000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028001
John Criswell40468462004-09-24 21:19:06 +000028002cat >>confdefs.h <<\_ACEOF
28003#define HAVE_PTHREAD_MUTEX_LOCK 1
28004_ACEOF
28005
28006fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028007
Reid Spencer0a262ba2005-08-24 10:07:20 +000028008fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028009
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028010
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028011# Check whether --with-udis86 was given.
28012if test "${with_udis86+set}" = set; then
28013 withval=$with_udis86;
28014 USE_UDIS86=1
28015
28016 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028017 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028018 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28019 esac
28020
28021{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28022echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28023if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025else
28026 ac_check_lib_save_LIBS=$LIBS
28027LIBS="-ludis86 $LIBS"
28028cat >conftest.$ac_ext <<_ACEOF
28029/* confdefs.h. */
28030_ACEOF
28031cat confdefs.h >>conftest.$ac_ext
28032cat >>conftest.$ac_ext <<_ACEOF
28033/* end confdefs.h. */
28034
28035/* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28038#ifdef __cplusplus
28039extern "C"
28040#endif
28041char ud_init ();
28042int
28043main ()
28044{
28045return ud_init ();
28046 ;
28047 return 0;
28048}
28049_ACEOF
28050rm -f conftest.$ac_objext conftest$ac_exeext
28051if { (ac_try="$ac_link"
28052case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28055esac
28056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28058 ac_status=$?
28059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028063 (exit $ac_status); } &&
28064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065 { (case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_try") 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest$ac_exeext'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028084 ac_cv_lib_udis86_ud_init=yes
28085else
28086 echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089 ac_cv_lib_udis86_ud_init=no
28090fi
28091
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028092rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028093 conftest$ac_exeext conftest.$ac_ext
28094LIBS=$ac_check_lib_save_LIBS
28095fi
28096{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28097echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28098if test $ac_cv_lib_udis86_ud_init = yes; then
28099 cat >>confdefs.h <<_ACEOF
28100#define HAVE_LIBUDIS86 1
28101_ACEOF
28102
28103 LIBS="-ludis86 $LIBS"
28104
28105else
28106
28107 echo "Error! You need to have libudis86 around."
28108 exit -1
28109
28110fi
28111
28112
28113else
28114 USE_UDIS86=0
28115
28116fi
28117
28118
28119cat >>confdefs.h <<_ACEOF
28120#define USE_UDIS86 $USE_UDIS86
28121_ACEOF
28122
28123
28124
Reid Spencer59473af2004-12-25 07:31:29 +000028125
28126
28127
28128
28129
28130ac_header_dirent=no
28131for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28132 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028133{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28134echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028136 echo $ECHO_N "(cached) $ECHO_C" >&6
28137else
28138 cat >conftest.$ac_ext <<_ACEOF
28139/* confdefs.h. */
28140_ACEOF
28141cat confdefs.h >>conftest.$ac_ext
28142cat >>conftest.$ac_ext <<_ACEOF
28143/* end confdefs.h. */
28144#include <sys/types.h>
28145#include <$ac_hdr>
28146
28147int
28148main ()
28149{
28150if ((DIR *) 0)
28151return 0;
28152 ;
28153 return 0;
28154}
28155_ACEOF
28156rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028157if { (ac_try="$ac_compile"
28158case "(($ac_try" in
28159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160 *) ac_try_echo=$ac_try;;
28161esac
28162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028164 ac_status=$?
28165 grep -v '^ *+' conftest.er1 >conftest.err
28166 rm -f conftest.er1
28167 cat conftest.err >&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028169 (exit $ac_status); } &&
28170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28171 { (case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_try") 2>&5
28177 ac_status=$?
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); }; } &&
28180 { ac_try='test -s conftest.$ac_objext'
28181 { (case "(($ac_try" in
28182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183 *) ac_try_echo=$ac_try;;
28184esac
28185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186 (eval "$ac_try") 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028190 eval "$as_ac_Header=yes"
28191else
28192 echo "$as_me: failed program was:" >&5
28193sed 's/^/| /' conftest.$ac_ext >&5
28194
Reid Spencera773bd52006-08-04 18:18:08 +000028195 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028196fi
Reid Spencera773bd52006-08-04 18:18:08 +000028197
28198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028199fi
Reid Spencera773bd52006-08-04 18:18:08 +000028200ac_res=`eval echo '${'$as_ac_Header'}'`
28201 { echo "$as_me:$LINENO: result: $ac_res" >&5
28202echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028203if test `eval echo '${'$as_ac_Header'}'` = yes; then
28204 cat >>confdefs.h <<_ACEOF
28205#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28206_ACEOF
28207
28208ac_header_dirent=$ac_hdr; break
28209fi
28210
28211done
28212# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28213if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028214 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28215echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028216if test "${ac_cv_search_opendir+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28218else
28219 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
28226
Reid Spencera773bd52006-08-04 18:18:08 +000028227/* Override any GCC internal prototype to avoid an error.
28228 Use char because int might match the return type of a GCC
28229 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028230#ifdef __cplusplus
28231extern "C"
28232#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028233char opendir ();
28234int
28235main ()
28236{
Reid Spencera773bd52006-08-04 18:18:08 +000028237return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028238 ;
28239 return 0;
28240}
28241_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028242for ac_lib in '' dir; do
28243 if test -z "$ac_lib"; then
28244 ac_res="none required"
28245 else
28246 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028248 fi
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250if { (ac_try="$ac_link"
28251case "(($ac_try" in
28252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253 *) ac_try_echo=$ac_try;;
28254esac
28255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028257 ac_status=$?
28258 grep -v '^ *+' conftest.er1 >conftest.err
28259 rm -f conftest.er1
28260 cat conftest.err >&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028262 (exit $ac_status); } &&
28263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28267esac
28268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_try") 2>&5
28270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; } &&
28273 { ac_try='test -s conftest$ac_exeext'
28274 { (case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277esac
28278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_try") 2>&5
28280 ac_status=$?
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028283 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028284else
28285 echo "$as_me: failed program was:" >&5
28286sed 's/^/| /' conftest.$ac_ext >&5
28287
Reid Spencera773bd52006-08-04 18:18:08 +000028288
Reid Spencer59473af2004-12-25 07:31:29 +000028289fi
Reid Spencera773bd52006-08-04 18:18:08 +000028290
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028291rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028292 conftest$ac_exeext
28293 if test "${ac_cv_search_opendir+set}" = set; then
28294 break
Reid Spencer59473af2004-12-25 07:31:29 +000028295fi
Reid Spencera773bd52006-08-04 18:18:08 +000028296done
28297if test "${ac_cv_search_opendir+set}" = set; then
28298 :
28299else
28300 ac_cv_search_opendir=no
28301fi
28302rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028303LIBS=$ac_func_search_save_LIBS
28304fi
Reid Spencera773bd52006-08-04 18:18:08 +000028305{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28306echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28307ac_res=$ac_cv_search_opendir
28308if test "$ac_res" != no; then
28309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028310
28311fi
28312
28313else
Reid Spencera773bd52006-08-04 18:18:08 +000028314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028316if test "${ac_cv_search_opendir+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028320cat >conftest.$ac_ext <<_ACEOF
28321/* confdefs.h. */
28322_ACEOF
28323cat confdefs.h >>conftest.$ac_ext
28324cat >>conftest.$ac_ext <<_ACEOF
28325/* end confdefs.h. */
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327/* Override any GCC internal prototype to avoid an error.
28328 Use char because int might match the return type of a GCC
28329 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028330#ifdef __cplusplus
28331extern "C"
28332#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028333char opendir ();
28334int
28335main ()
28336{
Reid Spencera773bd52006-08-04 18:18:08 +000028337return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028338 ;
28339 return 0;
28340}
28341_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028342for ac_lib in '' x; do
28343 if test -z "$ac_lib"; then
28344 ac_res="none required"
28345 else
28346 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028348 fi
28349 rm -f conftest.$ac_objext conftest$ac_exeext
28350if { (ac_try="$ac_link"
28351case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28354esac
28355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028357 ac_status=$?
28358 grep -v '^ *+' conftest.er1 >conftest.err
28359 rm -f conftest.er1
28360 cat conftest.err >&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028362 (exit $ac_status); } &&
28363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28364 { (case "(($ac_try" in
28365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366 *) ac_try_echo=$ac_try;;
28367esac
28368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_try") 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; } &&
28373 { ac_try='test -s conftest$ac_exeext'
28374 { (case "(($ac_try" in
28375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376 *) ac_try_echo=$ac_try;;
28377esac
28378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28379 (eval "$ac_try") 2>&5
28380 ac_status=$?
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028383 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028384else
28385 echo "$as_me: failed program was:" >&5
28386sed 's/^/| /' conftest.$ac_ext >&5
28387
Reid Spencera773bd52006-08-04 18:18:08 +000028388
Reid Spencer59473af2004-12-25 07:31:29 +000028389fi
Reid Spencera773bd52006-08-04 18:18:08 +000028390
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028391rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028392 conftest$ac_exeext
28393 if test "${ac_cv_search_opendir+set}" = set; then
28394 break
Reid Spencer59473af2004-12-25 07:31:29 +000028395fi
Reid Spencera773bd52006-08-04 18:18:08 +000028396done
28397if test "${ac_cv_search_opendir+set}" = set; then
28398 :
28399else
28400 ac_cv_search_opendir=no
28401fi
28402rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028403LIBS=$ac_func_search_save_LIBS
28404fi
Reid Spencera773bd52006-08-04 18:18:08 +000028405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28407ac_res=$ac_cv_search_opendir
28408if test "$ac_res" != no; then
28409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028410
28411fi
28412
28413fi
28414
Reid Spencera773bd52006-08-04 18:18:08 +000028415{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28416echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028417if test "${ac_cv_header_mmap_anon+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420 ac_ext=c
28421ac_cpp='$CPP $CPPFLAGS'
28422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424ac_compiler_gnu=$ac_cv_c_compiler_gnu
28425
28426 cat >conftest.$ac_ext <<_ACEOF
28427/* confdefs.h. */
28428_ACEOF
28429cat confdefs.h >>conftest.$ac_ext
28430cat >>conftest.$ac_ext <<_ACEOF
28431/* end confdefs.h. */
28432#include <sys/mman.h>
28433#include <unistd.h>
28434#include <fcntl.h>
28435int
28436main ()
28437{
28438mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28439 ;
28440 return 0;
28441}
28442_ACEOF
28443rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028444if { (ac_try="$ac_compile"
28445case "(($ac_try" in
28446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447 *) ac_try_echo=$ac_try;;
28448esac
28449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028451 ac_status=$?
28452 grep -v '^ *+' conftest.er1 >conftest.err
28453 rm -f conftest.er1
28454 cat conftest.err >&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028456 (exit $ac_status); } &&
28457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28458 { (case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28461esac
28462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_try") 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest.$ac_objext'
28468 { (case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28471esac
28472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_try") 2>&5
28474 ac_status=$?
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028477 ac_cv_header_mmap_anon=yes
28478else
28479 echo "$as_me: failed program was:" >&5
28480sed 's/^/| /' conftest.$ac_ext >&5
28481
Reid Spencera773bd52006-08-04 18:18:08 +000028482 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028483fi
Reid Spencera773bd52006-08-04 18:18:08 +000028484
28485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028486 ac_ext=c
28487ac_cpp='$CPP $CPPFLAGS'
28488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28490ac_compiler_gnu=$ac_cv_c_compiler_gnu
28491
28492
28493fi
Reid Spencera773bd52006-08-04 18:18:08 +000028494{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28495echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028496if test "$ac_cv_header_mmap_anon" = yes; then
28497
28498cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028499#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028500_ACEOF
28501
28502fi
28503
Reid Spencera773bd52006-08-04 18:18:08 +000028504{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28505echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028506if test "${ac_cv_header_stat_broken+set}" = set; then
28507 echo $ECHO_N "(cached) $ECHO_C" >&6
28508else
28509 cat >conftest.$ac_ext <<_ACEOF
28510/* confdefs.h. */
28511_ACEOF
28512cat confdefs.h >>conftest.$ac_ext
28513cat >>conftest.$ac_ext <<_ACEOF
28514/* end confdefs.h. */
28515#include <sys/types.h>
28516#include <sys/stat.h>
28517
Reid Spencera773bd52006-08-04 18:18:08 +000028518#if defined S_ISBLK && defined S_IFDIR
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028519# if S_ISBLK (S_IFDIR)
28520You lose.
28521# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028522#endif
28523
Reid Spencera773bd52006-08-04 18:18:08 +000028524#if defined S_ISBLK && defined S_IFCHR
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028525# if S_ISBLK (S_IFCHR)
28526You lose.
28527# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028528#endif
28529
Reid Spencera773bd52006-08-04 18:18:08 +000028530#if defined S_ISLNK && defined S_IFREG
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028531# if S_ISLNK (S_IFREG)
28532You lose.
28533# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028534#endif
28535
Reid Spencera773bd52006-08-04 18:18:08 +000028536#if defined S_ISSOCK && defined S_IFREG
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028537# if S_ISSOCK (S_IFREG)
28538You lose.
28539# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028540#endif
28541
28542_ACEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544 $EGREP "You lose" >/dev/null 2>&1; then
28545 ac_cv_header_stat_broken=yes
Torok Edwincc499a42008-10-22 09:56:27 +000028546else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028547 ac_cv_header_stat_broken=no
Torok Edwincc499a42008-10-22 09:56:27 +000028548fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028549rm -f conftest*
Torok Edwincc499a42008-10-22 09:56:27 +000028550
Reid Spencer59473af2004-12-25 07:31:29 +000028551fi
Reid Spencera773bd52006-08-04 18:18:08 +000028552{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28553echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028554if test $ac_cv_header_stat_broken = yes; then
28555
28556cat >>confdefs.h <<\_ACEOF
28557#define STAT_MACROS_BROKEN 1
28558_ACEOF
28559
28560fi
28561
Reid Spencera773bd52006-08-04 18:18:08 +000028562{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28563echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028564if test "${ac_cv_header_stdc+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28566else
28567 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028573#include <stdlib.h>
28574#include <stdarg.h>
28575#include <string.h>
28576#include <float.h>
28577
John Criswell0c38eaf2003-09-10 15:17:25 +000028578int
28579main ()
28580{
28581
28582 ;
28583 return 0;
28584}
John Criswell7a73b802003-06-30 21:59:07 +000028585_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028586rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028587if { (ac_try="$ac_compile"
28588case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest.$ac_objext'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28614esac
28615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028620 ac_cv_header_stdc=yes
28621else
28622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028623sed 's/^/| /' conftest.$ac_ext >&5
28624
Reid Spencera773bd52006-08-04 18:18:08 +000028625 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028626fi
Reid Spencera773bd52006-08-04 18:18:08 +000028627
28628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028629
28630if test $ac_cv_header_stdc = yes; then
28631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28632 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028633/* confdefs.h. */
28634_ACEOF
28635cat confdefs.h >>conftest.$ac_ext
28636cat >>conftest.$ac_ext <<_ACEOF
28637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028638#include <string.h>
28639
28640_ACEOF
28641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028642 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028643 :
28644else
28645 ac_cv_header_stdc=no
28646fi
28647rm -f conftest*
28648
28649fi
28650
28651if test $ac_cv_header_stdc = yes; then
28652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28653 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028654/* confdefs.h. */
28655_ACEOF
28656cat confdefs.h >>conftest.$ac_ext
28657cat >>conftest.$ac_ext <<_ACEOF
28658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028659#include <stdlib.h>
28660
28661_ACEOF
28662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028663 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028664 :
28665else
28666 ac_cv_header_stdc=no
28667fi
28668rm -f conftest*
28669
28670fi
28671
28672if test $ac_cv_header_stdc = yes; then
28673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28674 if test "$cross_compiling" = yes; then
28675 :
28676else
28677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028678/* confdefs.h. */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028683#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028684#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028685#if ((' ' & 0x0FF) == 0x020)
28686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28688#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028689# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028690 (('a' <= (c) && (c) <= 'i') \
28691 || ('j' <= (c) && (c) <= 'r') \
28692 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28694#endif
28695
28696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28697int
28698main ()
28699{
28700 int i;
28701 for (i = 0; i < 256; i++)
28702 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028703 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028704 return 2;
28705 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028706}
28707_ACEOF
28708rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028709if { (ac_try="$ac_link"
28710case "(($ac_try" in
28711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712 *) ac_try_echo=$ac_try;;
28713esac
28714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 :
28729else
28730 echo "$as_me: program exited with status $ac_status" >&5
28731echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028732sed 's/^/| /' conftest.$ac_ext >&5
28733
John Criswell7a73b802003-06-30 21:59:07 +000028734( exit $ac_status )
28735ac_cv_header_stdc=no
28736fi
Reid Spencera773bd52006-08-04 18:18:08 +000028737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28738fi
28739
28740
John Criswell7a73b802003-06-30 21:59:07 +000028741fi
28742fi
Reid Spencera773bd52006-08-04 18:18:08 +000028743{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28744echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028745if test $ac_cv_header_stdc = yes; then
28746
28747cat >>confdefs.h <<\_ACEOF
28748#define STDC_HEADERS 1
28749_ACEOF
28750
28751fi
28752
Reid Spencera773bd52006-08-04 18:18:08 +000028753{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28754echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028755if test "${ac_cv_header_sys_wait_h+set}" = set; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28757else
28758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028764#include <sys/types.h>
28765#include <sys/wait.h>
28766#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028767# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028768#endif
28769#ifndef WIFEXITED
28770# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28771#endif
28772
John Criswell7a73b802003-06-30 21:59:07 +000028773int
28774main ()
28775{
28776 int s;
28777 wait (&s);
28778 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28779 ;
28780 return 0;
28781}
28782_ACEOF
28783rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028784if { (ac_try="$ac_compile"
28785case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28788esac
28789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028792 grep -v '^ *+' conftest.er1 >conftest.err
28793 rm -f conftest.er1
28794 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028796 (exit $ac_status); } &&
28797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28798 { (case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28801esac
28802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_try") 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; } &&
28807 { ac_try='test -s conftest.$ac_objext'
28808 { (case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28811esac
28812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_try") 2>&5
28814 ac_status=$?
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028817 ac_cv_header_sys_wait_h=yes
28818else
28819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028820sed 's/^/| /' conftest.$ac_ext >&5
28821
Reid Spencera773bd52006-08-04 18:18:08 +000028822 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028823fi
Reid Spencera773bd52006-08-04 18:18:08 +000028824
28825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028826fi
Reid Spencera773bd52006-08-04 18:18:08 +000028827{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28828echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028829if test $ac_cv_header_sys_wait_h = yes; then
28830
28831cat >>confdefs.h <<\_ACEOF
28832#define HAVE_SYS_WAIT_H 1
28833_ACEOF
28834
28835fi
28836
Reid Spencera773bd52006-08-04 18:18:08 +000028837{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28838echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028839if test "${ac_cv_header_time+set}" = set; then
28840 echo $ECHO_N "(cached) $ECHO_C" >&6
28841else
28842 cat >conftest.$ac_ext <<_ACEOF
28843/* confdefs.h. */
28844_ACEOF
28845cat confdefs.h >>conftest.$ac_ext
28846cat >>conftest.$ac_ext <<_ACEOF
28847/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028848#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028849#include <sys/time.h>
28850#include <time.h>
28851
28852int
28853main ()
28854{
28855if ((struct tm *) 0)
28856return 0;
28857 ;
28858 return 0;
28859}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028860_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028861rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028862if { (ac_try="$ac_compile"
28863case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866esac
28867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028869 ac_status=$?
28870 grep -v '^ *+' conftest.er1 >conftest.err
28871 rm -f conftest.er1
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028874 (exit $ac_status); } &&
28875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876 { (case "(($ac_try" in
28877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878 *) ac_try_echo=$ac_try;;
28879esac
28880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881 (eval "$ac_try") 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest.$ac_objext'
28886 { (case "(($ac_try" in
28887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888 *) ac_try_echo=$ac_try;;
28889esac
28890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891 (eval "$ac_try") 2>&5
28892 ac_status=$?
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028895 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028896else
28897 echo "$as_me: failed program was:" >&5
28898sed 's/^/| /' conftest.$ac_ext >&5
28899
Reid Spencera773bd52006-08-04 18:18:08 +000028900 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028901fi
Reid Spencera773bd52006-08-04 18:18:08 +000028902
28903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028904fi
Reid Spencera773bd52006-08-04 18:18:08 +000028905{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28906echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028907if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028909cat >>confdefs.h <<\_ACEOF
28910#define TIME_WITH_SYS_TIME 1
28911_ACEOF
28912
28913fi
28914
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028915
Reid Spencer59473af2004-12-25 07:31:29 +000028916
28917
28918
28919
28920
28921
28922for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28923do
28924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028929 echo $ECHO_N "(cached) $ECHO_C" >&6
28930fi
Reid Spencera773bd52006-08-04 18:18:08 +000028931ac_res=`eval echo '${'$as_ac_Header'}'`
28932 { echo "$as_me:$LINENO: result: $ac_res" >&5
28933echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028934else
28935 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028938cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028939/* confdefs.h. */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028944$ac_includes_default
28945#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028946_ACEOF
28947rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028948if { (ac_try="$ac_compile"
28949case "(($ac_try" in
28950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951 *) ac_try_echo=$ac_try;;
28952esac
28953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028955 ac_status=$?
28956 grep -v '^ *+' conftest.er1 >conftest.err
28957 rm -f conftest.er1
28958 cat conftest.err >&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028960 (exit $ac_status); } &&
28961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28962 { (case "(($ac_try" in
28963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964 *) ac_try_echo=$ac_try;;
28965esac
28966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967 (eval "$ac_try") 2>&5
28968 ac_status=$?
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; } &&
28971 { ac_try='test -s conftest.$ac_objext'
28972 { (case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28975esac
28976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_try") 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028981 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028982else
28983 echo "$as_me: failed program was:" >&5
28984sed 's/^/| /' conftest.$ac_ext >&5
28985
Reid Spencera773bd52006-08-04 18:18:08 +000028986 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028987fi
Reid Spencera773bd52006-08-04 18:18:08 +000028988
28989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28991echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028992
Reid Spencer59473af2004-12-25 07:31:29 +000028993# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028994{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028996cat >conftest.$ac_ext <<_ACEOF
28997/* confdefs.h. */
28998_ACEOF
28999cat confdefs.h >>conftest.$ac_ext
29000cat >>conftest.$ac_ext <<_ACEOF
29001/* end confdefs.h. */
29002#include <$ac_header>
29003_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029004if { (ac_try="$ac_cpp conftest.$ac_ext"
29005case "(($ac_try" in
29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29008esac
29009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029011 ac_status=$?
29012 grep -v '^ *+' conftest.er1 >conftest.err
29013 rm -f conftest.er1
29014 cat conftest.err >&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029016 (exit $ac_status); } >/dev/null; then
29017 if test -s conftest.err; then
29018 ac_cpp_err=$ac_c_preproc_warn_flag
29019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29020 else
29021 ac_cpp_err=
29022 fi
29023else
29024 ac_cpp_err=yes
29025fi
29026if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029027 ac_header_preproc=yes
29028else
29029 echo "$as_me: failed program was:" >&5
29030sed 's/^/| /' conftest.$ac_ext >&5
29031
29032 ac_header_preproc=no
29033fi
Reid Spencera773bd52006-08-04 18:18:08 +000029034
Reid Spencer59473af2004-12-25 07:31:29 +000029035rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29037echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029038
29039# So? What about this header?
29040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29041 yes:no: )
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29046 ac_header_preproc=yes
29047 ;;
29048 no:yes:* )
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029061 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029062## ----------------------------------- ##
29063## Report this to llvmbugs@cs.uiuc.edu ##
29064## ----------------------------------- ##
29065_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029066 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029067 ;;
29068esac
Reid Spencera773bd52006-08-04 18:18:08 +000029069{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029072 echo $ECHO_N "(cached) $ECHO_C" >&6
29073else
29074 eval "$as_ac_Header=\$ac_header_preproc"
29075fi
Reid Spencera773bd52006-08-04 18:18:08 +000029076ac_res=`eval echo '${'$as_ac_Header'}'`
29077 { echo "$as_me:$LINENO: result: $ac_res" >&5
29078echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029079
29080fi
Reid Spencer59473af2004-12-25 07:31:29 +000029081if test `eval echo '${'$as_ac_Header'}'` = yes; then
29082 cat >>confdefs.h <<_ACEOF
29083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029084_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029085
29086fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029087
Reid Spencer59473af2004-12-25 07:31:29 +000029088done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029089
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029090
29091
Reid Spencer59473af2004-12-25 07:31:29 +000029092
29093
29094
29095
Reid Spencercdb08a32006-06-05 16:11:07 +000029096for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000029097do
29098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029103 echo $ECHO_N "(cached) $ECHO_C" >&6
29104fi
Reid Spencera773bd52006-08-04 18:18:08 +000029105ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029108else
29109 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029112cat >conftest.$ac_ext <<_ACEOF
29113/* confdefs.h. */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h. */
29118$ac_includes_default
29119#include <$ac_header>
29120_ACEOF
29121rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029122if { (ac_try="$ac_compile"
29123case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29126esac
29127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029129 ac_status=$?
29130 grep -v '^ *+' conftest.er1 >conftest.err
29131 rm -f conftest.er1
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29139esac
29140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29149esac
29150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029155 ac_header_compiler=yes
29156else
29157 echo "$as_me: failed program was:" >&5
29158sed 's/^/| /' conftest.$ac_ext >&5
29159
Reid Spencera773bd52006-08-04 18:18:08 +000029160 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029161fi
Reid Spencera773bd52006-08-04 18:18:08 +000029162
29163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029166
29167# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029170cat >conftest.$ac_ext <<_ACEOF
29171/* confdefs.h. */
29172_ACEOF
29173cat confdefs.h >>conftest.$ac_ext
29174cat >>conftest.$ac_ext <<_ACEOF
29175/* end confdefs.h. */
29176#include <$ac_header>
29177_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029178if { (ac_try="$ac_cpp conftest.$ac_ext"
29179case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29182esac
29183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029185 ac_status=$?
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_c_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194 else
29195 ac_cpp_err=
29196 fi
29197else
29198 ac_cpp_err=yes
29199fi
29200if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029201 ac_header_preproc=yes
29202else
29203 echo "$as_me: failed program was:" >&5
29204sed 's/^/| /' conftest.$ac_ext >&5
29205
29206 ac_header_preproc=no
29207fi
Reid Spencera773bd52006-08-04 18:18:08 +000029208
Reid Spencer59473af2004-12-25 07:31:29 +000029209rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029212
29213# So? What about this header?
29214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29215 yes:no: )
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29221 ;;
29222 no:yes:* )
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029235 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029236## ----------------------------------- ##
29237## Report this to llvmbugs@cs.uiuc.edu ##
29238## ----------------------------------- ##
29239_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029240 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029241 ;;
29242esac
Reid Spencera773bd52006-08-04 18:18:08 +000029243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029246 echo $ECHO_N "(cached) $ECHO_C" >&6
29247else
29248 eval "$as_ac_Header=\$ac_header_preproc"
29249fi
Reid Spencera773bd52006-08-04 18:18:08 +000029250ac_res=`eval echo '${'$as_ac_Header'}'`
29251 { echo "$as_me:$LINENO: result: $ac_res" >&5
29252echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029253
29254fi
29255if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256 cat >>confdefs.h <<_ACEOF
29257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29258_ACEOF
29259
29260fi
29261
29262done
29263
29264
Reid Spencerbe3e4192007-08-17 05:45:26 +000029265for ac_header in windows.h
29266do
29267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29273fi
29274ac_res=`eval echo '${'$as_ac_Header'}'`
29275 { echo "$as_me:$LINENO: result: $ac_res" >&5
29276echo "${ECHO_T}$ac_res" >&6; }
29277else
29278 # Is the header compilable?
29279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29281cat >conftest.$ac_ext <<_ACEOF
29282/* confdefs.h. */
29283_ACEOF
29284cat confdefs.h >>conftest.$ac_ext
29285cat >>conftest.$ac_ext <<_ACEOF
29286/* end confdefs.h. */
29287$ac_includes_default
29288#include <$ac_header>
29289_ACEOF
29290rm -f conftest.$ac_objext
29291if { (ac_try="$ac_compile"
29292case "(($ac_try" in
29293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294 *) ac_try_echo=$ac_try;;
29295esac
29296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297 (eval "$ac_compile") 2>conftest.er1
29298 ac_status=$?
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029303 (exit $ac_status); } &&
29304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29305 { (case "(($ac_try" in
29306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307 *) ac_try_echo=$ac_try;;
29308esac
29309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310 (eval "$ac_try") 2>&5
29311 ac_status=$?
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); }; } &&
29314 { ac_try='test -s conftest.$ac_objext'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29318esac
29319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029324 ac_header_compiler=yes
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329 ac_header_compiler=no
29330fi
29331
29332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29334echo "${ECHO_T}$ac_header_compiler" >&6; }
29335
29336# Is the header present?
29337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29339cat >conftest.$ac_ext <<_ACEOF
29340/* confdefs.h. */
29341_ACEOF
29342cat confdefs.h >>conftest.$ac_ext
29343cat >>conftest.$ac_ext <<_ACEOF
29344/* end confdefs.h. */
29345#include <$ac_header>
29346_ACEOF
29347if { (ac_try="$ac_cpp conftest.$ac_ext"
29348case "(($ac_try" in
29349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350 *) ac_try_echo=$ac_try;;
29351esac
29352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29354 ac_status=$?
29355 grep -v '^ *+' conftest.er1 >conftest.err
29356 rm -f conftest.er1
29357 cat conftest.err >&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029359 (exit $ac_status); } >/dev/null; then
29360 if test -s conftest.err; then
29361 ac_cpp_err=$ac_c_preproc_warn_flag
29362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29363 else
29364 ac_cpp_err=
29365 fi
29366else
29367 ac_cpp_err=yes
29368fi
29369if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029370 ac_header_preproc=yes
29371else
29372 echo "$as_me: failed program was:" >&5
29373sed 's/^/| /' conftest.$ac_ext >&5
29374
29375 ac_header_preproc=no
29376fi
29377
29378rm -f conftest.err conftest.$ac_ext
29379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29380echo "${ECHO_T}$ac_header_preproc" >&6; }
29381
29382# So? What about this header?
29383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29384 yes:no: )
29385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29389 ac_header_preproc=yes
29390 ;;
29391 no:yes:* )
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29404 ( cat <<\_ASBOX
29405## ----------------------------------- ##
29406## Report this to llvmbugs@cs.uiuc.edu ##
29407## ----------------------------------- ##
29408_ASBOX
29409 ) | sed "s/^/$as_me: WARNING: /" >&2
29410 ;;
29411esac
29412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29416else
29417 eval "$as_ac_Header=\$ac_header_preproc"
29418fi
29419ac_res=`eval echo '${'$as_ac_Header'}'`
29420 { echo "$as_me:$LINENO: result: $ac_res" >&5
29421echo "${ECHO_T}$ac_res" >&6; }
29422
29423fi
29424if test `eval echo '${'$as_ac_Header'}'` = yes; then
29425 cat >>confdefs.h <<_ACEOF
29426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29427_ACEOF
29428
29429fi
29430
29431done
Reid Spencer59473af2004-12-25 07:31:29 +000029432
29433
29434
29435
Reid Spencerbe3e4192007-08-17 05:45:26 +000029436
29437for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029438do
29439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029444 echo $ECHO_N "(cached) $ECHO_C" >&6
29445fi
Reid Spencera773bd52006-08-04 18:18:08 +000029446ac_res=`eval echo '${'$as_ac_Header'}'`
29447 { echo "$as_me:$LINENO: result: $ac_res" >&5
29448echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029449else
29450 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029453cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029454/* confdefs.h. */
29455_ACEOF
29456cat confdefs.h >>conftest.$ac_ext
29457cat >>conftest.$ac_ext <<_ACEOF
29458/* end confdefs.h. */
29459$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029460#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029461_ACEOF
29462rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029463if { (ac_try="$ac_compile"
29464case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29467esac
29468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029471 grep -v '^ *+' conftest.er1 >conftest.err
29472 rm -f conftest.er1
29473 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029475 (exit $ac_status); } &&
29476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29480esac
29481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; } &&
29486 { ac_try='test -s conftest.$ac_objext'
29487 { (case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29490esac
29491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_try") 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029496 ac_header_compiler=yes
29497else
29498 echo "$as_me: failed program was:" >&5
29499sed 's/^/| /' conftest.$ac_ext >&5
29500
Reid Spencera773bd52006-08-04 18:18:08 +000029501 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029502fi
Reid Spencera773bd52006-08-04 18:18:08 +000029503
29504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29506echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029507
29508# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029511cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029512/* confdefs.h. */
29513_ACEOF
29514cat confdefs.h >>conftest.$ac_ext
29515cat >>conftest.$ac_ext <<_ACEOF
29516/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029517#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029518_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029519if { (ac_try="$ac_cpp conftest.$ac_ext"
29520case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29523esac
29524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029526 ac_status=$?
29527 grep -v '^ *+' conftest.er1 >conftest.err
29528 rm -f conftest.er1
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029531 (exit $ac_status); } >/dev/null; then
29532 if test -s conftest.err; then
29533 ac_cpp_err=$ac_c_preproc_warn_flag
29534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29535 else
29536 ac_cpp_err=
29537 fi
29538else
29539 ac_cpp_err=yes
29540fi
29541if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029542 ac_header_preproc=yes
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547 ac_header_preproc=no
29548fi
Reid Spencera773bd52006-08-04 18:18:08 +000029549
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029550rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29552echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029553
29554# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29556 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029561 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029562 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029563 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029576 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029577## ----------------------------------- ##
29578## Report this to llvmbugs@cs.uiuc.edu ##
29579## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029580_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029581 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029582 ;;
29583esac
Reid Spencera773bd52006-08-04 18:18:08 +000029584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029589 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029590fi
Reid Spencera773bd52006-08-04 18:18:08 +000029591ac_res=`eval echo '${'$as_ac_Header'}'`
29592 { echo "$as_me:$LINENO: result: $ac_res" >&5
29593echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029594
29595fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029596if test `eval echo '${'$as_ac_Header'}'` = yes; then
29597 cat >>confdefs.h <<_ACEOF
29598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029599_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029600
29601fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029602
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029603done
29604
John Criswell7ed43ad2004-07-19 16:12:29 +000029605
Reid Spencercdb08a32006-06-05 16:11:07 +000029606
Reid Spencera6d990a2006-09-14 06:17:21 +000029607
29608for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029609do
29610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029615 echo $ECHO_N "(cached) $ECHO_C" >&6
29616fi
Reid Spencera773bd52006-08-04 18:18:08 +000029617ac_res=`eval echo '${'$as_ac_Header'}'`
29618 { echo "$as_me:$LINENO: result: $ac_res" >&5
29619echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029620else
29621 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029622{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029624cat >conftest.$ac_ext <<_ACEOF
29625/* confdefs.h. */
29626_ACEOF
29627cat confdefs.h >>conftest.$ac_ext
29628cat >>conftest.$ac_ext <<_ACEOF
29629/* end confdefs.h. */
29630$ac_includes_default
29631#include <$ac_header>
29632_ACEOF
29633rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029634if { (ac_try="$ac_compile"
29635case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29638esac
29639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029641 ac_status=$?
29642 grep -v '^ *+' conftest.er1 >conftest.err
29643 rm -f conftest.er1
29644 cat conftest.err >&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029646 (exit $ac_status); } &&
29647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29648 { (case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29651esac
29652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_try") 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; } &&
29657 { ac_try='test -s conftest.$ac_objext'
29658 { (case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29661esac
29662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_try") 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029667 ac_header_compiler=yes
29668else
29669 echo "$as_me: failed program was:" >&5
29670sed 's/^/| /' conftest.$ac_ext >&5
29671
Reid Spencera773bd52006-08-04 18:18:08 +000029672 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029673fi
Reid Spencera773bd52006-08-04 18:18:08 +000029674
29675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29677echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029678
29679# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029680{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029682cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688#include <$ac_header>
29689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029690if { (ac_try="$ac_cpp conftest.$ac_ext"
29691case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29694esac
29695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029697 ac_status=$?
29698 grep -v '^ *+' conftest.er1 >conftest.err
29699 rm -f conftest.er1
29700 cat conftest.err >&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029702 (exit $ac_status); } >/dev/null; then
29703 if test -s conftest.err; then
29704 ac_cpp_err=$ac_c_preproc_warn_flag
29705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29706 else
29707 ac_cpp_err=
29708 fi
29709else
29710 ac_cpp_err=yes
29711fi
29712if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029713 ac_header_preproc=yes
29714else
29715 echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
29718 ac_header_preproc=no
29719fi
Reid Spencera773bd52006-08-04 18:18:08 +000029720
Chris Lattner0b142592005-11-14 06:57:34 +000029721rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029722{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29723echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029724
29725# So? What about this header?
29726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29727 yes:no: )
29728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29732 ac_header_preproc=yes
29733 ;;
29734 no:yes:* )
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029747 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029748## ----------------------------------- ##
29749## Report this to llvmbugs@cs.uiuc.edu ##
29750## ----------------------------------- ##
29751_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029752 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029753 ;;
29754esac
Reid Spencera773bd52006-08-04 18:18:08 +000029755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029758 echo $ECHO_N "(cached) $ECHO_C" >&6
29759else
29760 eval "$as_ac_Header=\$ac_header_preproc"
29761fi
Reid Spencera773bd52006-08-04 18:18:08 +000029762ac_res=`eval echo '${'$as_ac_Header'}'`
29763 { echo "$as_me:$LINENO: result: $ac_res" >&5
29764echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029765
29766fi
29767if test `eval echo '${'$as_ac_Header'}'` = yes; then
29768 cat >>confdefs.h <<_ACEOF
29769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29770_ACEOF
29771
29772fi
29773
29774done
29775
Reid Spencer0a262ba2005-08-24 10:07:20 +000029776if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029777
29778for ac_header in pthread.h
29779do
29780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029785 echo $ECHO_N "(cached) $ECHO_C" >&6
29786fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029787ac_res=`eval echo '${'$as_ac_Header'}'`
29788 { echo "$as_me:$LINENO: result: $ac_res" >&5
29789echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029790else
29791 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029792{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029794cat >conftest.$ac_ext <<_ACEOF
29795/* confdefs.h. */
29796_ACEOF
29797cat confdefs.h >>conftest.$ac_ext
29798cat >>conftest.$ac_ext <<_ACEOF
29799/* end confdefs.h. */
29800$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029801#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029802_ACEOF
29803rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029804if { (ac_try="$ac_compile"
29805case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29808esac
29809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029811 ac_status=$?
29812 grep -v '^ *+' conftest.er1 >conftest.err
29813 rm -f conftest.er1
29814 cat conftest.err >&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029816 (exit $ac_status); } &&
29817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29818 { (case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29821esac
29822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_try") 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
29828 { (case "(($ac_try" in
29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830 *) ac_try_echo=$ac_try;;
29831esac
29832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_try") 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029837 ac_header_compiler=yes
29838else
29839 echo "$as_me: failed program was:" >&5
29840sed 's/^/| /' conftest.$ac_ext >&5
29841
Reid Spencera773bd52006-08-04 18:18:08 +000029842 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029843fi
Reid Spencera773bd52006-08-04 18:18:08 +000029844
29845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029848
29849# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029850{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029852cat >conftest.$ac_ext <<_ACEOF
29853/* confdefs.h. */
29854_ACEOF
29855cat confdefs.h >>conftest.$ac_ext
29856cat >>conftest.$ac_ext <<_ACEOF
29857/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029858#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029859_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029860if { (ac_try="$ac_cpp conftest.$ac_ext"
29861case "(($ac_try" in
29862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863 *) ac_try_echo=$ac_try;;
29864esac
29865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029867 ac_status=$?
29868 grep -v '^ *+' conftest.er1 >conftest.err
29869 rm -f conftest.er1
29870 cat conftest.err >&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029872 (exit $ac_status); } >/dev/null; then
29873 if test -s conftest.err; then
29874 ac_cpp_err=$ac_c_preproc_warn_flag
29875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29876 else
29877 ac_cpp_err=
29878 fi
29879else
29880 ac_cpp_err=yes
29881fi
29882if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029883 ac_header_preproc=yes
29884else
29885 echo "$as_me: failed program was:" >&5
29886sed 's/^/| /' conftest.$ac_ext >&5
29887
29888 ac_header_preproc=no
29889fi
Reid Spencera773bd52006-08-04 18:18:08 +000029890
Reid Spencer0a262ba2005-08-24 10:07:20 +000029891rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29893echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029894
29895# So? What about this header?
29896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29897 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029902 ac_header_preproc=yes
29903 ;;
29904 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029917 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029918## ----------------------------------- ##
29919## Report this to llvmbugs@cs.uiuc.edu ##
29920## ----------------------------------- ##
29921_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029922 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029923 ;;
29924esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029928 echo $ECHO_N "(cached) $ECHO_C" >&6
29929else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029930 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029931fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029932ac_res=`eval echo '${'$as_ac_Header'}'`
29933 { echo "$as_me:$LINENO: result: $ac_res" >&5
29934echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029935
29936fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029937if test `eval echo '${'$as_ac_Header'}'` = yes; then
29938 cat >>confdefs.h <<_ACEOF
29939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29940_ACEOF
29941 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029942
29943else
29944 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029945
29946fi
29947
Reid Spencerbe3e4192007-08-17 05:45:26 +000029948done
Reid Spencer1000b732006-12-01 00:37:14 +000029949
29950else
29951 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029952
29953fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029954
29955
Reid Spencerb2ed05262006-11-03 18:04:08 +000029956
29957 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29958echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29959if test "${ac_cv_huge_val_sanity+set}" = set; then
29960 echo $ECHO_N "(cached) $ECHO_C" >&6
29961else
29962
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029963 ac_ext=cpp
29964ac_cpp='$CXXCPP $CPPFLAGS'
29965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029968
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029969 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029970 if test "$cross_compiling" = yes; then
29971 ac_cv_huge_val_sanity=yes
29972else
29973 cat >conftest.$ac_ext <<_ACEOF
29974/* confdefs.h. */
29975_ACEOF
29976cat confdefs.h >>conftest.$ac_ext
29977cat >>conftest.$ac_ext <<_ACEOF
29978/* end confdefs.h. */
29979#include <math.h>
29980int
29981main ()
29982{
29983double x = HUGE_VAL; return x != x;
29984 ;
29985 return 0;
29986}
29987_ACEOF
29988rm -f conftest$ac_exeext
29989if { (ac_try="$ac_link"
29990case "(($ac_try" in
29991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992 *) ac_try_echo=$ac_try;;
29993esac
29994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29995 (eval "$ac_link") 2>&5
29996 ac_status=$?
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999 { (case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30002esac
30003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004 (eval "$ac_try") 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; }; then
30008 ac_cv_huge_val_sanity=yes
30009else
30010 echo "$as_me: program exited with status $ac_status" >&5
30011echo "$as_me: failed program was:" >&5
30012sed 's/^/| /' conftest.$ac_ext >&5
30013
30014( exit $ac_status )
30015ac_cv_huge_val_sanity=no
30016fi
30017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30018fi
30019
30020
30021 ac_ext=c
30022ac_cpp='$CPP $CPPFLAGS'
30023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30025ac_compiler_gnu=$ac_cv_c_compiler_gnu
30026
30027
30028fi
30029{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30030echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30031 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30032
30033
Reid Spencera773bd52006-08-04 18:18:08 +000030034{ echo "$as_me:$LINENO: checking for pid_t" >&5
30035echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030036if test "${ac_cv_type_pid_t+set}" = set; then
30037 echo $ECHO_N "(cached) $ECHO_C" >&6
30038else
30039 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030040/* confdefs.h. */
30041_ACEOF
30042cat confdefs.h >>conftest.$ac_ext
30043cat >>conftest.$ac_ext <<_ACEOF
30044/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030045$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030046typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030047int
30048main ()
30049{
Reid Spencera773bd52006-08-04 18:18:08 +000030050if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030051 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030052if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030053 return 0;
30054 ;
30055 return 0;
30056}
30057_ACEOF
30058rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030059if { (ac_try="$ac_compile"
30060case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30063esac
30064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030066 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030067 grep -v '^ *+' conftest.er1 >conftest.err
30068 rm -f conftest.er1
30069 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030071 (exit $ac_status); } &&
30072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30073 { (case "(($ac_try" in
30074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075 *) ac_try_echo=$ac_try;;
30076esac
30077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078 (eval "$ac_try") 2>&5
30079 ac_status=$?
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); }; } &&
30082 { ac_try='test -s conftest.$ac_objext'
30083 { (case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30086esac
30087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_try") 2>&5
30089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030092 ac_cv_type_pid_t=yes
30093else
30094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030095sed 's/^/| /' conftest.$ac_ext >&5
30096
Reid Spencera773bd52006-08-04 18:18:08 +000030097 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030098fi
Reid Spencera773bd52006-08-04 18:18:08 +000030099
30100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030101fi
Reid Spencera773bd52006-08-04 18:18:08 +000030102{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30103echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030104if test $ac_cv_type_pid_t = yes; then
30105 :
30106else
30107
30108cat >>confdefs.h <<_ACEOF
30109#define pid_t int
30110_ACEOF
30111
30112fi
30113
Reid Spencera773bd52006-08-04 18:18:08 +000030114{ echo "$as_me:$LINENO: checking for size_t" >&5
30115echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030116if test "${ac_cv_type_size_t+set}" = set; then
30117 echo $ECHO_N "(cached) $ECHO_C" >&6
30118else
30119 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030120/* confdefs.h. */
30121_ACEOF
30122cat confdefs.h >>conftest.$ac_ext
30123cat >>conftest.$ac_ext <<_ACEOF
30124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030125$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030126typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030127int
30128main ()
30129{
Reid Spencera773bd52006-08-04 18:18:08 +000030130if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030131 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030132if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030133 return 0;
30134 ;
30135 return 0;
30136}
30137_ACEOF
30138rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030139if { (ac_try="$ac_compile"
30140case "(($ac_try" in
30141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142 *) ac_try_echo=$ac_try;;
30143esac
30144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030147 grep -v '^ *+' conftest.er1 >conftest.err
30148 rm -f conftest.er1
30149 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030151 (exit $ac_status); } &&
30152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30153 { (case "(($ac_try" in
30154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155 *) ac_try_echo=$ac_try;;
30156esac
30157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158 (eval "$ac_try") 2>&5
30159 ac_status=$?
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; } &&
30162 { ac_try='test -s conftest.$ac_objext'
30163 { (case "(($ac_try" in
30164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165 *) ac_try_echo=$ac_try;;
30166esac
30167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168 (eval "$ac_try") 2>&5
30169 ac_status=$?
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030172 ac_cv_type_size_t=yes
30173else
30174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030175sed 's/^/| /' conftest.$ac_ext >&5
30176
Reid Spencera773bd52006-08-04 18:18:08 +000030177 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030178fi
Reid Spencera773bd52006-08-04 18:18:08 +000030179
30180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030181fi
Reid Spencera773bd52006-08-04 18:18:08 +000030182{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30183echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030184if test $ac_cv_type_size_t = yes; then
30185 :
30186else
30187
30188cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030189#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030190_ACEOF
30191
30192fi
30193
Reid Spencera773bd52006-08-04 18:18:08 +000030194{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30195echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030196if test "${ac_cv_type_signal+set}" = set; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30198else
30199 cat >conftest.$ac_ext <<_ACEOF
30200/* confdefs.h. */
30201_ACEOF
30202cat confdefs.h >>conftest.$ac_ext
30203cat >>conftest.$ac_ext <<_ACEOF
30204/* end confdefs.h. */
30205#include <sys/types.h>
30206#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030207
30208int
30209main ()
30210{
Reid Spencera773bd52006-08-04 18:18:08 +000030211return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030212 ;
30213 return 0;
30214}
30215_ACEOF
30216rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030217if { (ac_try="$ac_compile"
30218case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30221esac
30222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030224 ac_status=$?
30225 grep -v '^ *+' conftest.er1 >conftest.err
30226 rm -f conftest.er1
30227 cat conftest.err >&5
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030229 (exit $ac_status); } &&
30230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30231 { (case "(($ac_try" in
30232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30233 *) ac_try_echo=$ac_try;;
30234esac
30235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30236 (eval "$ac_try") 2>&5
30237 ac_status=$?
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); }; } &&
30240 { ac_try='test -s conftest.$ac_objext'
30241 { (case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30244esac
30245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_try") 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030250 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030251else
30252 echo "$as_me: failed program was:" >&5
30253sed 's/^/| /' conftest.$ac_ext >&5
30254
Reid Spencera773bd52006-08-04 18:18:08 +000030255 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030256fi
Reid Spencera773bd52006-08-04 18:18:08 +000030257
30258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030259fi
Reid Spencera773bd52006-08-04 18:18:08 +000030260{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30261echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030262
30263cat >>confdefs.h <<_ACEOF
30264#define RETSIGTYPE $ac_cv_type_signal
30265_ACEOF
30266
30267
Reid Spencera773bd52006-08-04 18:18:08 +000030268{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30269echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030270if test "${ac_cv_struct_tm+set}" = set; then
30271 echo $ECHO_N "(cached) $ECHO_C" >&6
30272else
30273 cat >conftest.$ac_ext <<_ACEOF
30274/* confdefs.h. */
30275_ACEOF
30276cat confdefs.h >>conftest.$ac_ext
30277cat >>conftest.$ac_ext <<_ACEOF
30278/* end confdefs.h. */
30279#include <sys/types.h>
30280#include <time.h>
30281
30282int
30283main ()
30284{
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030285struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030286 ;
30287 return 0;
30288}
30289_ACEOF
30290rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030291if { (ac_try="$ac_compile"
30292case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30295esac
30296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030298 ac_status=$?
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030303 (exit $ac_status); } &&
30304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30305 { (case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30308esac
30309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310 (eval "$ac_try") 2>&5
30311 ac_status=$?
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); }; } &&
30314 { ac_try='test -s conftest.$ac_objext'
30315 { (case "(($ac_try" in
30316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317 *) ac_try_echo=$ac_try;;
30318esac
30319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320 (eval "$ac_try") 2>&5
30321 ac_status=$?
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030324 ac_cv_struct_tm=time.h
30325else
30326 echo "$as_me: failed program was:" >&5
30327sed 's/^/| /' conftest.$ac_ext >&5
30328
Reid Spencera773bd52006-08-04 18:18:08 +000030329 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030330fi
Reid Spencera773bd52006-08-04 18:18:08 +000030331
30332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030333fi
Reid Spencera773bd52006-08-04 18:18:08 +000030334{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30335echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030336if test $ac_cv_struct_tm = sys/time.h; then
30337
30338cat >>confdefs.h <<\_ACEOF
30339#define TM_IN_SYS_TIME 1
30340_ACEOF
30341
30342fi
30343
Reid Spencera773bd52006-08-04 18:18:08 +000030344{ echo "$as_me:$LINENO: checking for int64_t" >&5
30345echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030346if test "${ac_cv_type_int64_t+set}" = set; then
30347 echo $ECHO_N "(cached) $ECHO_C" >&6
30348else
30349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030350/* confdefs.h. */
30351_ACEOF
30352cat confdefs.h >>conftest.$ac_ext
30353cat >>conftest.$ac_ext <<_ACEOF
30354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030355$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030356typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030357int
30358main ()
30359{
Reid Spencera773bd52006-08-04 18:18:08 +000030360if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030361 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030362if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030363 return 0;
30364 ;
30365 return 0;
30366}
30367_ACEOF
30368rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030369if { (ac_try="$ac_compile"
30370case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30373esac
30374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030377 grep -v '^ *+' conftest.er1 >conftest.err
30378 rm -f conftest.er1
30379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030381 (exit $ac_status); } &&
30382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30383 { (case "(($ac_try" in
30384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385 *) ac_try_echo=$ac_try;;
30386esac
30387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388 (eval "$ac_try") 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest.$ac_objext'
30393 { (case "(($ac_try" in
30394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395 *) ac_try_echo=$ac_try;;
30396esac
30397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398 (eval "$ac_try") 2>&5
30399 ac_status=$?
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030402 ac_cv_type_int64_t=yes
30403else
30404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030405sed 's/^/| /' conftest.$ac_ext >&5
30406
Reid Spencera773bd52006-08-04 18:18:08 +000030407 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030408fi
Reid Spencera773bd52006-08-04 18:18:08 +000030409
30410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030411fi
Reid Spencera773bd52006-08-04 18:18:08 +000030412{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30413echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030414if test $ac_cv_type_int64_t = yes; then
30415
30416cat >>confdefs.h <<_ACEOF
30417#define HAVE_INT64_T 1
30418_ACEOF
30419
30420
30421else
30422 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30423echo "$as_me: error: Type int64_t required but not found" >&2;}
30424 { (exit 1); exit 1; }; }
30425fi
30426
Reid Spencera773bd52006-08-04 18:18:08 +000030427{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30428echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030429if test "${ac_cv_type_uint64_t+set}" = set; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30431else
30432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030433/* confdefs.h. */
30434_ACEOF
30435cat confdefs.h >>conftest.$ac_ext
30436cat >>conftest.$ac_ext <<_ACEOF
30437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030438$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030439typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030440int
30441main ()
30442{
Reid Spencera773bd52006-08-04 18:18:08 +000030443if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030444 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030445if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030446 return 0;
30447 ;
30448 return 0;
30449}
30450_ACEOF
30451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030452if { (ac_try="$ac_compile"
30453case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30456esac
30457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030460 grep -v '^ *+' conftest.er1 >conftest.err
30461 rm -f conftest.er1
30462 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030464 (exit $ac_status); } &&
30465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30466 { (case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30469esac
30470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_try") 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest.$ac_objext'
30476 { (case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30479esac
30480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_try") 2>&5
30482 ac_status=$?
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030485 ac_cv_type_uint64_t=yes
30486else
30487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030488sed 's/^/| /' conftest.$ac_ext >&5
30489
Reid Spencera773bd52006-08-04 18:18:08 +000030490 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030491fi
Reid Spencera773bd52006-08-04 18:18:08 +000030492
30493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030494fi
Reid Spencera773bd52006-08-04 18:18:08 +000030495{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30496echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030497if test $ac_cv_type_uint64_t = yes; then
30498
30499cat >>confdefs.h <<_ACEOF
30500#define HAVE_UINT64_T 1
30501_ACEOF
30502
30503
30504else
Reid Spencera773bd52006-08-04 18:18:08 +000030505 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30506echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030507if test "${ac_cv_type_u_int64_t+set}" = set; then
30508 echo $ECHO_N "(cached) $ECHO_C" >&6
30509else
30510 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030511/* confdefs.h. */
30512_ACEOF
30513cat confdefs.h >>conftest.$ac_ext
30514cat >>conftest.$ac_ext <<_ACEOF
30515/* end confdefs.h. */
30516$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030517typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030518int
30519main ()
30520{
Reid Spencera773bd52006-08-04 18:18:08 +000030521if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030522 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030523if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030524 return 0;
30525 ;
30526 return 0;
30527}
30528_ACEOF
30529rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030530if { (ac_try="$ac_compile"
30531case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030538 grep -v '^ *+' conftest.er1 >conftest.err
30539 rm -f conftest.er1
30540 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030542 (exit $ac_status); } &&
30543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30547esac
30548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30550 ac_status=$?
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; } &&
30553 { ac_try='test -s conftest.$ac_objext'
30554 { (case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30557esac
30558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559 (eval "$ac_try") 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030563 ac_cv_type_u_int64_t=yes
30564else
30565 echo "$as_me: failed program was:" >&5
30566sed 's/^/| /' conftest.$ac_ext >&5
30567
Reid Spencera773bd52006-08-04 18:18:08 +000030568 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030569fi
Reid Spencera773bd52006-08-04 18:18:08 +000030570
30571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030572fi
Reid Spencera773bd52006-08-04 18:18:08 +000030573{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30574echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030575if test $ac_cv_type_u_int64_t = yes; then
30576
30577cat >>confdefs.h <<_ACEOF
30578#define HAVE_U_INT64_T 1
30579_ACEOF
30580
30581
Misha Brukmanceca9042004-09-02 23:02:30 +000030582else
30583 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30584echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30585 { (exit 1); exit 1; }; }
30586fi
30587
John Criswell679ff312004-09-02 18:44:44 +000030588fi
30589
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030590
30591
30592
30593
30594
30595
30596
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030597
30598
Reid Spencerdf3be822006-01-23 08:15:53 +000030599for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030600do
30601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030605 echo $ECHO_N "(cached) $ECHO_C" >&6
30606else
30607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030608/* confdefs.h. */
30609_ACEOF
30610cat confdefs.h >>conftest.$ac_ext
30611cat >>conftest.$ac_ext <<_ACEOF
30612/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30615#define $ac_func innocuous_$ac_func
30616
30617/* System header to define __stub macros and hopefully few prototypes,
30618 which can conflict with char $ac_func (); below.
30619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30620 <limits.h> exists even on freestanding compilers. */
30621
30622#ifdef __STDC__
30623# include <limits.h>
30624#else
30625# include <assert.h>
30626#endif
30627
30628#undef $ac_func
30629
Reid Spencera773bd52006-08-04 18:18:08 +000030630/* Override any GCC internal prototype to avoid an error.
30631 Use char because int might match the return type of a GCC
30632 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030633#ifdef __cplusplus
30634extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030635#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030636char $ac_func ();
30637/* The GNU C library defines this for functions which it implements
30638 to always fail with ENOSYS. Some functions are actually named
30639 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030640#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030641choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030642#endif
John Criswell7a73b802003-06-30 21:59:07 +000030643
John Criswell7a73b802003-06-30 21:59:07 +000030644int
30645main ()
30646{
Reid Spencera773bd52006-08-04 18:18:08 +000030647return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030648 ;
30649 return 0;
30650}
30651_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030652rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030653if { (ac_try="$ac_link"
30654case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30657esac
30658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030660 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030661 grep -v '^ *+' conftest.er1 >conftest.err
30662 rm -f conftest.er1
30663 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030665 (exit $ac_status); } &&
30666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30667 { (case "(($ac_try" in
30668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30669 *) ac_try_echo=$ac_try;;
30670esac
30671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30672 (eval "$ac_try") 2>&5
30673 ac_status=$?
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; } &&
30676 { ac_try='test -s conftest$ac_exeext'
30677 { (case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30680esac
30681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682 (eval "$ac_try") 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030686 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030687else
30688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030689sed 's/^/| /' conftest.$ac_ext >&5
30690
Reid Spencera773bd52006-08-04 18:18:08 +000030691 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030692fi
Reid Spencera773bd52006-08-04 18:18:08 +000030693
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030694rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030695 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030696fi
Reid Spencera773bd52006-08-04 18:18:08 +000030697ac_res=`eval echo '${'$as_ac_var'}'`
30698 { echo "$as_me:$LINENO: result: $ac_res" >&5
30699echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700if test `eval echo '${'$as_ac_var'}'` = yes; then
30701 cat >>confdefs.h <<_ACEOF
30702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030703_ACEOF
30704
30705fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030706done
John Criswell7a73b802003-06-30 21:59:07 +000030707
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030708
30709
30710
Reid Spencer6af3d262004-12-15 04:01:48 +000030711
Reid Spencer96cf5872007-07-13 10:05:30 +000030712for ac_func in powf fmodf strtof round
30713do
30714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30718 echo $ECHO_N "(cached) $ECHO_C" >&6
30719else
30720 cat >conftest.$ac_ext <<_ACEOF
30721/* confdefs.h. */
30722_ACEOF
30723cat confdefs.h >>conftest.$ac_ext
30724cat >>conftest.$ac_ext <<_ACEOF
30725/* end confdefs.h. */
30726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30728#define $ac_func innocuous_$ac_func
30729
30730/* System header to define __stub macros and hopefully few prototypes,
30731 which can conflict with char $ac_func (); below.
30732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30733 <limits.h> exists even on freestanding compilers. */
30734
30735#ifdef __STDC__
30736# include <limits.h>
30737#else
30738# include <assert.h>
30739#endif
30740
30741#undef $ac_func
30742
30743/* Override any GCC internal prototype to avoid an error.
30744 Use char because int might match the return type of a GCC
30745 builtin and then its argument prototype would still apply. */
30746#ifdef __cplusplus
30747extern "C"
30748#endif
30749char $ac_func ();
30750/* The GNU C library defines this for functions which it implements
30751 to always fail with ENOSYS. Some functions are actually named
30752 something starting with __ and the normal name is an alias. */
30753#if defined __stub_$ac_func || defined __stub___$ac_func
30754choke me
30755#endif
30756
30757int
30758main ()
30759{
30760return $ac_func ();
30761 ;
30762 return 0;
30763}
30764_ACEOF
30765rm -f conftest.$ac_objext conftest$ac_exeext
30766if { (ac_try="$ac_link"
30767case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30770esac
30771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_link") 2>conftest.er1
30773 ac_status=$?
30774 grep -v '^ *+' conftest.er1 >conftest.err
30775 rm -f conftest.er1
30776 cat conftest.err >&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030778 (exit $ac_status); } &&
30779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30780 { (case "(($ac_try" in
30781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30783esac
30784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_try") 2>&5
30786 ac_status=$?
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); }; } &&
30789 { ac_try='test -s conftest$ac_exeext'
30790 { (case "(($ac_try" in
30791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792 *) ac_try_echo=$ac_try;;
30793esac
30794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795 (eval "$ac_try") 2>&5
30796 ac_status=$?
30797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030799 eval "$as_ac_var=yes"
30800else
30801 echo "$as_me: failed program was:" >&5
30802sed 's/^/| /' conftest.$ac_ext >&5
30803
30804 eval "$as_ac_var=no"
30805fi
30806
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030807rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030808 conftest$ac_exeext conftest.$ac_ext
30809fi
30810ac_res=`eval echo '${'$as_ac_var'}'`
30811 { echo "$as_me:$LINENO: result: $ac_res" >&5
30812echo "${ECHO_T}$ac_res" >&6; }
30813if test `eval echo '${'$as_ac_var'}'` = yes; then
30814 cat >>confdefs.h <<_ACEOF
30815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30816_ACEOF
30817
30818fi
30819done
30820
30821
30822
30823
30824
Reid Spencer6af3d262004-12-15 04:01:48 +000030825
Reid Spencerb90645c2007-02-16 19:17:20 +000030826for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30827do
30828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30832 echo $ECHO_N "(cached) $ECHO_C" >&6
30833else
30834 cat >conftest.$ac_ext <<_ACEOF
30835/* confdefs.h. */
30836_ACEOF
30837cat confdefs.h >>conftest.$ac_ext
30838cat >>conftest.$ac_ext <<_ACEOF
30839/* end confdefs.h. */
30840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30842#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030843
Reid Spencerb90645c2007-02-16 19:17:20 +000030844/* System header to define __stub macros and hopefully few prototypes,
30845 which can conflict with char $ac_func (); below.
30846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30847 <limits.h> exists even on freestanding compilers. */
30848
30849#ifdef __STDC__
30850# include <limits.h>
30851#else
30852# include <assert.h>
30853#endif
30854
30855#undef $ac_func
30856
30857/* Override any GCC internal prototype to avoid an error.
30858 Use char because int might match the return type of a GCC
30859 builtin and then its argument prototype would still apply. */
30860#ifdef __cplusplus
30861extern "C"
30862#endif
30863char $ac_func ();
30864/* The GNU C library defines this for functions which it implements
30865 to always fail with ENOSYS. Some functions are actually named
30866 something starting with __ and the normal name is an alias. */
30867#if defined __stub_$ac_func || defined __stub___$ac_func
30868choke me
30869#endif
30870
30871int
30872main ()
30873{
30874return $ac_func ();
30875 ;
30876 return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext conftest$ac_exeext
30880if { (ac_try="$ac_link"
30881case "(($ac_try" in
30882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883 *) ac_try_echo=$ac_try;;
30884esac
30885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886 (eval "$ac_link") 2>conftest.er1
30887 ac_status=$?
30888 grep -v '^ *+' conftest.er1 >conftest.err
30889 rm -f conftest.er1
30890 cat conftest.err >&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030892 (exit $ac_status); } &&
30893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30894 { (case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30897esac
30898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_try") 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; } &&
30903 { ac_try='test -s conftest$ac_exeext'
30904 { (case "(($ac_try" in
30905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906 *) ac_try_echo=$ac_try;;
30907esac
30908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909 (eval "$ac_try") 2>&5
30910 ac_status=$?
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030913 eval "$as_ac_var=yes"
30914else
30915 echo "$as_me: failed program was:" >&5
30916sed 's/^/| /' conftest.$ac_ext >&5
30917
30918 eval "$as_ac_var=no"
30919fi
30920
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030921rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030922 conftest$ac_exeext conftest.$ac_ext
30923fi
30924ac_res=`eval echo '${'$as_ac_var'}'`
30925 { echo "$as_me:$LINENO: result: $ac_res" >&5
30926echo "${ECHO_T}$ac_res" >&6; }
30927if test `eval echo '${'$as_ac_var'}'` = yes; then
30928 cat >>confdefs.h <<_ACEOF
30929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30930_ACEOF
30931
30932fi
30933done
30934
30935
30936
30937
30938for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030939do
30940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030944 echo $ECHO_N "(cached) $ECHO_C" >&6
30945else
30946 cat >conftest.$ac_ext <<_ACEOF
30947/* confdefs.h. */
30948_ACEOF
30949cat confdefs.h >>conftest.$ac_ext
30950cat >>conftest.$ac_ext <<_ACEOF
30951/* end confdefs.h. */
30952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30954#define $ac_func innocuous_$ac_func
30955
30956/* System header to define __stub macros and hopefully few prototypes,
30957 which can conflict with char $ac_func (); below.
30958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30959 <limits.h> exists even on freestanding compilers. */
30960
30961#ifdef __STDC__
30962# include <limits.h>
30963#else
30964# include <assert.h>
30965#endif
30966
30967#undef $ac_func
30968
Reid Spencera773bd52006-08-04 18:18:08 +000030969/* Override any GCC internal prototype to avoid an error.
30970 Use char because int might match the return type of a GCC
30971 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030972#ifdef __cplusplus
30973extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030974#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030975char $ac_func ();
30976/* The GNU C library defines this for functions which it implements
30977 to always fail with ENOSYS. Some functions are actually named
30978 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030979#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030980choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030981#endif
30982
30983int
30984main ()
30985{
Reid Spencera773bd52006-08-04 18:18:08 +000030986return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030987 ;
30988 return 0;
30989}
30990_ACEOF
30991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030992if { (ac_try="$ac_link"
30993case "(($ac_try" in
30994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995 *) ac_try_echo=$ac_try;;
30996esac
30997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030999 ac_status=$?
31000 grep -v '^ *+' conftest.er1 >conftest.err
31001 rm -f conftest.er1
31002 cat conftest.err >&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031004 (exit $ac_status); } &&
31005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31006 { (case "(($ac_try" in
31007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31008 *) ac_try_echo=$ac_try;;
31009esac
31010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31011 (eval "$ac_try") 2>&5
31012 ac_status=$?
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); }; } &&
31015 { ac_try='test -s conftest$ac_exeext'
31016 { (case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31019esac
31020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021 (eval "$ac_try") 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031025 eval "$as_ac_var=yes"
31026else
31027 echo "$as_me: failed program was:" >&5
31028sed 's/^/| /' conftest.$ac_ext >&5
31029
Reid Spencera773bd52006-08-04 18:18:08 +000031030 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031031fi
Reid Spencera773bd52006-08-04 18:18:08 +000031032
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031033rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031034 conftest$ac_exeext conftest.$ac_ext
31035fi
Reid Spencera773bd52006-08-04 18:18:08 +000031036ac_res=`eval echo '${'$as_ac_var'}'`
31037 { echo "$as_me:$LINENO: result: $ac_res" >&5
31038echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031039if test `eval echo '${'$as_ac_var'}'` = yes; then
31040 cat >>confdefs.h <<_ACEOF
31041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31042_ACEOF
31043
31044fi
31045done
31046
31047
31048
31049
31050
31051
31052
31053
31054for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031055do
31056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031060 echo $ECHO_N "(cached) $ECHO_C" >&6
31061else
31062 cat >conftest.$ac_ext <<_ACEOF
31063/* confdefs.h. */
31064_ACEOF
31065cat confdefs.h >>conftest.$ac_ext
31066cat >>conftest.$ac_ext <<_ACEOF
31067/* end confdefs.h. */
31068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31070#define $ac_func innocuous_$ac_func
31071
31072/* System header to define __stub macros and hopefully few prototypes,
31073 which can conflict with char $ac_func (); below.
31074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31075 <limits.h> exists even on freestanding compilers. */
31076
31077#ifdef __STDC__
31078# include <limits.h>
31079#else
31080# include <assert.h>
31081#endif
31082
31083#undef $ac_func
31084
Reid Spencera773bd52006-08-04 18:18:08 +000031085/* Override any GCC internal prototype to avoid an error.
31086 Use char because int might match the return type of a GCC
31087 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031088#ifdef __cplusplus
31089extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031090#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031091char $ac_func ();
31092/* The GNU C library defines this for functions which it implements
31093 to always fail with ENOSYS. Some functions are actually named
31094 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031095#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031096choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031097#endif
31098
31099int
31100main ()
31101{
Reid Spencera773bd52006-08-04 18:18:08 +000031102return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031103 ;
31104 return 0;
31105}
31106_ACEOF
31107rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031108if { (ac_try="$ac_link"
31109case "(($ac_try" in
31110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111 *) ac_try_echo=$ac_try;;
31112esac
31113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31114 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031115 ac_status=$?
31116 grep -v '^ *+' conftest.er1 >conftest.err
31117 rm -f conftest.er1
31118 cat conftest.err >&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031120 (exit $ac_status); } &&
31121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31122 { (case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31125esac
31126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_try") 2>&5
31128 ac_status=$?
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; } &&
31131 { ac_try='test -s conftest$ac_exeext'
31132 { (case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31135esac
31136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_try") 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031141 eval "$as_ac_var=yes"
31142else
31143 echo "$as_me: failed program was:" >&5
31144sed 's/^/| /' conftest.$ac_ext >&5
31145
Reid Spencera773bd52006-08-04 18:18:08 +000031146 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031147fi
Reid Spencera773bd52006-08-04 18:18:08 +000031148
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031149rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031150 conftest$ac_exeext conftest.$ac_ext
31151fi
Reid Spencera773bd52006-08-04 18:18:08 +000031152ac_res=`eval echo '${'$as_ac_var'}'`
31153 { echo "$as_me:$LINENO: result: $ac_res" >&5
31154echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031155if test `eval echo '${'$as_ac_var'}'` = yes; then
31156 cat >>confdefs.h <<_ACEOF
31157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31158_ACEOF
31159
31160fi
31161done
31162
31163
Reid Spencerba46ca32004-12-31 05:49:15 +000031164
31165
Chris Lattner0b142592005-11-14 06:57:34 +000031166
Chris Lattner511f11d2005-11-14 07:25:50 +000031167for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031168do
31169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031170{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31172if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031173 echo $ECHO_N "(cached) $ECHO_C" >&6
31174else
31175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031176/* confdefs.h. */
31177_ACEOF
31178cat confdefs.h >>conftest.$ac_ext
31179cat >>conftest.$ac_ext <<_ACEOF
31180/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31183#define $ac_func innocuous_$ac_func
31184
31185/* System header to define __stub macros and hopefully few prototypes,
31186 which can conflict with char $ac_func (); below.
31187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31188 <limits.h> exists even on freestanding compilers. */
31189
31190#ifdef __STDC__
31191# include <limits.h>
31192#else
31193# include <assert.h>
31194#endif
31195
31196#undef $ac_func
31197
Reid Spencera773bd52006-08-04 18:18:08 +000031198/* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031201#ifdef __cplusplus
31202extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031203#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031204char $ac_func ();
31205/* The GNU C library defines this for functions which it implements
31206 to always fail with ENOSYS. Some functions are actually named
31207 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031208#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031209choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031210#endif
John Criswell7a73b802003-06-30 21:59:07 +000031211
John Criswell7a73b802003-06-30 21:59:07 +000031212int
31213main ()
31214{
Reid Spencera773bd52006-08-04 18:18:08 +000031215return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031216 ;
31217 return 0;
31218}
31219_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031221if { (ac_try="$ac_link"
31222case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31225esac
31226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031229 grep -v '^ *+' conftest.er1 >conftest.err
31230 rm -f conftest.er1
31231 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031233 (exit $ac_status); } &&
31234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31235 { (case "(($ac_try" in
31236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237 *) ac_try_echo=$ac_try;;
31238esac
31239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240 (eval "$ac_try") 2>&5
31241 ac_status=$?
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; } &&
31244 { ac_try='test -s conftest$ac_exeext'
31245 { (case "(($ac_try" in
31246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31247 *) ac_try_echo=$ac_try;;
31248esac
31249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31250 (eval "$ac_try") 2>&5
31251 ac_status=$?
31252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031254 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031255else
31256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031257sed 's/^/| /' conftest.$ac_ext >&5
31258
Reid Spencera773bd52006-08-04 18:18:08 +000031259 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031260fi
Reid Spencera773bd52006-08-04 18:18:08 +000031261
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031262rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031263 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031264fi
Reid Spencera773bd52006-08-04 18:18:08 +000031265ac_res=`eval echo '${'$as_ac_var'}'`
31266 { echo "$as_me:$LINENO: result: $ac_res" >&5
31267echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031268if test `eval echo '${'$as_ac_var'}'` = yes; then
31269 cat >>confdefs.h <<_ACEOF
31270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031271_ACEOF
31272
31273fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031274done
John Criswell7a73b802003-06-30 21:59:07 +000031275
Reid Spencercdb08a32006-06-05 16:11:07 +000031276
31277
31278
31279
Reid Spencerafa22e22006-12-10 23:29:19 +000031280for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031281do
31282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031283{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031286 echo $ECHO_N "(cached) $ECHO_C" >&6
31287else
31288 cat >conftest.$ac_ext <<_ACEOF
31289/* confdefs.h. */
31290_ACEOF
31291cat confdefs.h >>conftest.$ac_ext
31292cat >>conftest.$ac_ext <<_ACEOF
31293/* end confdefs.h. */
31294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31296#define $ac_func innocuous_$ac_func
31297
31298/* System header to define __stub macros and hopefully few prototypes,
31299 which can conflict with char $ac_func (); below.
31300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301 <limits.h> exists even on freestanding compilers. */
31302
31303#ifdef __STDC__
31304# include <limits.h>
31305#else
31306# include <assert.h>
31307#endif
31308
31309#undef $ac_func
31310
Reid Spencera773bd52006-08-04 18:18:08 +000031311/* Override any GCC internal prototype to avoid an error.
31312 Use char because int might match the return type of a GCC
31313 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031314#ifdef __cplusplus
31315extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031316#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031317char $ac_func ();
31318/* The GNU C library defines this for functions which it implements
31319 to always fail with ENOSYS. Some functions are actually named
31320 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031321#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031322choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031323#endif
31324
31325int
31326main ()
31327{
Reid Spencera773bd52006-08-04 18:18:08 +000031328return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031329 ;
31330 return 0;
31331}
31332_ACEOF
31333rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031334if { (ac_try="$ac_link"
31335case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31338esac
31339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031341 ac_status=$?
31342 grep -v '^ *+' conftest.er1 >conftest.err
31343 rm -f conftest.er1
31344 cat conftest.err >&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031346 (exit $ac_status); } &&
31347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31348 { (case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31351esac
31352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_try") 2>&5
31354 ac_status=$?
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; } &&
31357 { ac_try='test -s conftest$ac_exeext'
31358 { (case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31361esac
31362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_try") 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031367 eval "$as_ac_var=yes"
31368else
31369 echo "$as_me: failed program was:" >&5
31370sed 's/^/| /' conftest.$ac_ext >&5
31371
Reid Spencera773bd52006-08-04 18:18:08 +000031372 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031373fi
Reid Spencera773bd52006-08-04 18:18:08 +000031374
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031375rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031376 conftest$ac_exeext conftest.$ac_ext
31377fi
Reid Spencera773bd52006-08-04 18:18:08 +000031378ac_res=`eval echo '${'$as_ac_var'}'`
31379 { echo "$as_me:$LINENO: result: $ac_res" >&5
31380echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031381if test `eval echo '${'$as_ac_var'}'` = yes; then
31382 cat >>confdefs.h <<_ACEOF
31383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31384_ACEOF
31385
31386fi
31387done
31388
Reid Spencera773bd52006-08-04 18:18:08 +000031389{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31390echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031391if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392 echo $ECHO_N "(cached) $ECHO_C" >&6
31393else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031394 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031395ac_cpp='$CPP $CPPFLAGS'
31396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398ac_compiler_gnu=$ac_cv_c_compiler_gnu
31399
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031400 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031401 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031402else
31403 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031404
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031405 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031406_ACEOF
31407cat confdefs.h >>conftest.$ac_ext
31408cat >>conftest.$ac_ext <<_ACEOF
31409/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031410
John Criswella0137d32003-10-13 16:22:01 +000031411#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031412#include <stdlib.h>
31413
John Criswella0137d32003-10-13 16:22:01 +000031414int
31415main ()
31416{
31417
Reid Spencer2706f8c2004-09-19 23:53:36 +000031418volatile double A, B;
31419char Buffer[100];
31420A = 1;
31421A /= 10.0;
31422sprintf(Buffer, "%a", A);
31423B = atof(Buffer);
31424if (A != B)
31425 return (1);
31426if (A != 0x1.999999999999ap-4)
31427 return (1);
31428return (0);
John Criswella0137d32003-10-13 16:22:01 +000031429 ;
31430 return 0;
31431}
31432_ACEOF
31433rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031434if { (ac_try="$ac_link"
31435case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31438esac
31439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031441 ac_status=$?
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031444 { (case "(($ac_try" in
31445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446 *) ac_try_echo=$ac_try;;
31447esac
31448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031450 ac_status=$?
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031453 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031454else
31455 echo "$as_me: program exited with status $ac_status" >&5
31456echo "$as_me: failed program was:" >&5
31457sed 's/^/| /' conftest.$ac_ext >&5
31458
31459( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031460llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031461fi
Reid Spencera773bd52006-08-04 18:18:08 +000031462rm -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 +000031463fi
Reid Spencera773bd52006-08-04 18:18:08 +000031464
31465
Reid Spencer2706f8c2004-09-19 23:53:36 +000031466 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031467ac_cpp='$CPP $CPPFLAGS'
31468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470ac_compiler_gnu=$ac_cv_c_compiler_gnu
31471
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031472fi
Reid Spencera773bd52006-08-04 18:18:08 +000031473{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31474echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031475 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031476
31477cat >>confdefs.h <<\_ACEOF
31478#define HAVE_PRINTF_A 1
31479_ACEOF
31480
Reid Spencer2706f8c2004-09-19 23:53:36 +000031481 fi
John Criswella0137d32003-10-13 16:22:01 +000031482
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31484# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031485{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31486echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031487if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031488 echo $ECHO_N "(cached) $ECHO_C" >&6
31489else
John Criswell0021c312004-02-13 21:57:29 +000031490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031491/* confdefs.h. */
31492_ACEOF
31493cat confdefs.h >>conftest.$ac_ext
31494cat >>conftest.$ac_ext <<_ACEOF
31495/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031496#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031497int
31498main ()
31499{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031500char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031501 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031502 ;
31503 return 0;
31504}
31505_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031506rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031507if { (ac_try="$ac_link"
31508case "(($ac_try" in
31509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510 *) ac_try_echo=$ac_try;;
31511esac
31512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031515 grep -v '^ *+' conftest.er1 >conftest.err
31516 rm -f conftest.er1
31517 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031519 (exit $ac_status); } &&
31520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31521 { (case "(($ac_try" in
31522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523 *) ac_try_echo=$ac_try;;
31524esac
31525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526 (eval "$ac_try") 2>&5
31527 ac_status=$?
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; } &&
31530 { ac_try='test -s conftest$ac_exeext'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031540 ac_cv_working_alloca_h=yes
31541else
31542 echo "$as_me: failed program was:" >&5
31543sed 's/^/| /' conftest.$ac_ext >&5
31544
Reid Spencera773bd52006-08-04 18:18:08 +000031545 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031546fi
Reid Spencera773bd52006-08-04 18:18:08 +000031547
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031548rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031549 conftest$ac_exeext conftest.$ac_ext
31550fi
Reid Spencera773bd52006-08-04 18:18:08 +000031551{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31552echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031553if test $ac_cv_working_alloca_h = yes; then
31554
31555cat >>confdefs.h <<\_ACEOF
31556#define HAVE_ALLOCA_H 1
31557_ACEOF
31558
31559fi
31560
Reid Spencera773bd52006-08-04 18:18:08 +000031561{ echo "$as_me:$LINENO: checking for alloca" >&5
31562echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031563if test "${ac_cv_func_alloca_works+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31565else
31566 cat >conftest.$ac_ext <<_ACEOF
31567/* confdefs.h. */
31568_ACEOF
31569cat confdefs.h >>conftest.$ac_ext
31570cat >>conftest.$ac_ext <<_ACEOF
31571/* end confdefs.h. */
31572#ifdef __GNUC__
31573# define alloca __builtin_alloca
31574#else
31575# ifdef _MSC_VER
31576# include <malloc.h>
31577# define alloca _alloca
31578# else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031579# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031580# include <alloca.h>
31581# else
31582# ifdef _AIX
31583 #pragma alloca
31584# else
31585# ifndef alloca /* predefined by HP cc +Olibcalls */
31586char *alloca ();
31587# endif
31588# endif
31589# endif
31590# endif
31591#endif
31592
31593int
31594main ()
31595{
31596char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031597 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031598 ;
31599 return 0;
31600}
31601_ACEOF
31602rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031603if { (ac_try="$ac_link"
31604case "(($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_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031610 ac_status=$?
31611 grep -v '^ *+' conftest.er1 >conftest.err
31612 rm -f conftest.er1
31613 cat conftest.err >&5
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031615 (exit $ac_status); } &&
31616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31617 { (case "(($ac_try" in
31618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619 *) ac_try_echo=$ac_try;;
31620esac
31621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622 (eval "$ac_try") 2>&5
31623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; } &&
31626 { ac_try='test -s conftest$ac_exeext'
31627 { (case "(($ac_try" in
31628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31630esac
31631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_try") 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031636 ac_cv_func_alloca_works=yes
31637else
31638 echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
Reid Spencera773bd52006-08-04 18:18:08 +000031641 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031642fi
Reid Spencera773bd52006-08-04 18:18:08 +000031643
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031644rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031645 conftest$ac_exeext conftest.$ac_ext
31646fi
Reid Spencera773bd52006-08-04 18:18:08 +000031647{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31648echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031649
31650if test $ac_cv_func_alloca_works = yes; then
31651
31652cat >>confdefs.h <<\_ACEOF
31653#define HAVE_ALLOCA 1
31654_ACEOF
31655
31656else
31657 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31658# that cause trouble. Some versions do not even contain alloca or
31659# contain a buggy version. If you still want to use their alloca,
31660# use ar to extract alloca.o from them instead of compiling alloca.c.
31661
Reid Spencera773bd52006-08-04 18:18:08 +000031662ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031663
31664cat >>confdefs.h <<\_ACEOF
31665#define C_ALLOCA 1
31666_ACEOF
31667
31668
Reid Spencera773bd52006-08-04 18:18:08 +000031669{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31670echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031671if test "${ac_cv_os_cray+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
31674 cat >conftest.$ac_ext <<_ACEOF
31675/* confdefs.h. */
31676_ACEOF
31677cat confdefs.h >>conftest.$ac_ext
31678cat >>conftest.$ac_ext <<_ACEOF
31679/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031680#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031681webecray
31682#else
31683wenotbecray
31684#endif
31685
31686_ACEOF
31687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31688 $EGREP "webecray" >/dev/null 2>&1; then
31689 ac_cv_os_cray=yes
31690else
31691 ac_cv_os_cray=no
31692fi
31693rm -f conftest*
31694
31695fi
Reid Spencera773bd52006-08-04 18:18:08 +000031696{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31697echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031698if test $ac_cv_os_cray = yes; then
31699 for ac_func in _getb67 GETB67 getb67; do
31700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031704 echo $ECHO_N "(cached) $ECHO_C" >&6
31705else
31706 cat >conftest.$ac_ext <<_ACEOF
31707/* confdefs.h. */
31708_ACEOF
31709cat confdefs.h >>conftest.$ac_ext
31710cat >>conftest.$ac_ext <<_ACEOF
31711/* end confdefs.h. */
31712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31714#define $ac_func innocuous_$ac_func
31715
31716/* System header to define __stub macros and hopefully few prototypes,
31717 which can conflict with char $ac_func (); below.
31718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31719 <limits.h> exists even on freestanding compilers. */
31720
31721#ifdef __STDC__
31722# include <limits.h>
31723#else
31724# include <assert.h>
31725#endif
31726
31727#undef $ac_func
31728
Reid Spencera773bd52006-08-04 18:18:08 +000031729/* Override any GCC internal prototype to avoid an error.
31730 Use char because int might match the return type of a GCC
31731 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031732#ifdef __cplusplus
31733extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031734#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031735char $ac_func ();
31736/* The GNU C library defines this for functions which it implements
31737 to always fail with ENOSYS. Some functions are actually named
31738 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031739#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031740choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031741#endif
31742
31743int
31744main ()
31745{
Reid Spencera773bd52006-08-04 18:18:08 +000031746return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031747 ;
31748 return 0;
31749}
31750_ACEOF
31751rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031752if { (ac_try="$ac_link"
31753case "(($ac_try" in
31754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31756esac
31757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031759 ac_status=$?
31760 grep -v '^ *+' conftest.er1 >conftest.err
31761 rm -f conftest.er1
31762 cat conftest.err >&5
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031764 (exit $ac_status); } &&
31765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766 { (case "(($ac_try" in
31767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768 *) ac_try_echo=$ac_try;;
31769esac
31770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771 (eval "$ac_try") 2>&5
31772 ac_status=$?
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; } &&
31775 { ac_try='test -s conftest$ac_exeext'
31776 { (case "(($ac_try" in
31777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778 *) ac_try_echo=$ac_try;;
31779esac
31780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781 (eval "$ac_try") 2>&5
31782 ac_status=$?
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031785 eval "$as_ac_var=yes"
31786else
31787 echo "$as_me: failed program was:" >&5
31788sed 's/^/| /' conftest.$ac_ext >&5
31789
Reid Spencera773bd52006-08-04 18:18:08 +000031790 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031791fi
Reid Spencera773bd52006-08-04 18:18:08 +000031792
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031793rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031794 conftest$ac_exeext conftest.$ac_ext
31795fi
Reid Spencera773bd52006-08-04 18:18:08 +000031796ac_res=`eval echo '${'$as_ac_var'}'`
31797 { echo "$as_me:$LINENO: result: $ac_res" >&5
31798echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031799if test `eval echo '${'$as_ac_var'}'` = yes; then
31800
31801cat >>confdefs.h <<_ACEOF
31802#define CRAY_STACKSEG_END $ac_func
31803_ACEOF
31804
31805 break
31806fi
31807
31808 done
31809fi
31810
Reid Spencera773bd52006-08-04 18:18:08 +000031811{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31812echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031813if test "${ac_cv_c_stack_direction+set}" = set; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31815else
31816 if test "$cross_compiling" = yes; then
31817 ac_cv_c_stack_direction=0
31818else
31819 cat >conftest.$ac_ext <<_ACEOF
31820/* confdefs.h. */
31821_ACEOF
31822cat confdefs.h >>conftest.$ac_ext
31823cat >>conftest.$ac_ext <<_ACEOF
31824/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031825$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031826int
31827find_stack_direction ()
31828{
31829 static char *addr = 0;
31830 auto char dummy;
31831 if (addr == 0)
31832 {
31833 addr = &dummy;
31834 return find_stack_direction ();
31835 }
John Criswell0021c312004-02-13 21:57:29 +000031836 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031837 return (&dummy > addr) ? 1 : -1;
31838}
John Criswell0021c312004-02-13 21:57:29 +000031839
John Criswell0021c312004-02-13 21:57:29 +000031840int
31841main ()
31842{
Reid Spencera773bd52006-08-04 18:18:08 +000031843 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031844}
31845_ACEOF
31846rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031847if { (ac_try="$ac_link"
31848case "(($ac_try" in
31849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850 *) ac_try_echo=$ac_try;;
31851esac
31852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031854 ac_status=$?
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031857 { (case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31860esac
31861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031866 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031867else
31868 echo "$as_me: program exited with status $ac_status" >&5
31869echo "$as_me: failed program was:" >&5
31870sed 's/^/| /' conftest.$ac_ext >&5
31871
31872( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031873ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031874fi
Reid Spencera773bd52006-08-04 18:18:08 +000031875rm -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 +000031876fi
Reid Spencera773bd52006-08-04 18:18:08 +000031877
31878
John Criswell0021c312004-02-13 21:57:29 +000031879fi
Reid Spencera773bd52006-08-04 18:18:08 +000031880{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31881echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031882
31883cat >>confdefs.h <<_ACEOF
31884#define STACK_DIRECTION $ac_cv_c_stack_direction
31885_ACEOF
31886
31887
John Criswell0021c312004-02-13 21:57:29 +000031888fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031889
31890
Reid Spencera773bd52006-08-04 18:18:08 +000031891{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31892echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031893if test "${ac_cv_func_rand48+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
Reid Spencera773bd52006-08-04 18:18:08 +000031896 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031897ac_cpp='$CXXCPP $CPPFLAGS'
31898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31901
31902 cat >conftest.$ac_ext <<_ACEOF
31903/* confdefs.h. */
31904_ACEOF
31905cat confdefs.h >>conftest.$ac_ext
31906cat >>conftest.$ac_ext <<_ACEOF
31907/* end confdefs.h. */
31908#include <stdlib.h>
31909int
31910main ()
31911{
31912srand48(0);lrand48();drand48();
31913 ;
31914 return 0;
31915}
31916_ACEOF
31917rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031918if { (ac_try="$ac_compile"
31919case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31922esac
31923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031925 ac_status=$?
31926 grep -v '^ *+' conftest.er1 >conftest.err
31927 rm -f conftest.er1
31928 cat conftest.err >&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031930 (exit $ac_status); } &&
31931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31935esac
31936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; } &&
31941 { ac_try='test -s conftest.$ac_objext'
31942 { (case "(($ac_try" in
31943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944 *) ac_try_echo=$ac_try;;
31945esac
31946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947 (eval "$ac_try") 2>&5
31948 ac_status=$?
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031951 ac_cv_func_rand48=yes
31952else
31953 echo "$as_me: failed program was:" >&5
31954sed 's/^/| /' conftest.$ac_ext >&5
31955
Reid Spencera773bd52006-08-04 18:18:08 +000031956 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031957fi
Reid Spencera773bd52006-08-04 18:18:08 +000031958
31959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031960 ac_ext=c
31961ac_cpp='$CPP $CPPFLAGS'
31962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964ac_compiler_gnu=$ac_cv_c_compiler_gnu
31965
31966fi
Reid Spencera773bd52006-08-04 18:18:08 +000031967{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31968echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031969
31970if test "$ac_cv_func_rand48" = "yes" ; then
31971
31972cat >>confdefs.h <<\_ACEOF
31973#define HAVE_RAND48 1
31974_ACEOF
31975
31976fi
John Criswell0021c312004-02-13 21:57:29 +000031977
31978
Reid Spencera773bd52006-08-04 18:18:08 +000031979{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31980echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031981if test "${ac_cv_cxx_namespaces+set}" = set; then
31982 echo $ECHO_N "(cached) $ECHO_C" >&6
31983else
Reid Spencera773bd52006-08-04 18:18:08 +000031984 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031985ac_cpp='$CXXCPP $CPPFLAGS'
31986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989
31990 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031991/* confdefs.h. */
31992_ACEOF
31993cat confdefs.h >>conftest.$ac_ext
31994cat >>conftest.$ac_ext <<_ACEOF
31995/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031996namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031997int
31998main ()
31999{
32000using namespace Outer::Inner; return i;
32001 ;
32002 return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032006if { (ac_try="$ac_compile"
32007case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032014 grep -v '^ *+' conftest.er1 >conftest.err
32015 rm -f conftest.er1
32016 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32023esac
32024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest.$ac_objext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032039 ac_cv_cxx_namespaces=yes
32040else
32041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032042sed 's/^/| /' conftest.$ac_ext >&5
32043
Reid Spencera773bd52006-08-04 18:18:08 +000032044 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032045fi
Reid Spencera773bd52006-08-04 18:18:08 +000032046
32047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032048 ac_ext=c
32049ac_cpp='$CPP $CPPFLAGS'
32050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052ac_compiler_gnu=$ac_cv_c_compiler_gnu
32053
32054
32055fi
Reid Spencera773bd52006-08-04 18:18:08 +000032056{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32057echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032058if test "$ac_cv_cxx_namespaces" = yes; then
32059
32060cat >>confdefs.h <<\_ACEOF
32061#define HAVE_NAMESPACES
32062_ACEOF
32063
32064fi
32065
Reid Spencera773bd52006-08-04 18:18:08 +000032066{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32067echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032068if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032069 echo $ECHO_N "(cached) $ECHO_C" >&6
32070else
32071
Reid Spencera773bd52006-08-04 18:18:08 +000032072 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032073ac_cpp='$CXXCPP $CPPFLAGS'
32074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32077
32078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032079/* confdefs.h. */
32080_ACEOF
32081cat confdefs.h >>conftest.$ac_ext
32082cat >>conftest.$ac_ext <<_ACEOF
32083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032084#include <ext/hash_map>
32085#ifdef HAVE_NAMESPACES
32086using namespace std;
32087#endif
John Criswell7a73b802003-06-30 21:59:07 +000032088int
32089main ()
32090{
Brian Gaeke90583492003-11-10 03:06:28 +000032091hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032092 ;
32093 return 0;
32094}
32095_ACEOF
32096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032097if { (ac_try="$ac_compile"
32098case "(($ac_try" in
32099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32101esac
32102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032105 grep -v '^ *+' conftest.er1 >conftest.err
32106 rm -f conftest.er1
32107 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32117 ac_status=$?
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try='test -s conftest.$ac_objext'
32121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32124esac
32125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
32127 ac_status=$?
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032130 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032131else
32132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032133sed 's/^/| /' conftest.$ac_ext >&5
32134
Reid Spencera773bd52006-08-04 18:18:08 +000032135 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032136fi
Reid Spencera773bd52006-08-04 18:18:08 +000032137
32138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032139 ac_ext=c
32140ac_cpp='$CPP $CPPFLAGS'
32141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144
John Criswell7a73b802003-06-30 21:59:07 +000032145fi
Reid Spencera773bd52006-08-04 18:18:08 +000032146{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32147echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032148 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32149 then
John Criswell9f011862004-09-24 18:28:00 +000032150
32151cat >>confdefs.h <<\_ACEOF
32152#define HAVE_STD_EXT_HASH_MAP 1
32153_ACEOF
32154
32155 else
32156
32157cat >>confdefs.h <<\_ACEOF
32158#define HAVE_STD_EXT_HASH_MAP 0
32159_ACEOF
32160
Brian Gaeke90583492003-11-10 03:06:28 +000032161 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032162
Reid Spencera773bd52006-08-04 18:18:08 +000032163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32164echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032165if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
32168
Reid Spencera773bd52006-08-04 18:18:08 +000032169 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032170ac_cpp='$CXXCPP $CPPFLAGS'
32171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32174
32175 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032176/* confdefs.h. */
32177_ACEOF
32178cat confdefs.h >>conftest.$ac_ext
32179cat >>conftest.$ac_ext <<_ACEOF
32180/* end confdefs.h. */
32181#include <ext/hash_map>
32182#ifdef HAVE_NAMESPACES
32183using namespace __gnu_cxx;
32184#endif
32185int
32186main ()
32187{
32188hash_map<int,int> t;
32189 ;
32190 return 0;
32191}
32192_ACEOF
32193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032194if { (ac_try="$ac_compile"
32195case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32198esac
32199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032202 grep -v '^ *+' conftest.er1 >conftest.err
32203 rm -f conftest.er1
32204 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208 { (case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32211esac
32212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_try") 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest.$ac_objext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32221esac
32222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32224 ac_status=$?
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032227 ac_cv_cxx_have_gnu_ext_hash_map=yes
32228else
32229 echo "$as_me: failed program was:" >&5
32230sed 's/^/| /' conftest.$ac_ext >&5
32231
Reid Spencera773bd52006-08-04 18:18:08 +000032232 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032233fi
Reid Spencera773bd52006-08-04 18:18:08 +000032234
32235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032236 ac_ext=c
32237ac_cpp='$CPP $CPPFLAGS'
32238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241
32242fi
Reid Spencera773bd52006-08-04 18:18:08 +000032243{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32244echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032245 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32246 then
John Criswell9f011862004-09-24 18:28:00 +000032247
32248cat >>confdefs.h <<\_ACEOF
32249#define HAVE_GNU_EXT_HASH_MAP 1
32250_ACEOF
32251
32252 else
32253
32254cat >>confdefs.h <<\_ACEOF
32255#define HAVE_GNU_EXT_HASH_MAP 0
32256_ACEOF
32257
Brian Gaeke90583492003-11-10 03:06:28 +000032258 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032259
Reid Spencera773bd52006-08-04 18:18:08 +000032260 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32261echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032262if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32264else
John Criswell7a73b802003-06-30 21:59:07 +000032265
Reid Spencera773bd52006-08-04 18:18:08 +000032266 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032267ac_cpp='$CXXCPP $CPPFLAGS'
32268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271
32272 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032273/* confdefs.h. */
32274_ACEOF
32275cat confdefs.h >>conftest.$ac_ext
32276cat >>conftest.$ac_ext <<_ACEOF
32277/* end confdefs.h. */
32278#include <hash_map>
32279int
32280main ()
32281{
32282hash_map<int,int> t;
32283 ;
32284 return 0;
32285}
32286_ACEOF
32287rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032288if { (ac_try="$ac_compile"
32289case "(($ac_try" in
32290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291 *) ac_try_echo=$ac_try;;
32292esac
32293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32294 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032295 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032296 grep -v '^ *+' conftest.er1 >conftest.err
32297 rm -f conftest.er1
32298 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032300 (exit $ac_status); } &&
32301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32302 { (case "(($ac_try" in
32303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304 *) ac_try_echo=$ac_try;;
32305esac
32306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_try") 2>&5
32308 ac_status=$?
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); }; } &&
32311 { ac_try='test -s conftest.$ac_objext'
32312 { (case "(($ac_try" in
32313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32314 *) ac_try_echo=$ac_try;;
32315esac
32316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32317 (eval "$ac_try") 2>&5
32318 ac_status=$?
32319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032321 ac_cv_cxx_have_global_hash_map=yes
32322else
32323 echo "$as_me: failed program was:" >&5
32324sed 's/^/| /' conftest.$ac_ext >&5
32325
Reid Spencera773bd52006-08-04 18:18:08 +000032326 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032327fi
Reid Spencera773bd52006-08-04 18:18:08 +000032328
32329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032330 ac_ext=c
32331ac_cpp='$CPP $CPPFLAGS'
32332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32334ac_compiler_gnu=$ac_cv_c_compiler_gnu
32335
32336fi
Reid Spencera773bd52006-08-04 18:18:08 +000032337{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32338echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032339 if test "$ac_cv_cxx_have_global_hash_map" = yes
32340 then
John Criswell9f011862004-09-24 18:28:00 +000032341
32342cat >>confdefs.h <<\_ACEOF
32343#define HAVE_GLOBAL_HASH_MAP 1
32344_ACEOF
32345
32346 else
32347
32348cat >>confdefs.h <<\_ACEOF
32349#define HAVE_GLOBAL_HASH_MAP 0
32350_ACEOF
32351
Brian Gaeke90583492003-11-10 03:06:28 +000032352 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032353
Reid Spencera773bd52006-08-04 18:18:08 +000032354{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32355echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032356if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032357 echo $ECHO_N "(cached) $ECHO_C" >&6
32358else
32359
Reid Spencera773bd52006-08-04 18:18:08 +000032360 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032361ac_cpp='$CXXCPP $CPPFLAGS'
32362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365
32366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032367/* confdefs.h. */
32368_ACEOF
32369cat confdefs.h >>conftest.$ac_ext
32370cat >>conftest.$ac_ext <<_ACEOF
32371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032372#include <ext/hash_set>
32373#ifdef HAVE_NAMESPACES
32374using namespace std;
32375#endif
John Criswell7a73b802003-06-30 21:59:07 +000032376int
32377main ()
32378{
Brian Gaeke90583492003-11-10 03:06:28 +000032379hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032380 ;
32381 return 0;
32382}
32383_ACEOF
32384rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032385if { (ac_try="$ac_compile"
32386case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32389esac
32390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032393 grep -v '^ *+' conftest.er1 >conftest.err
32394 rm -f conftest.er1
32395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032397 (exit $ac_status); } &&
32398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399 { (case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_try") 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try='test -s conftest.$ac_objext'
32409 { (case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32412esac
32413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32415 ac_status=$?
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032418 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032419else
32420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032421sed 's/^/| /' conftest.$ac_ext >&5
32422
Reid Spencera773bd52006-08-04 18:18:08 +000032423 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032424fi
Reid Spencera773bd52006-08-04 18:18:08 +000032425
32426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032427 ac_ext=c
32428ac_cpp='$CPP $CPPFLAGS'
32429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431ac_compiler_gnu=$ac_cv_c_compiler_gnu
32432
32433fi
Reid Spencera773bd52006-08-04 18:18:08 +000032434{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32435echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032436 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32437 then
John Criswell9f011862004-09-24 18:28:00 +000032438
32439cat >>confdefs.h <<\_ACEOF
32440#define HAVE_STD_EXT_HASH_SET 1
32441_ACEOF
32442
32443 else
32444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_STD_EXT_HASH_SET 0
32447_ACEOF
32448
Brian Gaeke90583492003-11-10 03:06:28 +000032449 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032450
Reid Spencera773bd52006-08-04 18:18:08 +000032451 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32452echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032453if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32454 echo $ECHO_N "(cached) $ECHO_C" >&6
32455else
32456
Reid Spencera773bd52006-08-04 18:18:08 +000032457 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032458ac_cpp='$CXXCPP $CPPFLAGS'
32459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32462
John Criswell7a73b802003-06-30 21:59:07 +000032463 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032464/* confdefs.h. */
32465_ACEOF
32466cat confdefs.h >>conftest.$ac_ext
32467cat >>conftest.$ac_ext <<_ACEOF
32468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032469#include <ext/hash_set>
32470#ifdef HAVE_NAMESPACES
32471using namespace __gnu_cxx;
32472#endif
John Criswell7a73b802003-06-30 21:59:07 +000032473int
32474main ()
32475{
Brian Gaeke90583492003-11-10 03:06:28 +000032476hash_set<int> t;
32477 ;
32478 return 0;
32479}
32480_ACEOF
32481rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032482if { (ac_try="$ac_compile"
32483case "(($ac_try" in
32484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485 *) ac_try_echo=$ac_try;;
32486esac
32487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032490 grep -v '^ *+' conftest.er1 >conftest.err
32491 rm -f conftest.er1
32492 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032494 (exit $ac_status); } &&
32495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496 { (case "(($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_try") 2>&5
32502 ac_status=$?
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; } &&
32505 { ac_try='test -s conftest.$ac_objext'
32506 { (case "(($ac_try" in
32507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508 *) ac_try_echo=$ac_try;;
32509esac
32510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511 (eval "$ac_try") 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032515 ac_cv_cxx_have_gnu_ext_hash_set=yes
32516else
32517 echo "$as_me: failed program was:" >&5
32518sed 's/^/| /' conftest.$ac_ext >&5
32519
Reid Spencera773bd52006-08-04 18:18:08 +000032520 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032521fi
Reid Spencera773bd52006-08-04 18:18:08 +000032522
32523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032524 ac_ext=c
32525ac_cpp='$CPP $CPPFLAGS'
32526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528ac_compiler_gnu=$ac_cv_c_compiler_gnu
32529
32530fi
Reid Spencera773bd52006-08-04 18:18:08 +000032531{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32532echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032533 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32534 then
John Criswell9f011862004-09-24 18:28:00 +000032535
32536cat >>confdefs.h <<\_ACEOF
32537#define HAVE_GNU_EXT_HASH_SET 1
32538_ACEOF
32539
32540 else
32541
32542cat >>confdefs.h <<\_ACEOF
32543#define HAVE_GNU_EXT_HASH_SET 0
32544_ACEOF
32545
Brian Gaeke90583492003-11-10 03:06:28 +000032546 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032547
Reid Spencera773bd52006-08-04 18:18:08 +000032548 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32549echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032550if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32552else
32553
Reid Spencera773bd52006-08-04 18:18:08 +000032554 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032555ac_cpp='$CXXCPP $CPPFLAGS'
32556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32559
32560 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032561/* confdefs.h. */
32562_ACEOF
32563cat confdefs.h >>conftest.$ac_ext
32564cat >>conftest.$ac_ext <<_ACEOF
32565/* end confdefs.h. */
32566#include <hash_set>
32567int
32568main ()
32569{
John Criswell7a73b802003-06-30 21:59:07 +000032570hash_set<int> t; return 0;
32571 ;
32572 return 0;
32573}
32574_ACEOF
32575rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032576if { (ac_try="$ac_compile"
32577case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32580esac
32581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032584 grep -v '^ *+' conftest.er1 >conftest.err
32585 rm -f conftest.er1
32586 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032588 (exit $ac_status); } &&
32589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32590 { (case "(($ac_try" in
32591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32592 *) ac_try_echo=$ac_try;;
32593esac
32594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32595 (eval "$ac_try") 2>&5
32596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; } &&
32599 { ac_try='test -s conftest.$ac_objext'
32600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032609 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032610else
32611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032612sed 's/^/| /' conftest.$ac_ext >&5
32613
Reid Spencera773bd52006-08-04 18:18:08 +000032614 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032615fi
Reid Spencera773bd52006-08-04 18:18:08 +000032616
32617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032618 ac_ext=c
32619ac_cpp='$CPP $CPPFLAGS'
32620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32622ac_compiler_gnu=$ac_cv_c_compiler_gnu
32623
John Criswell7a73b802003-06-30 21:59:07 +000032624fi
Reid Spencera773bd52006-08-04 18:18:08 +000032625{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32626echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032627 if test "$ac_cv_cxx_have_global_hash_set" = yes
32628 then
John Criswell9f011862004-09-24 18:28:00 +000032629
32630cat >>confdefs.h <<\_ACEOF
32631#define HAVE_GLOBAL_HASH_SET 1
32632_ACEOF
32633
32634 else
32635
32636cat >>confdefs.h <<\_ACEOF
32637#define HAVE_GLOBAL_HASH_SET 0
32638_ACEOF
32639
Brian Gaeke90583492003-11-10 03:06:28 +000032640 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032641
Reid Spencera773bd52006-08-04 18:18:08 +000032642{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32643echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032644if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32646else
32647
Reid Spencera773bd52006-08-04 18:18:08 +000032648 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032649ac_cpp='$CXXCPP $CPPFLAGS'
32650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653
32654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032655/* confdefs.h. */
32656_ACEOF
32657cat confdefs.h >>conftest.$ac_ext
32658cat >>conftest.$ac_ext <<_ACEOF
32659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032660#include <iterator>
32661#ifdef HAVE_NAMESPACES
32662using namespace std;
32663#endif
John Criswell7a73b802003-06-30 21:59:07 +000032664int
32665main ()
32666{
32667iterator<int,int,int> t; return 0;
32668 ;
32669 return 0;
32670}
32671_ACEOF
32672rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032673if { (ac_try="$ac_compile"
32674case "(($ac_try" in
32675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676 *) ac_try_echo=$ac_try;;
32677esac
32678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032681 grep -v '^ *+' conftest.er1 >conftest.err
32682 rm -f conftest.er1
32683 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032685 (exit $ac_status); } &&
32686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687 { (case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32690esac
32691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_try") 2>&5
32693 ac_status=$?
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); }; } &&
32696 { ac_try='test -s conftest.$ac_objext'
32697 { (case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32700esac
32701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_try") 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032706 ac_cv_cxx_have_std_iterator=yes
32707else
32708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032709sed 's/^/| /' conftest.$ac_ext >&5
32710
Reid Spencera773bd52006-08-04 18:18:08 +000032711 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032712fi
Reid Spencera773bd52006-08-04 18:18:08 +000032713
32714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032715 ac_ext=c
32716ac_cpp='$CPP $CPPFLAGS'
32717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719ac_compiler_gnu=$ac_cv_c_compiler_gnu
32720
32721
32722fi
Reid Spencera773bd52006-08-04 18:18:08 +000032723{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32724echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032725if test "$ac_cv_cxx_have_std_iterator" = yes
32726then
John Criswell40468462004-09-24 21:19:06 +000032727
32728cat >>confdefs.h <<\_ACEOF
32729#define HAVE_STD_ITERATOR 1
32730_ACEOF
32731
32732else
32733
32734cat >>confdefs.h <<\_ACEOF
32735#define HAVE_STD_ITERATOR 0
32736_ACEOF
32737
John Criswell7a73b802003-06-30 21:59:07 +000032738fi
32739
Reid Spencera773bd52006-08-04 18:18:08 +000032740{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32741echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032742if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32744else
32745
Reid Spencera773bd52006-08-04 18:18:08 +000032746 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032747ac_cpp='$CXXCPP $CPPFLAGS'
32748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32751
32752 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032753/* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032758#include <iterator>
32759#ifdef HAVE_NAMESPACES
32760using namespace std;
32761#endif
John Criswell7a73b802003-06-30 21:59:07 +000032762int
32763main ()
32764{
John Criswellc78022e2003-07-29 19:11:58 +000032765bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032766 ;
32767 return 0;
32768}
32769_ACEOF
32770rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032771if { (ac_try="$ac_compile"
32772case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32775esac
32776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032779 grep -v '^ *+' conftest.er1 >conftest.err
32780 rm -f conftest.er1
32781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032783 (exit $ac_status); } &&
32784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32785 { (case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32788esac
32789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_try") 2>&5
32791 ac_status=$?
32792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793 (exit $ac_status); }; } &&
32794 { ac_try='test -s conftest.$ac_objext'
32795 { (case "(($ac_try" in
32796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797 *) ac_try_echo=$ac_try;;
32798esac
32799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800 (eval "$ac_try") 2>&5
32801 ac_status=$?
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032804 ac_cv_cxx_have_bi_iterator=yes
32805else
32806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032807sed 's/^/| /' conftest.$ac_ext >&5
32808
Reid Spencera773bd52006-08-04 18:18:08 +000032809 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032810fi
Reid Spencera773bd52006-08-04 18:18:08 +000032811
32812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032813 ac_ext=c
32814ac_cpp='$CPP $CPPFLAGS'
32815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817ac_compiler_gnu=$ac_cv_c_compiler_gnu
32818
32819
32820fi
Reid Spencera773bd52006-08-04 18:18:08 +000032821{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32822echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032823if test "$ac_cv_cxx_have_bi_iterator" = yes
32824then
John Criswell40468462004-09-24 21:19:06 +000032825
32826cat >>confdefs.h <<\_ACEOF
32827#define HAVE_BI_ITERATOR 1
32828_ACEOF
32829
32830else
32831
32832cat >>confdefs.h <<\_ACEOF
32833#define HAVE_BI_ITERATOR 0
32834_ACEOF
32835
John Criswell7a73b802003-06-30 21:59:07 +000032836fi
32837
Reid Spencera773bd52006-08-04 18:18:08 +000032838{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32839echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032840if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32842else
32843
Reid Spencera773bd52006-08-04 18:18:08 +000032844 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032845ac_cpp='$CXXCPP $CPPFLAGS'
32846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32849
32850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032851/* confdefs.h. */
32852_ACEOF
32853cat confdefs.h >>conftest.$ac_ext
32854cat >>conftest.$ac_ext <<_ACEOF
32855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032856#include <iterator>
32857#ifdef HAVE_NAMESPACES
32858using namespace std;
32859#endif
John Criswell7a73b802003-06-30 21:59:07 +000032860int
32861main ()
32862{
John Criswellc78022e2003-07-29 19:11:58 +000032863forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032864 ;
32865 return 0;
32866}
32867_ACEOF
32868rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032869if { (ac_try="$ac_compile"
32870case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032876 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032877 grep -v '^ *+' conftest.er1 >conftest.err
32878 rm -f conftest.er1
32879 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032881 (exit $ac_status); } &&
32882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32883 { (case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32886esac
32887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_try") 2>&5
32889 ac_status=$?
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; } &&
32892 { ac_try='test -s conftest.$ac_objext'
32893 { (case "(($ac_try" in
32894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895 *) ac_try_echo=$ac_try;;
32896esac
32897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898 (eval "$ac_try") 2>&5
32899 ac_status=$?
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032902 ac_cv_cxx_have_fwd_iterator=yes
32903else
32904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032905sed 's/^/| /' conftest.$ac_ext >&5
32906
Reid Spencera773bd52006-08-04 18:18:08 +000032907 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032908fi
Reid Spencera773bd52006-08-04 18:18:08 +000032909
32910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032911 ac_ext=c
32912ac_cpp='$CPP $CPPFLAGS'
32913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32915ac_compiler_gnu=$ac_cv_c_compiler_gnu
32916
32917
32918fi
Reid Spencera773bd52006-08-04 18:18:08 +000032919{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32920echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032921if test "$ac_cv_cxx_have_fwd_iterator" = yes
32922then
John Criswell40468462004-09-24 21:19:06 +000032923
32924cat >>confdefs.h <<\_ACEOF
32925#define HAVE_FWD_ITERATOR 1
32926_ACEOF
32927
32928else
32929
32930cat >>confdefs.h <<\_ACEOF
32931#define HAVE_FWD_ITERATOR 0
32932_ACEOF
32933
John Criswell7a73b802003-06-30 21:59:07 +000032934fi
32935
32936
Reid Spencera773bd52006-08-04 18:18:08 +000032937{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32938echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032939if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
Reid Spencera773bd52006-08-04 18:18:08 +000032942 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032943ac_cpp='$CXXCPP $CPPFLAGS'
32944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32947
Reid Spencerabec8f92004-10-27 23:03:44 +000032948 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032949/* confdefs.h. */
32950_ACEOF
32951cat confdefs.h >>conftest.$ac_ext
32952cat >>conftest.$ac_ext <<_ACEOF
32953/* end confdefs.h. */
32954#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032955int
32956main ()
32957{
32958float f; isnan(f);
32959 ;
32960 return 0;
32961}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032962_ACEOF
32963rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032964if { (ac_try="$ac_compile"
32965case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032972 grep -v '^ *+' conftest.er1 >conftest.err
32973 rm -f conftest.er1
32974 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032976 (exit $ac_status); } &&
32977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32978 { (case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32981esac
32982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_try") 2>&5
32984 ac_status=$?
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); }; } &&
32987 { ac_try='test -s conftest.$ac_objext'
32988 { (case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32991esac
32992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993 (eval "$ac_try") 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032997 ac_cv_func_isnan_in_math_h=yes
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
Reid Spencera773bd52006-08-04 18:18:08 +000033002 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033003fi
Reid Spencera773bd52006-08-04 18:18:08 +000033004
33005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033006 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033007ac_cpp='$CPP $CPPFLAGS'
33008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010ac_compiler_gnu=$ac_cv_c_compiler_gnu
33011
33012fi
Reid Spencera773bd52006-08-04 18:18:08 +000033013{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33014echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033015
33016
33017if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033018
33019cat >>confdefs.h <<\_ACEOF
33020#define HAVE_ISNAN_IN_MATH_H 1
33021_ACEOF
33022
Reid Spencerabec8f92004-10-27 23:03:44 +000033023fi
33024
Reid Spencera773bd52006-08-04 18:18:08 +000033025{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33026echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033027if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33028 echo $ECHO_N "(cached) $ECHO_C" >&6
33029else
Reid Spencera773bd52006-08-04 18:18:08 +000033030 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033031ac_cpp='$CXXCPP $CPPFLAGS'
33032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33035
Reid Spencerabec8f92004-10-27 23:03:44 +000033036 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033037/* confdefs.h. */
33038_ACEOF
33039cat confdefs.h >>conftest.$ac_ext
33040cat >>conftest.$ac_ext <<_ACEOF
33041/* end confdefs.h. */
33042#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033043int
33044main ()
33045{
33046float f; isnan(f);
33047 ;
33048 return 0;
33049}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033050_ACEOF
33051rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033052if { (ac_try="$ac_compile"
33053case "(($ac_try" in
33054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055 *) ac_try_echo=$ac_try;;
33056esac
33057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033060 grep -v '^ *+' conftest.er1 >conftest.err
33061 rm -f conftest.er1
33062 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033064 (exit $ac_status); } &&
33065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33066 { (case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_try") 2>&5
33072 ac_status=$?
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; } &&
33075 { ac_try='test -s conftest.$ac_objext'
33076 { (case "(($ac_try" in
33077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078 *) ac_try_echo=$ac_try;;
33079esac
33080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081 (eval "$ac_try") 2>&5
33082 ac_status=$?
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033085 ac_cv_func_isnan_in_cmath=yes
33086else
33087 echo "$as_me: failed program was:" >&5
33088sed 's/^/| /' conftest.$ac_ext >&5
33089
Reid Spencera773bd52006-08-04 18:18:08 +000033090 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033091fi
Reid Spencera773bd52006-08-04 18:18:08 +000033092
33093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033094 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033095ac_cpp='$CPP $CPPFLAGS'
33096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33098ac_compiler_gnu=$ac_cv_c_compiler_gnu
33099
33100fi
Reid Spencera773bd52006-08-04 18:18:08 +000033101{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33102echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033103
33104if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033105
33106cat >>confdefs.h <<\_ACEOF
33107#define HAVE_ISNAN_IN_CMATH 1
33108_ACEOF
33109
Reid Spencerabec8f92004-10-27 23:03:44 +000033110fi
33111
Reid Spencera773bd52006-08-04 18:18:08 +000033112{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33113echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033114if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33115 echo $ECHO_N "(cached) $ECHO_C" >&6
33116else
Reid Spencera773bd52006-08-04 18:18:08 +000033117 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033118ac_cpp='$CXXCPP $CPPFLAGS'
33119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33122
Reid Spencerabec8f92004-10-27 23:03:44 +000033123 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033124/* confdefs.h. */
33125_ACEOF
33126cat confdefs.h >>conftest.$ac_ext
33127cat >>conftest.$ac_ext <<_ACEOF
33128/* end confdefs.h. */
33129#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033130int
33131main ()
33132{
33133float f; std::isnan(f);
33134 ;
33135 return 0;
33136}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033137_ACEOF
33138rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033139if { (ac_try="$ac_compile"
33140case "(($ac_try" in
33141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142 *) ac_try_echo=$ac_try;;
33143esac
33144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033147 grep -v '^ *+' conftest.er1 >conftest.err
33148 rm -f conftest.er1
33149 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033151 (exit $ac_status); } &&
33152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33153 { (case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33156esac
33157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_try") 2>&5
33159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; } &&
33162 { ac_try='test -s conftest.$ac_objext'
33163 { (case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33166esac
33167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_try") 2>&5
33169 ac_status=$?
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033172 ac_cv_func_std_isnan_in_cmath=yes
33173else
33174 echo "$as_me: failed program was:" >&5
33175sed 's/^/| /' conftest.$ac_ext >&5
33176
Reid Spencera773bd52006-08-04 18:18:08 +000033177 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033178fi
Reid Spencera773bd52006-08-04 18:18:08 +000033179
33180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033181 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033182ac_cpp='$CPP $CPPFLAGS'
33183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33185ac_compiler_gnu=$ac_cv_c_compiler_gnu
33186
33187fi
Reid Spencera773bd52006-08-04 18:18:08 +000033188{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33189echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033190
33191if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033192
33193cat >>confdefs.h <<\_ACEOF
33194#define HAVE_STD_ISNAN_IN_CMATH 1
33195_ACEOF
33196
Reid Spencerabec8f92004-10-27 23:03:44 +000033197fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033198
33199
Reid Spencera773bd52006-08-04 18:18:08 +000033200{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33201echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033202if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33203 echo $ECHO_N "(cached) $ECHO_C" >&6
33204else
Reid Spencera773bd52006-08-04 18:18:08 +000033205 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033206ac_cpp='$CXXCPP $CPPFLAGS'
33207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33210
Reid Spencerabec8f92004-10-27 23:03:44 +000033211 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033212/* confdefs.h. */
33213_ACEOF
33214cat confdefs.h >>conftest.$ac_ext
33215cat >>conftest.$ac_ext <<_ACEOF
33216/* end confdefs.h. */
33217#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033218int
33219main ()
33220{
33221float f; isinf(f);
33222 ;
33223 return 0;
33224}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033225_ACEOF
33226rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033227if { (ac_try="$ac_compile"
33228case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33231esac
33232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033234 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033235 grep -v '^ *+' conftest.er1 >conftest.err
33236 rm -f conftest.er1
33237 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033239 (exit $ac_status); } &&
33240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33241 { (case "(($ac_try" in
33242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243 *) ac_try_echo=$ac_try;;
33244esac
33245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246 (eval "$ac_try") 2>&5
33247 ac_status=$?
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; } &&
33250 { ac_try='test -s conftest.$ac_objext'
33251 { (case "(($ac_try" in
33252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253 *) ac_try_echo=$ac_try;;
33254esac
33255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256 (eval "$ac_try") 2>&5
33257 ac_status=$?
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033260 ac_cv_func_isinf_in_math_h=yes
33261else
33262 echo "$as_me: failed program was:" >&5
33263sed 's/^/| /' conftest.$ac_ext >&5
33264
Reid Spencera773bd52006-08-04 18:18:08 +000033265 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033266fi
Reid Spencera773bd52006-08-04 18:18:08 +000033267
33268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033269 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033270ac_cpp='$CPP $CPPFLAGS'
33271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273ac_compiler_gnu=$ac_cv_c_compiler_gnu
33274
33275fi
Reid Spencera773bd52006-08-04 18:18:08 +000033276{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33277echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033278
33279if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033280
33281cat >>confdefs.h <<\_ACEOF
33282#define HAVE_ISINF_IN_MATH_H 1
33283_ACEOF
33284
Reid Spencerabec8f92004-10-27 23:03:44 +000033285fi
33286
Reid Spencera773bd52006-08-04 18:18:08 +000033287{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33288echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033289if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33290 echo $ECHO_N "(cached) $ECHO_C" >&6
33291else
Reid Spencera773bd52006-08-04 18:18:08 +000033292 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033293ac_cpp='$CXXCPP $CPPFLAGS'
33294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33297
Reid Spencerabec8f92004-10-27 23:03:44 +000033298 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033299/* confdefs.h. */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h. */
33304#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033305int
33306main ()
33307{
33308float f; isinf(f);
33309 ;
33310 return 0;
33311}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033312_ACEOF
33313rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033314if { (ac_try="$ac_compile"
33315case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33318esac
33319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033322 grep -v '^ *+' conftest.er1 >conftest.err
33323 rm -f conftest.er1
33324 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033326 (exit $ac_status); } &&
33327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33328 { (case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33331esac
33332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_try") 2>&5
33334 ac_status=$?
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } &&
33337 { ac_try='test -s conftest.$ac_objext'
33338 { (case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33341esac
33342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_try") 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033347 ac_cv_func_isinf_in_cmath=yes
33348else
33349 echo "$as_me: failed program was:" >&5
33350sed 's/^/| /' conftest.$ac_ext >&5
33351
Reid Spencera773bd52006-08-04 18:18:08 +000033352 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033353fi
Reid Spencera773bd52006-08-04 18:18:08 +000033354
33355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033356 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033357ac_cpp='$CPP $CPPFLAGS'
33358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360ac_compiler_gnu=$ac_cv_c_compiler_gnu
33361
33362fi
Reid Spencera773bd52006-08-04 18:18:08 +000033363{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33364echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033365
33366if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033367
33368cat >>confdefs.h <<\_ACEOF
33369#define HAVE_ISINF_IN_CMATH 1
33370_ACEOF
33371
Reid Spencerabec8f92004-10-27 23:03:44 +000033372fi
33373
Reid Spencera773bd52006-08-04 18:18:08 +000033374{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33375echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033376if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33377 echo $ECHO_N "(cached) $ECHO_C" >&6
33378else
Reid Spencera773bd52006-08-04 18:18:08 +000033379 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033380ac_cpp='$CXXCPP $CPPFLAGS'
33381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33384
Reid Spencerabec8f92004-10-27 23:03:44 +000033385 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033386/* confdefs.h. */
33387_ACEOF
33388cat confdefs.h >>conftest.$ac_ext
33389cat >>conftest.$ac_ext <<_ACEOF
33390/* end confdefs.h. */
33391#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033392int
33393main ()
33394{
33395float f; std::isinf(f)}
33396 ;
33397 return 0;
33398}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033399_ACEOF
33400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033401if { (ac_try="$ac_compile"
33402case "(($ac_try" in
33403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404 *) ac_try_echo=$ac_try;;
33405esac
33406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033409 grep -v '^ *+' conftest.er1 >conftest.err
33410 rm -f conftest.er1
33411 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033413 (exit $ac_status); } &&
33414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33415 { (case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33418esac
33419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_try") 2>&5
33421 ac_status=$?
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); }; } &&
33424 { ac_try='test -s conftest.$ac_objext'
33425 { (case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33428esac
33429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_try") 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033434 ac_cv_func_std_isinf_in_cmath=yes
33435else
33436 echo "$as_me: failed program was:" >&5
33437sed 's/^/| /' conftest.$ac_ext >&5
33438
Reid Spencera773bd52006-08-04 18:18:08 +000033439 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033440fi
Reid Spencera773bd52006-08-04 18:18:08 +000033441
33442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033443 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033444ac_cpp='$CPP $CPPFLAGS'
33445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33447ac_compiler_gnu=$ac_cv_c_compiler_gnu
33448
33449fi
Reid Spencera773bd52006-08-04 18:18:08 +000033450{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33451echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033452
33453if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033454
33455cat >>confdefs.h <<\_ACEOF
33456#define HAVE_STD_ISINF_IN_CMATH 1
33457_ACEOF
33458
Reid Spencerabec8f92004-10-27 23:03:44 +000033459fi
33460
Reid Spencera773bd52006-08-04 18:18:08 +000033461{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33462echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033463if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33464 echo $ECHO_N "(cached) $ECHO_C" >&6
33465else
Reid Spencera773bd52006-08-04 18:18:08 +000033466 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033467ac_cpp='$CXXCPP $CPPFLAGS'
33468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33471
Reid Spencerabec8f92004-10-27 23:03:44 +000033472 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033473/* confdefs.h. */
33474_ACEOF
33475cat confdefs.h >>conftest.$ac_ext
33476cat >>conftest.$ac_ext <<_ACEOF
33477/* end confdefs.h. */
33478#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033479int
33480main ()
33481{
33482float f; finite(f);
33483 ;
33484 return 0;
33485}
Brian Gaeked59a6472004-07-21 03:33:58 +000033486_ACEOF
33487rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033488if { (ac_try="$ac_compile"
33489case "(($ac_try" in
33490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491 *) ac_try_echo=$ac_try;;
33492esac
33493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033496 grep -v '^ *+' conftest.er1 >conftest.err
33497 rm -f conftest.er1
33498 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033500 (exit $ac_status); } &&
33501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33502 { (case "(($ac_try" in
33503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504 *) ac_try_echo=$ac_try;;
33505esac
33506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507 (eval "$ac_try") 2>&5
33508 ac_status=$?
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; } &&
33511 { ac_try='test -s conftest.$ac_objext'
33512 { (case "(($ac_try" in
33513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514 *) ac_try_echo=$ac_try;;
33515esac
33516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517 (eval "$ac_try") 2>&5
33518 ac_status=$?
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033521 ac_cv_func_finite_in_ieeefp_h=yes
33522else
33523 echo "$as_me: failed program was:" >&5
33524sed 's/^/| /' conftest.$ac_ext >&5
33525
Reid Spencera773bd52006-08-04 18:18:08 +000033526 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033527fi
Reid Spencera773bd52006-08-04 18:18:08 +000033528
33529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033530 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033531ac_cpp='$CPP $CPPFLAGS'
33532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534ac_compiler_gnu=$ac_cv_c_compiler_gnu
33535
33536fi
Reid Spencera773bd52006-08-04 18:18:08 +000033537{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33538echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033539
Brian Gaeke6802b552004-10-28 05:06:45 +000033540if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033541
33542cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033543#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033544_ACEOF
33545
Reid Spencerabec8f92004-10-27 23:03:44 +000033546fi
33547
33548
33549
Reid Spencer30fe5262007-01-20 07:48:49 +000033550if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033551
33552
33553for ac_header in stdlib.h unistd.h
33554do
33555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033560 echo $ECHO_N "(cached) $ECHO_C" >&6
33561fi
Reid Spencera773bd52006-08-04 18:18:08 +000033562ac_res=`eval echo '${'$as_ac_Header'}'`
33563 { echo "$as_me:$LINENO: result: $ac_res" >&5
33564echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033565else
33566 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033569cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033570/* confdefs.h. */
33571_ACEOF
33572cat confdefs.h >>conftest.$ac_ext
33573cat >>conftest.$ac_ext <<_ACEOF
33574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033575$ac_includes_default
33576#include <$ac_header>
33577_ACEOF
33578rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033579if { (ac_try="$ac_compile"
33580case "(($ac_try" in
33581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582 *) ac_try_echo=$ac_try;;
33583esac
33584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033587 grep -v '^ *+' conftest.er1 >conftest.err
33588 rm -f conftest.er1
33589 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033591 (exit $ac_status); } &&
33592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593 { (case "(($ac_try" in
33594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595 *) ac_try_echo=$ac_try;;
33596esac
33597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598 (eval "$ac_try") 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest.$ac_objext'
33603 { (case "(($ac_try" in
33604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605 *) ac_try_echo=$ac_try;;
33606esac
33607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608 (eval "$ac_try") 2>&5
33609 ac_status=$?
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033612 ac_header_compiler=yes
33613else
33614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033615sed 's/^/| /' conftest.$ac_ext >&5
33616
Reid Spencera773bd52006-08-04 18:18:08 +000033617 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033618fi
Reid Spencera773bd52006-08-04 18:18:08 +000033619
33620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33622echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033623
33624# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033627cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033628/* confdefs.h. */
33629_ACEOF
33630cat confdefs.h >>conftest.$ac_ext
33631cat >>conftest.$ac_ext <<_ACEOF
33632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033633#include <$ac_header>
33634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033635if { (ac_try="$ac_cpp conftest.$ac_ext"
33636case "(($ac_try" in
33637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33638 *) ac_try_echo=$ac_try;;
33639esac
33640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033642 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033643 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033644 rm -f conftest.er1
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033647 (exit $ac_status); } >/dev/null; then
33648 if test -s conftest.err; then
33649 ac_cpp_err=$ac_c_preproc_warn_flag
33650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33651 else
33652 ac_cpp_err=
33653 fi
33654else
33655 ac_cpp_err=yes
33656fi
33657if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033658 ac_header_preproc=yes
33659else
33660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033661sed 's/^/| /' conftest.$ac_ext >&5
33662
John Criswell7a73b802003-06-30 21:59:07 +000033663 ac_header_preproc=no
33664fi
Reid Spencera773bd52006-08-04 18:18:08 +000033665
John Criswell7a73b802003-06-30 21:59:07 +000033666rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33668echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033669
33670# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33672 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33677 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033678 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033679 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033692 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033693## ----------------------------------- ##
33694## Report this to llvmbugs@cs.uiuc.edu ##
33695## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033696_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033697 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033698 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033699esac
Reid Spencera773bd52006-08-04 18:18:08 +000033700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033703 echo $ECHO_N "(cached) $ECHO_C" >&6
33704else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033705 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033706fi
Reid Spencera773bd52006-08-04 18:18:08 +000033707ac_res=`eval echo '${'$as_ac_Header'}'`
33708 { echo "$as_me:$LINENO: result: $ac_res" >&5
33709echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033710
33711fi
33712if test `eval echo '${'$as_ac_Header'}'` = yes; then
33713 cat >>confdefs.h <<_ACEOF
33714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33715_ACEOF
33716
33717fi
33718
33719done
33720
33721
33722for ac_func in getpagesize
33723do
33724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033725{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033728 echo $ECHO_N "(cached) $ECHO_C" >&6
33729else
33730 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033731/* confdefs.h. */
33732_ACEOF
33733cat confdefs.h >>conftest.$ac_ext
33734cat >>conftest.$ac_ext <<_ACEOF
33735/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33738#define $ac_func innocuous_$ac_func
33739
John Criswell7a73b802003-06-30 21:59:07 +000033740/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033741 which can conflict with char $ac_func (); below.
33742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033744
John Criswell0c38eaf2003-09-10 15:17:25 +000033745#ifdef __STDC__
33746# include <limits.h>
33747#else
33748# include <assert.h>
33749#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033750
33751#undef $ac_func
33752
Reid Spencera773bd52006-08-04 18:18:08 +000033753/* Override any GCC internal prototype to avoid an error.
33754 Use char because int might match the return type of a GCC
33755 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033756#ifdef __cplusplus
33757extern "C"
33758#endif
John Criswell7a73b802003-06-30 21:59:07 +000033759char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033760/* The GNU C library defines this for functions which it implements
33761 to always fail with ENOSYS. Some functions are actually named
33762 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033763#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033764choke me
John Criswell7a73b802003-06-30 21:59:07 +000033765#endif
33766
John Criswell0c38eaf2003-09-10 15:17:25 +000033767int
33768main ()
33769{
Reid Spencera773bd52006-08-04 18:18:08 +000033770return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033771 ;
33772 return 0;
33773}
33774_ACEOF
33775rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033776if { (ac_try="$ac_link"
33777case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33780esac
33781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033784 grep -v '^ *+' conftest.er1 >conftest.err
33785 rm -f conftest.er1
33786 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033788 (exit $ac_status); } &&
33789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33790 { (case "(($ac_try" in
33791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792 *) ac_try_echo=$ac_try;;
33793esac
33794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795 (eval "$ac_try") 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; } &&
33799 { ac_try='test -s conftest$ac_exeext'
33800 { (case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_try") 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033809 eval "$as_ac_var=yes"
33810else
33811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033812sed 's/^/| /' conftest.$ac_ext >&5
33813
Reid Spencera773bd52006-08-04 18:18:08 +000033814 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033815fi
Reid Spencera773bd52006-08-04 18:18:08 +000033816
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033817rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033818 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033819fi
Reid Spencera773bd52006-08-04 18:18:08 +000033820ac_res=`eval echo '${'$as_ac_var'}'`
33821 { echo "$as_me:$LINENO: result: $ac_res" >&5
33822echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033823if test `eval echo '${'$as_ac_var'}'` = yes; then
33824 cat >>confdefs.h <<_ACEOF
33825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33826_ACEOF
33827
33828fi
33829done
33830
Reid Spencera773bd52006-08-04 18:18:08 +000033831{ echo "$as_me:$LINENO: checking for working mmap" >&5
33832echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033833if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836 if test "$cross_compiling" = yes; then
33837 ac_cv_func_mmap_fixed_mapped=no
33838else
33839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033840/* confdefs.h. */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033845$ac_includes_default
33846/* malloc might have been renamed as rpl_malloc. */
33847#undef malloc
33848
33849/* Thanks to Mike Haertel and Jim Avera for this test.
33850 Here is a matrix of mmap possibilities:
33851 mmap private not fixed
33852 mmap private fixed at somewhere currently unmapped
33853 mmap private fixed at somewhere already mapped
33854 mmap shared not fixed
33855 mmap shared fixed at somewhere currently unmapped
33856 mmap shared fixed at somewhere already mapped
33857 For private mappings, we should verify that changes cannot be read()
33858 back from the file, nor mmap's back from the file at a different
33859 address. (There have been systems where private was not correctly
33860 implemented like the infamous i386 svr4.0, and systems where the
33861 VM page cache was not coherent with the file system buffer cache
33862 like early versions of FreeBSD and possibly contemporary NetBSD.)
33863 For shared mappings, we should conversely verify that changes get
33864 propagated back to all the places they're supposed to be.
33865
33866 Grep wants private fixed already mapped.
33867 The main things grep needs to know about mmap are:
33868 * does it exist and is it safe to write into the mmap'd area
33869 * how to use it (BSD variants) */
33870
33871#include <fcntl.h>
33872#include <sys/mman.h>
33873
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033874#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033875char *malloc ();
33876#endif
33877
33878/* This mess was copied from the GNU getpagesize.h. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033879#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033880/* Assume that all systems that can run configure have sys/param.h. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033881# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033882# define HAVE_SYS_PARAM_H 1
33883# endif
33884
33885# ifdef _SC_PAGESIZE
33886# define getpagesize() sysconf(_SC_PAGESIZE)
33887# else /* no _SC_PAGESIZE */
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033888# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033889# include <sys/param.h>
33890# ifdef EXEC_PAGESIZE
33891# define getpagesize() EXEC_PAGESIZE
33892# else /* no EXEC_PAGESIZE */
33893# ifdef NBPG
33894# define getpagesize() NBPG * CLSIZE
33895# ifndef CLSIZE
33896# define CLSIZE 1
33897# endif /* no CLSIZE */
33898# else /* no NBPG */
33899# ifdef NBPC
33900# define getpagesize() NBPC
33901# else /* no NBPC */
33902# ifdef PAGESIZE
33903# define getpagesize() PAGESIZE
33904# endif /* PAGESIZE */
33905# endif /* no NBPC */
33906# endif /* no NBPG */
33907# endif /* no EXEC_PAGESIZE */
33908# else /* no HAVE_SYS_PARAM_H */
33909# define getpagesize() 8192 /* punt totally */
33910# endif /* no HAVE_SYS_PARAM_H */
33911# endif /* no _SC_PAGESIZE */
33912
33913#endif /* no HAVE_GETPAGESIZE */
33914
33915int
33916main ()
33917{
33918 char *data, *data2, *data3;
33919 int i, pagesize;
33920 int fd;
33921
33922 pagesize = getpagesize ();
33923
33924 /* First, make a file with some known garbage in it. */
33925 data = (char *) malloc (pagesize);
33926 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033927 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033928 for (i = 0; i < pagesize; ++i)
33929 *(data + i) = rand ();
33930 umask (0);
33931 fd = creat ("conftest.mmap", 0600);
33932 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033933 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033934 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033935 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033936 close (fd);
33937
33938 /* Next, try to mmap the file at a fixed address which already has
33939 something else allocated at it. If we can, also make sure that
33940 we see the same garbage. */
33941 fd = open ("conftest.mmap", O_RDWR);
33942 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033943 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033944 data2 = (char *) malloc (2 * pagesize);
33945 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033946 return 1;
33947 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033948 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033949 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033950 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033951 for (i = 0; i < pagesize; ++i)
33952 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033953 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033954
33955 /* Finally, make sure that changes to the mapped area do not
33956 percolate back to the file as seen by read(). (This is a bug on
33957 some variants of i386 svr4.0.) */
33958 for (i = 0; i < pagesize; ++i)
33959 *(data2 + i) = *(data2 + i) + 1;
33960 data3 = (char *) malloc (pagesize);
33961 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033962 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033963 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033964 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033965 for (i = 0; i < pagesize; ++i)
33966 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033967 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033968 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033969 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033970}
33971_ACEOF
33972rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033973if { (ac_try="$ac_link"
33974case "(($ac_try" in
33975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976 *) ac_try_echo=$ac_try;;
33977esac
33978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033980 ac_status=$?
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033983 { (case "(($ac_try" in
33984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985 *) ac_try_echo=$ac_try;;
33986esac
33987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033989 ac_status=$?
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992 ac_cv_func_mmap_fixed_mapped=yes
33993else
33994 echo "$as_me: program exited with status $ac_status" >&5
33995echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033996sed 's/^/| /' conftest.$ac_ext >&5
33997
John Criswell7a73b802003-06-30 21:59:07 +000033998( exit $ac_status )
33999ac_cv_func_mmap_fixed_mapped=no
34000fi
Reid Spencera773bd52006-08-04 18:18:08 +000034001rm -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 +000034002fi
Reid Spencera773bd52006-08-04 18:18:08 +000034003
34004
John Criswell7a73b802003-06-30 21:59:07 +000034005fi
Reid Spencera773bd52006-08-04 18:18:08 +000034006{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34007echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034008if test $ac_cv_func_mmap_fixed_mapped = yes; then
34009
34010cat >>confdefs.h <<\_ACEOF
34011#define HAVE_MMAP 1
34012_ACEOF
34013
34014fi
34015rm -f conftest.mmap
34016
Reid Spencer30fe5262007-01-20 07:48:49 +000034017 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034018echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034019if test "${ac_cv_func_mmap_file+set}" = set; then
34020 echo $ECHO_N "(cached) $ECHO_C" >&6
34021else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034022 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034023ac_cpp='$CPP $CPPFLAGS'
34024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34026ac_compiler_gnu=$ac_cv_c_compiler_gnu
34027
34028 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034029 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034030else
34031 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034032
Reid Spencer777ce172004-09-20 04:09:56 +000034033 /* confdefs.h. */
34034_ACEOF
34035cat confdefs.h >>conftest.$ac_ext
34036cat >>conftest.$ac_ext <<_ACEOF
34037/* end confdefs.h. */
34038
John Criswell7a73b802003-06-30 21:59:07 +000034039#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034040#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034041#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034042
34043int
34044main ()
34045{
John Criswell7a73b802003-06-30 21:59:07 +000034046
34047 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034048 fd = creat ("foo",0777);
34049 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34050 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034051 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034052 ;
34053 return 0;
34054}
John Criswell7a73b802003-06-30 21:59:07 +000034055_ACEOF
34056rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034057if { (ac_try="$ac_link"
34058case "(($ac_try" in
34059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060 *) ac_try_echo=$ac_try;;
34061esac
34062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034064 ac_status=$?
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034067 { (case "(($ac_try" in
34068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069 *) ac_try_echo=$ac_try;;
34070esac
34071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }; then
34076 ac_cv_func_mmap_file=yes
34077else
34078 echo "$as_me: program exited with status $ac_status" >&5
34079echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034080sed 's/^/| /' conftest.$ac_ext >&5
34081
John Criswell7a73b802003-06-30 21:59:07 +000034082( exit $ac_status )
34083ac_cv_func_mmap_file=no
34084fi
Reid Spencera773bd52006-08-04 18:18:08 +000034085rm -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 +000034086fi
Reid Spencera773bd52006-08-04 18:18:08 +000034087
34088
John Criswell7a73b802003-06-30 21:59:07 +000034089 ac_ext=c
34090ac_cpp='$CPP $CPPFLAGS'
34091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34093ac_compiler_gnu=$ac_cv_c_compiler_gnu
34094
34095
34096fi
Reid Spencera773bd52006-08-04 18:18:08 +000034097{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34098echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034099if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034100
34101cat >>confdefs.h <<\_ACEOF
34102#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034103_ACEOF
34104
34105 MMAP_FILE=yes
34106
34107fi
34108
Reid Spencer30fe5262007-01-20 07:48:49 +000034109 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034110echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034111if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34113else
Reid Spencer582a23c2004-12-29 07:07:57 +000034114 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034115 ac_cv_need_dev_zero_for_mmap=yes
34116 else
34117 ac_cv_need_dev_zero_for_mmap=no
34118 fi
34119
34120fi
Reid Spencera773bd52006-08-04 18:18:08 +000034121{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34122echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034123if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34124
34125cat >>confdefs.h <<\_ACEOF
34126#define NEED_DEV_ZERO_FOR_MMAP 1
34127_ACEOF
34128
34129fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034130
Reid Spencer30fe5262007-01-20 07:48:49 +000034131 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34132 then
34133 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034134echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034135 fi
34136 if test "$ac_cv_func_mmap_file" = "no"
34137 then
34138 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034139echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034140 fi
John Criswellb13092b2003-07-22 21:00:24 +000034141fi
John Criswell7a73b802003-06-30 21:59:07 +000034142
34143
Reid Spencer9372f152007-07-30 20:13:24 +000034144
34145for ac_func in __dso_handle
34146do
34147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34151 echo $ECHO_N "(cached) $ECHO_C" >&6
34152else
34153 cat >conftest.$ac_ext <<_ACEOF
34154/* confdefs.h. */
34155_ACEOF
34156cat confdefs.h >>conftest.$ac_ext
34157cat >>conftest.$ac_ext <<_ACEOF
34158/* end confdefs.h. */
34159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34161#define $ac_func innocuous_$ac_func
34162
34163/* System header to define __stub macros and hopefully few prototypes,
34164 which can conflict with char $ac_func (); below.
34165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166 <limits.h> exists even on freestanding compilers. */
34167
34168#ifdef __STDC__
34169# include <limits.h>
34170#else
34171# include <assert.h>
34172#endif
34173
34174#undef $ac_func
34175
34176/* Override any GCC internal prototype to avoid an error.
34177 Use char because int might match the return type of a GCC
34178 builtin and then its argument prototype would still apply. */
34179#ifdef __cplusplus
34180extern "C"
34181#endif
34182char $ac_func ();
34183/* The GNU C library defines this for functions which it implements
34184 to always fail with ENOSYS. Some functions are actually named
34185 something starting with __ and the normal name is an alias. */
34186#if defined __stub_$ac_func || defined __stub___$ac_func
34187choke me
34188#endif
34189
34190int
34191main ()
34192{
34193return $ac_func ();
34194 ;
34195 return 0;
34196}
34197_ACEOF
34198rm -f conftest.$ac_objext conftest$ac_exeext
34199if { (ac_try="$ac_link"
34200case "(($ac_try" in
34201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202 *) ac_try_echo=$ac_try;;
34203esac
34204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205 (eval "$ac_link") 2>conftest.er1
34206 ac_status=$?
34207 grep -v '^ *+' conftest.er1 >conftest.err
34208 rm -f conftest.er1
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034211 (exit $ac_status); } &&
34212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34213 { (case "(($ac_try" in
34214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34215 *) ac_try_echo=$ac_try;;
34216esac
34217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34218 (eval "$ac_try") 2>&5
34219 ac_status=$?
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); }; } &&
34222 { ac_try='test -s conftest$ac_exeext'
34223 { (case "(($ac_try" in
34224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 *) ac_try_echo=$ac_try;;
34226esac
34227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 (eval "$ac_try") 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034232 eval "$as_ac_var=yes"
34233else
34234 echo "$as_me: failed program was:" >&5
34235sed 's/^/| /' conftest.$ac_ext >&5
34236
34237 eval "$as_ac_var=no"
34238fi
34239
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034240rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034241 conftest$ac_exeext conftest.$ac_ext
34242fi
34243ac_res=`eval echo '${'$as_ac_var'}'`
34244 { echo "$as_me:$LINENO: result: $ac_res" >&5
34245echo "${ECHO_T}$ac_res" >&6; }
34246if test `eval echo '${'$as_ac_var'}'` = yes; then
34247 cat >>confdefs.h <<_ACEOF
34248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34249_ACEOF
34250
34251fi
34252done
34253
34254
Reid Spencera773bd52006-08-04 18:18:08 +000034255{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34256echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034257if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34258 echo $ECHO_N "(cached) $ECHO_C" >&6
34259else
34260 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034261if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034262 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034263 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34264 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034265 if test $? -eq 0 ; then
34266 llvm_cv_llvmgcc_sanity="yes"
34267 fi
34268 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034269fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034270fi
Reid Spencera773bd52006-08-04 18:18:08 +000034271{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34272echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034273
34274if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034275 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34276echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034277 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034278 LLVMCC1=$llvmcc1path
34279
Reid Spencer502935f2004-12-22 05:56:56 +000034280 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034281 LLVMCC1PLUS=$llvmcc1pluspath
34282
Reid Spencer502935f2004-12-22 05:56:56 +000034283 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34284 LLVMGCCDIR=$llvmgccdir
34285
Reid Spencer282d8c12006-12-21 22:55:41 +000034286 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34287 LLVMGCCLIBEXEC=$llvmgcclibexec
34288
Reid Spencerb5d75b82006-05-09 00:31:01 +000034289 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034290 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34291 LLVMGCC_VERSION=$llvmgccversion
34292
34293 LLVMGCC_MAJVERS=$llvmgccmajvers
34294
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034295 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034296 LLVMGCC_LANGS=$llvmgcclangs
34297
34298 { echo "$as_me:$LINENO: result: ok" >&5
34299echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034300fi
34301
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034302SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034303
34304
Reid Spencere9de0912004-08-20 09:03:57 +000034305# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034306# information into substitutions that will end up in Makefile.config.in
34307# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034308if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034309 prefix="/usr/local"
34310fi
Reid Spencere9de0912004-08-20 09:03:57 +000034311eval LLVM_PREFIX="${prefix}";
34312eval LLVM_BINDIR="${prefix}/bin";
34313eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034314eval LLVM_DATADIR="${prefix}/share/llvm";
34315eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34316eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034317eval LLVM_INCLUDEDIR="${prefix}/include";
34318eval LLVM_INFODIR="${prefix}/info";
34319eval LLVM_MANDIR="${prefix}/man";
34320LLVM_CONFIGTIME=`date`
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034332# Place the various directores into the config.h file as #defines so that we
34333# can know about the installation paths within LLVM.
34334
Reid Spencere9de0912004-08-20 09:03:57 +000034335cat >>confdefs.h <<_ACEOF
34336#define LLVM_PREFIX "$LLVM_PREFIX"
34337_ACEOF
34338
34339
34340cat >>confdefs.h <<_ACEOF
34341#define LLVM_BINDIR "$LLVM_BINDIR"
34342_ACEOF
34343
34344
34345cat >>confdefs.h <<_ACEOF
34346#define LLVM_LIBDIR "$LLVM_LIBDIR"
34347_ACEOF
34348
34349
34350cat >>confdefs.h <<_ACEOF
34351#define LLVM_DATADIR "$LLVM_DATADIR"
34352_ACEOF
34353
34354
34355cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034356#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034357_ACEOF
34358
34359
34360cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034361#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034362_ACEOF
34363
34364
34365cat >>confdefs.h <<_ACEOF
34366#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34367_ACEOF
34368
34369
34370cat >>confdefs.h <<_ACEOF
34371#define LLVM_INFODIR "$LLVM_INFODIR"
34372_ACEOF
34373
34374
34375cat >>confdefs.h <<_ACEOF
34376#define LLVM_MANDIR "$LLVM_MANDIR"
34377_ACEOF
34378
34379
34380cat >>confdefs.h <<_ACEOF
34381#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34382_ACEOF
34383
34384
Eric Christopher790e11c2007-12-01 00:34:39 +000034385cat >>confdefs.h <<_ACEOF
34386#define LLVM_HOSTTRIPLE "$host"
34387_ACEOF
34388
34389
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034390# Determine which bindings to build.
34391if test "$BINDINGS_TO_BUILD" = auto ; then
34392 BINDINGS_TO_BUILD=""
34393 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34394 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34395 fi
34396fi
34397BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34398
34399
34400# This isn't really configurey, but it avoids having to repeat the list in
34401# other files.
34402ALL_BINDINGS=ocaml
34403
34404
Gordon Henriksenf0915682007-10-02 16:42:22 +000034405# Do any work necessary to ensure that bindings have what they need.
34406binding_prereqs_failed=0
34407for a_binding in $BINDINGS_TO_BUILD ; do
34408 case "$a_binding" in
34409 ocaml)
34410 if test "x$OCAMLC" = x ; then
34411 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34412echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34413 binding_prereqs_failed=1
34414 fi
34415 if test "x$OCAMLDEP" = x ; then
34416 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34417echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34418 binding_prereqs_failed=1
34419 fi
34420 if test "x$OCAMLOPT" = x ; then
34421 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34422echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34423 fi
34424 if test "x$with_ocaml_libdir" != xauto ; then
34425 OCAML_LIBDIR=$with_ocaml_libdir
34426
34427 else
34428 ocaml_stdlib="`"$OCAMLC" -where`"
34429 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34430 then
34431 # ocaml stdlib is beneath our prefix; use stdlib
34432 OCAML_LIBDIR=$ocaml_stdlib
34433
34434 else
34435 # ocaml stdlib is outside our prefix; use libdir/ocaml
34436 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34437
34438 fi
34439 fi
34440 ;;
34441 esac
34442done
34443if test "$binding_prereqs_failed" = 1 ; then
34444 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34445echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34446 { (exit 1); exit 1; }; }
34447fi
34448
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034449{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34450echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34451if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34452 echo $ECHO_N "(cached) $ECHO_C" >&6
34453else
34454 ac_ext=cpp
34455ac_cpp='$CXXCPP $CPPFLAGS'
34456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34459
34460 oldcxxflags="$CXXFLAGS"
34461 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34462 cat >conftest.$ac_ext <<_ACEOF
34463/* confdefs.h. */
34464_ACEOF
34465cat confdefs.h >>conftest.$ac_ext
34466cat >>conftest.$ac_ext <<_ACEOF
34467/* end confdefs.h. */
34468
34469int
34470main ()
34471{
34472
34473 ;
34474 return 0;
34475}
34476_ACEOF
34477rm -f conftest.$ac_objext
34478if { (ac_try="$ac_compile"
34479case "(($ac_try" in
34480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481 *) ac_try_echo=$ac_try;;
34482esac
34483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484 (eval "$ac_compile") 2>conftest.er1
34485 ac_status=$?
34486 grep -v '^ *+' conftest.er1 >conftest.err
34487 rm -f conftest.er1
34488 cat conftest.err >&5
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034490 (exit $ac_status); } &&
34491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34492 { (case "(($ac_try" in
34493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494 *) ac_try_echo=$ac_try;;
34495esac
34496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497 (eval "$ac_try") 2>&5
34498 ac_status=$?
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; } &&
34501 { ac_try='test -s conftest.$ac_objext'
34502 { (case "(($ac_try" in
34503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34504 *) ac_try_echo=$ac_try;;
34505esac
34506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34507 (eval "$ac_try") 2>&5
34508 ac_status=$?
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034511 llvm_cv_cxx_visibility_inlines_hidden=yes
34512else
34513 echo "$as_me: failed program was:" >&5
34514sed 's/^/| /' conftest.$ac_ext >&5
34515
34516 llvm_cv_cxx_visibility_inlines_hidden=no
34517fi
34518
34519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34520 CXXFLAGS="$oldcxxflags"
34521 ac_ext=c
34522ac_cpp='$CPP $CPPFLAGS'
34523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34525ac_compiler_gnu=$ac_cv_c_compiler_gnu
34526
34527
34528fi
34529{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34530echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34531if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34532 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34533
34534else
34535 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34536
34537fi
34538
Gordon Henriksenf0915682007-10-02 16:42:22 +000034539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034540
Reid Spencera773bd52006-08-04 18:18:08 +000034541ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034542
Reid Spencera773bd52006-08-04 18:18:08 +000034543ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034544
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034545ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034546
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034547ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034548
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034549ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034550
34551
Reid Spencera773bd52006-08-04 18:18:08 +000034552ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034553
34554
Reid Spencerea949cf2006-08-16 00:45:38 +000034555ac_config_files="$ac_config_files llvm.spec"
34556
34557
Reid Spencera773bd52006-08-04 18:18:08 +000034558ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034559
34560
Reid Spencera773bd52006-08-04 18:18:08 +000034561ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034562
34563
Reid Spencera773bd52006-08-04 18:18:08 +000034564ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034565
Reid Spencera773bd52006-08-04 18:18:08 +000034566ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034567
34568
Reid Spencera773bd52006-08-04 18:18:08 +000034569ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034570
34571
Reid Spencera773bd52006-08-04 18:18:08 +000034572ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034573
34574
Reid Spencera773bd52006-08-04 18:18:08 +000034575ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034576
34577
Reid Spencer8b2e1412006-11-17 03:32:33 +000034578ac_config_commands="$ac_config_commands runtime/Makefile"
34579
34580
Reid Spencera773bd52006-08-04 18:18:08 +000034581ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034582
34583
Reid Spencera773bd52006-08-04 18:18:08 +000034584ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034585
34586
Reid Spencera773bd52006-08-04 18:18:08 +000034587ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034588
34589
Reid Spencera773bd52006-08-04 18:18:08 +000034590ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034591
34592
Reid Spencera773bd52006-08-04 18:18:08 +000034593ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034594
34595
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034596ac_config_commands="$ac_config_commands bindings/Makefile"
34597
34598
34599ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34600
34601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034602
John Criswell7a73b802003-06-30 21:59:07 +000034603cat >confcache <<\_ACEOF
34604# This file is a shell script that caches the results of configure
34605# tests run on this system so they can be shared between configure
34606# scripts and configure runs, see configure's option --config-cache.
34607# It is not useful on other systems. If it contains results you don't
34608# want to keep, you may remove or edit it.
34609#
34610# config.status only pays attention to the cache file if you give it
34611# the --recheck option to rerun configure.
34612#
John Criswell0c38eaf2003-09-10 15:17:25 +000034613# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034614# loading this file, other *unset* `ac_cv_foo' will be assigned the
34615# following values.
34616
34617_ACEOF
34618
34619# The following way of writing the cache mishandles newlines in values,
34620# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034621# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034622# Ultrix sh set writes to stderr and can't be redirected directly,
34623# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034624(
34625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34626 eval ac_val=\$$ac_var
34627 case $ac_val in #(
34628 *${as_nl}*)
34629 case $ac_var in #(
34630 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34631echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34632 esac
34633 case $ac_var in #(
34634 _ | IFS | as_nl) ;; #(
34635 *) $as_unset $ac_var ;;
34636 esac ;;
34637 esac
34638 done
34639
John Criswell7a73b802003-06-30 21:59:07 +000034640 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34642 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034643 # `set' does not quote correctly, so add quotes (double-quote
34644 # substitution turns \\\\ into \\, and sed turns \\ into \).
34645 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034646 "s/'/'\\\\''/g;
34647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034648 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034649 *)
34650 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034653 esac |
34654 sort
34655) |
John Criswell7a73b802003-06-30 21:59:07 +000034656 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034657 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034658 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034659 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34661 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34663 :end' >>confcache
34664if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34665 if test -w "$cache_file"; then
34666 test "x$cache_file" != "x/dev/null" &&
34667 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34668echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034669 cat confcache >$cache_file
34670 else
Reid Spencera773bd52006-08-04 18:18:08 +000034671 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34672echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034673 fi
34674fi
34675rm -f confcache
34676
34677test "x$prefix" = xNONE && prefix=$ac_default_prefix
34678# Let make expand exec_prefix.
34679test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34680
John Criswell7a73b802003-06-30 21:59:07 +000034681DEFS=-DHAVE_CONFIG_H
34682
John Criswell0c38eaf2003-09-10 15:17:25 +000034683ac_libobjs=
34684ac_ltlibobjs=
34685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34686 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34688 ac_i=`echo "$ac_i" | sed "$ac_script"`
34689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34690 # will be set to the directory where LIBOBJS objects are built.
34691 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34692 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034693done
34694LIBOBJS=$ac_libobjs
34695
34696LTLIBOBJS=$ac_ltlibobjs
34697
34698
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034699if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34700 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34701Usually this means the macro was only invoked conditionally." >&5
34702echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34703Usually this means the macro was only invoked conditionally." >&2;}
34704 { (exit 1); exit 1; }; }
34705fi
34706if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34707 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34708Usually this means the macro was only invoked conditionally." >&5
34709echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34710Usually this means the macro was only invoked conditionally." >&2;}
34711 { (exit 1); exit 1; }; }
34712fi
John Criswell7a73b802003-06-30 21:59:07 +000034713
34714: ${CONFIG_STATUS=./config.status}
34715ac_clean_files_save=$ac_clean_files
34716ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34717{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34718echo "$as_me: creating $CONFIG_STATUS" >&6;}
34719cat >$CONFIG_STATUS <<_ACEOF
34720#! $SHELL
34721# Generated by $as_me.
34722# Run this file to recreate the current configuration.
34723# Compiler output produced by configure, useful for debugging
34724# configure, is in config.log if it exists.
34725
34726debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034727ac_cs_recheck=false
34728ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034729SHELL=\${CONFIG_SHELL-$SHELL}
34730_ACEOF
34731
34732cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034733## --------------------- ##
34734## M4sh Initialization. ##
34735## --------------------- ##
34736
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034737# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034738if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34739 emulate sh
34740 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034741 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34742 # is contrary to our usage. Disable this feature.
34743 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034744 setopt NO_GLOB_SUBST
34745else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034746 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034747fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034748BIN_SH=xpg4; export BIN_SH # for Tru64
34749DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034750
John Criswell7a73b802003-06-30 21:59:07 +000034751
Reid Spencera773bd52006-08-04 18:18:08 +000034752# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034753# Avoid depending upon Character Ranges.
34754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34757as_cr_digits='0123456789'
34758as_cr_alnum=$as_cr_Letters$as_cr_digits
34759
34760# The user is always right.
34761if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034762 echo "#! /bin/sh" >conf$$.sh
34763 echo "exit 0" >>conf$$.sh
34764 chmod +x conf$$.sh
34765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034766 PATH_SEPARATOR=';'
34767 else
34768 PATH_SEPARATOR=:
34769 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034770 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034771fi
34772
Reid Spencera773bd52006-08-04 18:18:08 +000034773# Support unset when possible.
34774if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34775 as_unset=unset
34776else
34777 as_unset=false
34778fi
John Criswell7a73b802003-06-30 21:59:07 +000034779
Reid Spencera773bd52006-08-04 18:18:08 +000034780
34781# IFS
34782# We need space, tab and new line, in precisely that order. Quoting is
34783# there to prevent editors from complaining about space-tab.
34784# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34785# splitting by setting IFS to empty value.)
34786as_nl='
34787'
34788IFS=" "" $as_nl"
34789
34790# Find who we are. Look in the path if we contain no directory separator.
34791case $0 in
34792 *[\\/]* ) as_myself=$0 ;;
34793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034794for as_dir in $PATH
34795do
34796 IFS=$as_save_IFS
34797 test -z "$as_dir" && as_dir=.
34798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34799done
Reid Spencera773bd52006-08-04 18:18:08 +000034800IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034801
Reid Spencera773bd52006-08-04 18:18:08 +000034802 ;;
34803esac
34804# We did not find ourselves, most probably we were run as `sh COMMAND'
34805# in which case we are not to be found in the path.
34806if test "x$as_myself" = x; then
34807 as_myself=$0
34808fi
34809if test ! -f "$as_myself"; then
34810 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34811 { (exit 1); exit 1; }
34812fi
34813
34814# Work around bugs in pre-3.0 UWIN ksh.
34815for as_var in ENV MAIL MAILPATH
34816do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34817done
34818PS1='$ '
34819PS2='> '
34820PS4='+ '
34821
34822# NLS nuisances.
34823for as_var in \
34824 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34825 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34826 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034827do
Reid Spencera773bd52006-08-04 18:18:08 +000034828 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34829 eval $as_var=C; export $as_var
34830 else
34831 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34832 fi
34833done
34834
34835# Required to use basename.
34836if expr a : '\(a\)' >/dev/null 2>&1 &&
34837 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34838 as_expr=expr
34839else
34840 as_expr=false
34841fi
34842
34843if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34844 as_basename=basename
34845else
34846 as_basename=false
34847fi
34848
34849
34850# Name of the executable.
34851as_me=`$as_basename -- "$0" ||
34852$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34853 X"$0" : 'X\(//\)$' \| \
34854 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34855echo X/"$0" |
34856 sed '/^.*\/\([^/][^/]*\)\/*$/{
34857 s//\1/
34858 q
34859 }
34860 /^X\/\(\/\/\)$/{
34861 s//\1/
34862 q
34863 }
34864 /^X\/\(\/\).*/{
34865 s//\1/
34866 q
34867 }
34868 s/.*/./; q'`
34869
34870# CDPATH.
34871$as_unset CDPATH
34872
34873
34874
John Criswell7a73b802003-06-30 21:59:07 +000034875 as_lineno_1=$LINENO
34876 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034877 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034878 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034879
34880 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34881 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034882 # line-number line after each line using $LINENO; the second 'sed'
34883 # does the real work. The second script uses 'N' to pair each
34884 # line-number line with the line containing $LINENO, and appends
34885 # trailing '-' during substitution so that $LINENO is not a special
34886 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034887 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034888 # scripts with optimization help from Paolo Bonzini. Blame Lee
34889 # E. McMahon (1931-1989) for sed's syntax. :-)
34890 sed -n '
34891 p
34892 /[$]LINENO/=
34893 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034894 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034895 s/[$]LINENO.*/&-/
34896 t lineno
34897 b
34898 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034899 N
Reid Spencera773bd52006-08-04 18:18:08 +000034900 :loop
34901 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034902 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034903 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034904 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034905 chmod +x "$as_me.lineno" ||
34906 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034907 { (exit 1); exit 1; }; }
34908
34909 # Don't try to exec as it changes $[0], causing all sort of problems
34910 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034911 # original and so on. Autoconf is especially sensitive to this).
34912 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034913 # Exit status is that of the last command.
34914 exit
34915}
34916
34917
Reid Spencera773bd52006-08-04 18:18:08 +000034918if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34919 as_dirname=dirname
34920else
34921 as_dirname=false
34922fi
34923
34924ECHO_C= ECHO_N= ECHO_T=
34925case `echo -n x` in
34926-n*)
34927 case `echo 'x\c'` in
34928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34929 *) ECHO_C='\c';;
34930 esac;;
34931*)
34932 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034933esac
34934
Reid Spencera773bd52006-08-04 18:18:08 +000034935if expr a : '\(a\)' >/dev/null 2>&1 &&
34936 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034937 as_expr=expr
34938else
34939 as_expr=false
34940fi
34941
34942rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034943if test -d conf$$.dir; then
34944 rm -f conf$$.dir/conf$$.file
34945else
34946 rm -f conf$$.dir
34947 mkdir conf$$.dir
34948fi
John Criswell7a73b802003-06-30 21:59:07 +000034949echo >conf$$.file
34950if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034951 as_ln_s='ln -s'
34952 # ... but there are two gotchas:
34953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34955 # In both cases, we have to default to `cp -p'.
34956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034957 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034958elif ln conf$$.file conf$$ 2>/dev/null; then
34959 as_ln_s=ln
34960else
34961 as_ln_s='cp -p'
34962fi
Reid Spencera773bd52006-08-04 18:18:08 +000034963rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34964rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034965
John Criswell0c38eaf2003-09-10 15:17:25 +000034966if mkdir -p . 2>/dev/null; then
34967 as_mkdir_p=:
34968else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034969 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034970 as_mkdir_p=false
34971fi
34972
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034973# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34974# systems may use methods other than mode bits to determine executability.
34975cat >conf$$.file <<_ASEOF
34976#! /bin/sh
34977exit 0
34978_ASEOF
34979chmod +x conf$$.file
34980if test -x conf$$.file >/dev/null 2>&1; then
34981 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034982else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034983 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034984fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034985rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034986
34987# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034988as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034989
34990# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034991as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034992
34993
John Criswell7a73b802003-06-30 21:59:07 +000034994exec 6>&1
34995
Reid Spencera773bd52006-08-04 18:18:08 +000034996# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034997# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034998# values after options handling.
34999ac_log="
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000035000This file was extended by llvm $as_me 2.5svn, which was
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035001generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035002
35003 CONFIG_FILES = $CONFIG_FILES
35004 CONFIG_HEADERS = $CONFIG_HEADERS
35005 CONFIG_LINKS = $CONFIG_LINKS
35006 CONFIG_COMMANDS = $CONFIG_COMMANDS
35007 $ $0 $@
35008
Reid Spencera773bd52006-08-04 18:18:08 +000035009on `(hostname || uname -n) 2>/dev/null | sed 1q`
35010"
35011
John Criswell7a73b802003-06-30 21:59:07 +000035012_ACEOF
35013
Reid Spencera773bd52006-08-04 18:18:08 +000035014cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035015# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035016config_files="$ac_config_files"
35017config_headers="$ac_config_headers"
35018config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035019
Reid Spencera773bd52006-08-04 18:18:08 +000035020_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035021
35022cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035023ac_cs_usage="\
35024\`$as_me' instantiates files from templates according to the
35025current configuration.
35026
35027Usage: $0 [OPTIONS] [FILE]...
35028
35029 -h, --help print this help, then exit
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035030 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035031 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035032 -d, --debug don't remove temporary files
35033 --recheck update $as_me by reconfiguring in the same conditions
35034 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035035 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035036 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035037 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035038
35039Configuration files:
35040$config_files
35041
35042Configuration headers:
35043$config_headers
35044
John Criswellc764fbc2003-09-06 15:17:13 +000035045Configuration commands:
35046$config_commands
35047
John Criswell7a73b802003-06-30 21:59:07 +000035048Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035049
Reid Spencera773bd52006-08-04 18:18:08 +000035050_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035051cat >>$CONFIG_STATUS <<_ACEOF
35052ac_cs_version="\\
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000035053llvm config.status 2.5svn
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035054configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035055 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035056
Reid Spencera773bd52006-08-04 18:18:08 +000035057Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035058This config.status script is free software; the Free Software Foundation
35059gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035060
35061ac_pwd='$ac_pwd'
35062srcdir='$srcdir'
35063INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035064_ACEOF
35065
35066cat >>$CONFIG_STATUS <<\_ACEOF
35067# If no file are specified by the user, then we need to provide default
35068# value. By we need to know if files were specified by the user.
35069ac_need_defaults=:
35070while test $# != 0
35071do
35072 case $1 in
35073 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035076 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035077 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035078 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035079 ac_option=$1
35080 ac_optarg=$2
35081 ac_shift=shift
35082 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035083 esac
35084
John Criswell0c38eaf2003-09-10 15:17:25 +000035085 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035086 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35088 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35090 echo "$ac_cs_version"; exit ;;
35091 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035092 debug=: ;;
35093 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035094 $ac_shift
35095 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035096 ac_need_defaults=false;;
35097 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035098 $ac_shift
35099 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035100 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035101 --he | --h)
35102 # Conflict between --help and --header
35103 { echo "$as_me: error: ambiguous option: $1
35104Try \`$0 --help' for more information." >&2
35105 { (exit 1); exit 1; }; };;
35106 --help | --hel | -h )
35107 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35110 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035111
35112 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035113 -*) { echo "$as_me: error: unrecognized option: $1
35114Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035115 { (exit 1); exit 1; }; } ;;
35116
Reid Spencera773bd52006-08-04 18:18:08 +000035117 *) ac_config_targets="$ac_config_targets $1"
35118 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035119
35120 esac
35121 shift
35122done
35123
John Criswell0c38eaf2003-09-10 15:17:25 +000035124ac_configure_extra_args=
35125
35126if $ac_cs_silent; then
35127 exec 6>/dev/null
35128 ac_configure_extra_args="$ac_configure_extra_args --silent"
35129fi
35130
35131_ACEOF
35132cat >>$CONFIG_STATUS <<_ACEOF
35133if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035134 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35135 CONFIG_SHELL=$SHELL
35136 export CONFIG_SHELL
35137 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035138fi
35139
John Criswell7a73b802003-06-30 21:59:07 +000035140_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035141cat >>$CONFIG_STATUS <<\_ACEOF
35142exec 5>>config.log
35143{
35144 echo
35145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35146## Running $as_me. ##
35147_ASBOX
35148 echo "$ac_log"
35149} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035150
Reid Spencera773bd52006-08-04 18:18:08 +000035151_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035152cat >>$CONFIG_STATUS <<_ACEOF
35153#
Reid Spencera773bd52006-08-04 18:18:08 +000035154# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035155#
Reid Spencerc0682832005-02-24 19:05:19 +000035156llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035157
35158_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035159
John Criswell7a73b802003-06-30 21:59:07 +000035160cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035161
35162# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035163for ac_config_target in $ac_config_targets
35164do
Reid Spencera773bd52006-08-04 18:18:08 +000035165 case $ac_config_target in
35166 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35167 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035168 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35169 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35170 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035171 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035172 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035173 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35174 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35175 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35176 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35177 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35178 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35179 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035180 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035181 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35182 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35183 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35184 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35185 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035186 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35187 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035188
John Criswell7a73b802003-06-30 21:59:07 +000035189 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35190echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35191 { (exit 1); exit 1; }; };;
35192 esac
35193done
35194
Reid Spencera773bd52006-08-04 18:18:08 +000035195
John Criswell7a73b802003-06-30 21:59:07 +000035196# If the user did not use the arguments to specify the items to instantiate,
35197# then the envvar interface is used. Set only those that are not.
35198# We use the long form for the default assignment because of an extremely
35199# bizarre bug on SunOS 4.1.3.
35200if $ac_need_defaults; then
35201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035204fi
35205
John Criswell0c38eaf2003-09-10 15:17:25 +000035206# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035207# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035208# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035209# Hook for its removal unless debugging.
35210# Note that there is a small window in which the directory will not be cleaned:
35211# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035212$debug ||
35213{
Reid Spencera773bd52006-08-04 18:18:08 +000035214 tmp=
35215 trap 'exit_status=$?
35216 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35217' 0
John Criswell7a73b802003-06-30 21:59:07 +000035218 trap '{ (exit 1); exit 1; }' 1 2 13 15
35219}
John Criswell7a73b802003-06-30 21:59:07 +000035220# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035221
John Criswell7a73b802003-06-30 21:59:07 +000035222{
Reid Spencera773bd52006-08-04 18:18:08 +000035223 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035224 test -n "$tmp" && test -d "$tmp"
35225} ||
35226{
Reid Spencera773bd52006-08-04 18:18:08 +000035227 tmp=./conf$$-$RANDOM
35228 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035229} ||
35230{
John Criswell0c38eaf2003-09-10 15:17:25 +000035231 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035232 { (exit 1); exit 1; }
35233}
35234
John Criswell7a73b802003-06-30 21:59:07 +000035235#
Reid Spencera773bd52006-08-04 18:18:08 +000035236# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035237#
35238
35239# No need to generate the scripts if there are no CONFIG_FILES.
35240# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035241if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035242
35243_ACEOF
35244
Reid Spencera773bd52006-08-04 18:18:08 +000035245
35246
35247ac_delim='%!_!# '
35248for ac_last_try in false false false false false :; do
35249 cat >conf$$subs.sed <<_ACEOF
35250SHELL!$SHELL$ac_delim
35251PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35252PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35253PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35254PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35255PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35256PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35257exec_prefix!$exec_prefix$ac_delim
35258prefix!$prefix$ac_delim
35259program_transform_name!$program_transform_name$ac_delim
35260bindir!$bindir$ac_delim
35261sbindir!$sbindir$ac_delim
35262libexecdir!$libexecdir$ac_delim
35263datarootdir!$datarootdir$ac_delim
35264datadir!$datadir$ac_delim
35265sysconfdir!$sysconfdir$ac_delim
35266sharedstatedir!$sharedstatedir$ac_delim
35267localstatedir!$localstatedir$ac_delim
35268includedir!$includedir$ac_delim
35269oldincludedir!$oldincludedir$ac_delim
35270docdir!$docdir$ac_delim
35271infodir!$infodir$ac_delim
35272htmldir!$htmldir$ac_delim
35273dvidir!$dvidir$ac_delim
35274pdfdir!$pdfdir$ac_delim
35275psdir!$psdir$ac_delim
35276libdir!$libdir$ac_delim
35277localedir!$localedir$ac_delim
35278mandir!$mandir$ac_delim
35279DEFS!$DEFS$ac_delim
35280ECHO_C!$ECHO_C$ac_delim
35281ECHO_N!$ECHO_N$ac_delim
35282ECHO_T!$ECHO_T$ac_delim
35283LIBS!$LIBS$ac_delim
35284build_alias!$build_alias$ac_delim
35285host_alias!$host_alias$ac_delim
35286target_alias!$target_alias$ac_delim
35287LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35288subdirs!$subdirs$ac_delim
35289build!$build$ac_delim
35290build_cpu!$build_cpu$ac_delim
35291build_vendor!$build_vendor$ac_delim
35292build_os!$build_os$ac_delim
35293host!$host$ac_delim
35294host_cpu!$host_cpu$ac_delim
35295host_vendor!$host_vendor$ac_delim
35296host_os!$host_os$ac_delim
35297target!$target$ac_delim
35298target_cpu!$target_cpu$ac_delim
35299target_vendor!$target_vendor$ac_delim
35300target_os!$target_os$ac_delim
35301OS!$OS$ac_delim
35302LINKALL!$LINKALL$ac_delim
35303NOLINKALL!$NOLINKALL$ac_delim
35304LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35305LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35306ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035307ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035308CC!$CC$ac_delim
35309CFLAGS!$CFLAGS$ac_delim
35310LDFLAGS!$LDFLAGS$ac_delim
35311CPPFLAGS!$CPPFLAGS$ac_delim
35312ac_ct_CC!$ac_ct_CC$ac_delim
35313EXEEXT!$EXEEXT$ac_delim
35314OBJEXT!$OBJEXT$ac_delim
35315CPP!$CPP$ac_delim
35316GREP!$GREP$ac_delim
35317EGREP!$EGREP$ac_delim
35318LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35319BUILD_CC!$BUILD_CC$ac_delim
35320BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035321BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035322CVSBUILD!$CVSBUILD$ac_delim
35323ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35324DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035325ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35326EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035327DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035328JIT!$JIT$ac_delim
35329TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35330ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35331ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035332ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035333TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035334ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035335EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35336CXX!$CXX$ac_delim
35337CXXFLAGS!$CXXFLAGS$ac_delim
35338ac_ct_CXX!$ac_ct_CXX$ac_delim
35339LEX!$LEX$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035340LEXLIB!$LEXLIB$ac_delim
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035341LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035342FLEX!$FLEX$ac_delim
35343YACC!$YACC$ac_delim
35344YFLAGS!$YFLAGS$ac_delim
35345BISON!$BISON$ac_delim
35346NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035347_ACEOF
35348
35349 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35350 break
35351 elif $ac_last_try; then
35352 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35353echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35354 { (exit 1); exit 1; }; }
35355 else
35356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035357 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035358done
35359
35360ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35361if test -n "$ac_eof"; then
35362 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35363 ac_eof=`expr $ac_eof + 1`
35364fi
35365
35366cat >>$CONFIG_STATUS <<_ACEOF
35367cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35368/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35369_ACEOF
35370sed '
35371s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35372s/^/s,@/; s/!/@,|#_!!_#|/
35373:n
35374t n
35375s/'"$ac_delim"'$/,g/; t
35376s/$/\\/; p
35377N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35378' >>$CONFIG_STATUS <conf$$subs.sed
35379rm -f conf$$subs.sed
35380cat >>$CONFIG_STATUS <<_ACEOF
35381CEOF$ac_eof
35382_ACEOF
35383
35384
35385ac_delim='%!_!# '
35386for ac_last_try in false false false false false :; do
35387 cat >conf$$subs.sed <<_ACEOF
Jim Grosbach673612e2008-10-02 22:56:44 +000035388ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035389LN_S!$LN_S$ac_delim
35390CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035391CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035392DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035393FIND!$FIND$ac_delim
35394MKDIR!$MKDIR$ac_delim
35395MV!$MV$ac_delim
35396RANLIB!$RANLIB$ac_delim
35397RM!$RM$ac_delim
35398SED!$SED$ac_delim
35399TAR!$TAR$ac_delim
35400BINPWD!$BINPWD$ac_delim
35401GRAPHVIZ!$GRAPHVIZ$ac_delim
35402DOT!$DOT$ac_delim
35403GV!$GV$ac_delim
35404DOTTY!$DOTTY$ac_delim
35405PERL!$PERL$ac_delim
35406HAVE_PERL!$HAVE_PERL$ac_delim
35407INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35408INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35409INSTALL_DATA!$INSTALL_DATA$ac_delim
35410BZIP2!$BZIP2$ac_delim
35411DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035412GROFF!$GROFF$ac_delim
35413GZIP!$GZIP$ac_delim
35414POD2HTML!$POD2HTML$ac_delim
35415POD2MAN!$POD2MAN$ac_delim
35416RUNTEST!$RUNTEST$ac_delim
35417TCLSH!$TCLSH$ac_delim
35418ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035419OCAMLC!$OCAMLC$ac_delim
35420OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035421OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035422OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035423GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035424INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35425INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35426CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35427CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35428LIBADD_DL!$LIBADD_DL$ac_delim
35429ECHO!$ECHO$ac_delim
35430AR!$AR$ac_delim
35431STRIP!$STRIP$ac_delim
35432CXXCPP!$CXXCPP$ac_delim
35433F77!$F77$ac_delim
35434FFLAGS!$FFLAGS$ac_delim
35435ac_ct_F77!$ac_ct_F77$ac_delim
35436LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035437LLVMGCC!$LLVMGCC$ac_delim
35438LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035439USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035440HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035441HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035442ALLOCA!$ALLOCA$ac_delim
35443MMAP_FILE!$MMAP_FILE$ac_delim
35444LLVMCC1!$LLVMCC1$ac_delim
35445LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35446LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035447LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035448LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35449LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035450LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035451SHLIBEXT!$SHLIBEXT$ac_delim
35452LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35453LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35454LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35455LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35456LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35457LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35458LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35459LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35460LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35461LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035462BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35463ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035464OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035465ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035466LIBOBJS!$LIBOBJS$ac_delim
35467LTLIBOBJS!$LTLIBOBJS$ac_delim
35468_ACEOF
35469
Torok Edwincc499a42008-10-22 09:56:27 +000035470 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Reid Spencera773bd52006-08-04 18:18:08 +000035471 break
35472 elif $ac_last_try; then
35473 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35474echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35475 { (exit 1); exit 1; }; }
35476 else
35477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35478 fi
35479done
35480
35481ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35482if test -n "$ac_eof"; then
35483 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35484 ac_eof=`expr $ac_eof + 1`
35485fi
35486
35487cat >>$CONFIG_STATUS <<_ACEOF
35488cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35490_ACEOF
35491sed '
35492s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35493s/^/s,@/; s/!/@,|#_!!_#|/
35494:n
35495t n
35496s/'"$ac_delim"'$/,g/; t
35497s/$/\\/; p
35498N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35499' >>$CONFIG_STATUS <conf$$subs.sed
35500rm -f conf$$subs.sed
35501cat >>$CONFIG_STATUS <<_ACEOF
35502:end
35503s/|#_!!_#|//g
35504CEOF$ac_eof
35505_ACEOF
35506
35507
35508# VPATH may cause trouble with some makes, so we remove $(srcdir),
35509# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35510# trailing colons and then remove the whole line if VPATH becomes empty
35511# (actually we leave an empty line to preserve line numbers).
35512if test "x$srcdir" = x.; then
35513 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35514s/:*\$(srcdir):*/:/
35515s/:*\${srcdir}:*/:/
35516s/:*@srcdir@:*/:/
35517s/^\([^=]*=[ ]*\):*/\1/
35518s/:*$//
35519s/^[^=]*=[ ]*$//
35520}'
35521fi
35522
35523cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035524fi # test -n "$CONFIG_FILES"
35525
Reid Spencera773bd52006-08-04 18:18:08 +000035526
35527for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35528do
35529 case $ac_tag in
35530 :[FHLC]) ac_mode=$ac_tag; continue;;
35531 esac
35532 case $ac_mode$ac_tag in
35533 :[FHL]*:*);;
35534 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35535echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35536 { (exit 1); exit 1; }; };;
35537 :[FH]-) ac_tag=-:-;;
35538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35539 esac
35540 ac_save_IFS=$IFS
35541 IFS=:
35542 set x $ac_tag
35543 IFS=$ac_save_IFS
35544 shift
35545 ac_file=$1
35546 shift
35547
35548 case $ac_mode in
35549 :L) ac_source=$1;;
35550 :[FH])
35551 ac_file_inputs=
35552 for ac_f
35553 do
35554 case $ac_f in
35555 -) ac_f="$tmp/stdin";;
35556 *) # Look for the file first in the build tree, then in the source tree
35557 # (if the path is not absolute). The absolute path cannot be DOS-style,
35558 # because $ac_f cannot contain `:'.
35559 test -f "$ac_f" ||
35560 case $ac_f in
35561 [\\/$]*) false;;
35562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35563 esac ||
35564 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35565echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35566 { (exit 1); exit 1; }; };;
35567 esac
35568 ac_file_inputs="$ac_file_inputs $ac_f"
35569 done
35570
35571 # Let's still pretend it is `configure' which instantiates (i.e., don't
35572 # use $as_me), people would be surprised to read:
35573 # /* config.h. Generated by config.status. */
35574 configure_input="Generated from "`IFS=:
35575 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35576 if test x"$ac_file" != x-; then
35577 configure_input="$ac_file. $configure_input"
35578 { echo "$as_me:$LINENO: creating $ac_file" >&5
35579echo "$as_me: creating $ac_file" >&6;}
35580 fi
35581
35582 case $ac_tag in
35583 *:-:* | *:-) cat >"$tmp/stdin";;
35584 esac
35585 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035586 esac
35587
Reid Spencera773bd52006-08-04 18:18:08 +000035588 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035590 X"$ac_file" : 'X\(//\)[^/]' \| \
35591 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035593echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35595 s//\1/
35596 q
35597 }
35598 /^X\(\/\/\)[^/].*/{
35599 s//\1/
35600 q
35601 }
35602 /^X\(\/\/\)$/{
35603 s//\1/
35604 q
35605 }
35606 /^X\(\/\).*/{
35607 s//\1/
35608 q
35609 }
35610 s/.*/./; q'`
35611 { as_dir="$ac_dir"
35612 case $as_dir in #(
35613 -*) as_dir=./$as_dir;;
35614 esac
35615 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035616 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035617 while :; do
35618 case $as_dir in #(
35619 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35620 *) as_qdir=$as_dir;;
35621 esac
35622 as_dirs="'$as_qdir' $as_dirs"
35623 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035625 X"$as_dir" : 'X\(//\)[^/]' \| \
35626 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035628echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35630 s//\1/
35631 q
35632 }
35633 /^X\(\/\/\)[^/].*/{
35634 s//\1/
35635 q
35636 }
35637 /^X\(\/\/\)$/{
35638 s//\1/
35639 q
35640 }
35641 /^X\(\/\).*/{
35642 s//\1/
35643 q
35644 }
35645 s/.*/./; q'`
35646 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035647 done
Reid Spencera773bd52006-08-04 18:18:08 +000035648 test -z "$as_dirs" || eval "mkdir $as_dirs"
35649 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35650echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035651 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035652 ac_builddir=.
35653
Reid Spencera773bd52006-08-04 18:18:08 +000035654case "$ac_dir" in
35655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35656*)
John Criswell7a73b802003-06-30 21:59:07 +000035657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035658 # A ".." for each directory in $ac_dir_suffix.
35659 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35660 case $ac_top_builddir_sub in
35661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35663 esac ;;
35664esac
35665ac_abs_top_builddir=$ac_pwd
35666ac_abs_builddir=$ac_pwd$ac_dir_suffix
35667# for backward compatibility:
35668ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035669
35670case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035671 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035672 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035673 ac_top_srcdir=$ac_top_builddir_sub
35674 ac_abs_top_srcdir=$ac_pwd ;;
35675 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035676 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035677 ac_top_srcdir=$srcdir
35678 ac_abs_top_srcdir=$srcdir ;;
35679 *) # Relative name.
35680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35681 ac_top_srcdir=$ac_top_build_prefix$srcdir
35682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035683esac
Reid Spencera773bd52006-08-04 18:18:08 +000035684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035685
John Criswell7a73b802003-06-30 21:59:07 +000035686
Reid Spencera773bd52006-08-04 18:18:08 +000035687 case $ac_mode in
35688 :F)
35689 #
35690 # CONFIG_FILE
35691 #
John Criswell7a73b802003-06-30 21:59:07 +000035692
35693 case $INSTALL in
35694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035696 esac
John Criswell7a73b802003-06-30 21:59:07 +000035697_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035698
35699cat >>$CONFIG_STATUS <<\_ACEOF
35700# If the template does not know about datarootdir, expand it.
35701# FIXME: This hack should be removed a few years after 2.60.
35702ac_datarootdir_hack=; ac_datarootdir_seen=
35703
35704case `sed -n '/datarootdir/ {
35705 p
35706 q
35707}
35708/@datadir@/p
35709/@docdir@/p
35710/@infodir@/p
35711/@localedir@/p
35712/@mandir@/p
35713' $ac_file_inputs` in
35714*datarootdir*) ac_datarootdir_seen=yes;;
35715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35716 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35717echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35718_ACEOF
35719cat >>$CONFIG_STATUS <<_ACEOF
35720 ac_datarootdir_hack='
35721 s&@datadir@&$datadir&g
35722 s&@docdir@&$docdir&g
35723 s&@infodir@&$infodir&g
35724 s&@localedir@&$localedir&g
35725 s&@mandir@&$mandir&g
35726 s&\\\${datarootdir}&$datarootdir&g' ;;
35727esac
35728_ACEOF
35729
35730# Neutralize VPATH when `$srcdir' = `.'.
35731# Shell code in configure.ac might set extrasub.
35732# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035733cat >>$CONFIG_STATUS <<_ACEOF
35734 sed "$ac_vpsub
35735$extrasub
35736_ACEOF
35737cat >>$CONFIG_STATUS <<\_ACEOF
35738:t
35739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035740s&@configure_input@&$configure_input&;t t
35741s&@top_builddir@&$ac_top_builddir_sub&;t t
35742s&@srcdir@&$ac_srcdir&;t t
35743s&@abs_srcdir@&$ac_abs_srcdir&;t t
35744s&@top_srcdir@&$ac_top_srcdir&;t t
35745s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35746s&@builddir@&$ac_builddir&;t t
35747s&@abs_builddir@&$ac_abs_builddir&;t t
35748s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35749s&@INSTALL@&$ac_INSTALL&;t t
35750$ac_datarootdir_hack
35751" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035752
Reid Spencera773bd52006-08-04 18:18:08 +000035753test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35754 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35755 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35756 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35757which seems to be undefined. Please make sure it is defined." >&5
35758echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35759which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035760
Reid Spencera773bd52006-08-04 18:18:08 +000035761 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035762 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035763 -) cat "$tmp/out"; rm -f "$tmp/out";;
35764 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035765 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035766 ;;
35767 :H)
35768 #
35769 # CONFIG_HEADER
35770 #
John Criswell7a73b802003-06-30 21:59:07 +000035771_ACEOF
35772
Reid Spencera773bd52006-08-04 18:18:08 +000035773# Transform confdefs.h into a sed script `conftest.defines', that
35774# substitutes the proper values into config.h.in to produce config.h.
35775rm -f conftest.defines conftest.tail
35776# First, append a space to every undef/define line, to ease matching.
35777echo 's/$/ /' >conftest.defines
35778# Then, protect against being on the right side of a sed subst, or in
35779# an unquoted here document, in config.status. If some macros were
35780# called several times there might be several #defines for the same
35781# symbol, which is useless. But do not sort them, since the last
35782# AC_DEFINE must be honored.
35783ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35784# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35785# NAME is the cpp macro being defined, VALUE is the value it is being given.
35786# PARAMS is the parameter list in the macro definition--in most cases, it's
35787# just an empty string.
35788ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35789ac_dB='\\)[ (].*,\\1define\\2'
35790ac_dC=' '
35791ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035792
Reid Spencera773bd52006-08-04 18:18:08 +000035793uniq confdefs.h |
35794 sed -n '
35795 t rset
35796 :rset
35797 s/^[ ]*#[ ]*define[ ][ ]*//
35798 t ok
35799 d
35800 :ok
35801 s/[\\&,]/\\&/g
35802 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35803 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35804 ' >>conftest.defines
35805
35806# Remove the space that was appended to ease matching.
35807# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035808# example, in the case of _POSIX_SOURCE, which is predefined and required
35809# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035810# (The regexp can be short, since the line contains either #define or #undef.)
35811echo 's/ $//
35812s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035813
Reid Spencera773bd52006-08-04 18:18:08 +000035814# Break up conftest.defines:
35815ac_max_sed_lines=50
35816
35817# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35818# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35819# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35820# et cetera.
35821ac_in='$ac_file_inputs'
35822ac_out='"$tmp/out1"'
35823ac_nxt='"$tmp/out2"'
35824
35825while :
John Criswell7a73b802003-06-30 21:59:07 +000035826do
Reid Spencera773bd52006-08-04 18:18:08 +000035827 # Write a here document:
35828 cat >>$CONFIG_STATUS <<_ACEOF
35829 # First, check the format of the line:
35830 cat >"\$tmp/defines.sed" <<\\CEOF
35831/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35832/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35833b
35834:def
35835_ACEOF
35836 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035837 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035838 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35839 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35840 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35841 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035842 rm -f conftest.defines
35843 mv conftest.tail conftest.defines
35844done
Reid Spencera773bd52006-08-04 18:18:08 +000035845rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035846
Reid Spencera773bd52006-08-04 18:18:08 +000035847echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035848cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035849 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035850 echo "/* $configure_input */" >"$tmp/config.h"
35851 cat "$ac_result" >>"$tmp/config.h"
35852 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35854echo "$as_me: $ac_file is unchanged" >&6;}
35855 else
John Criswell7a73b802003-06-30 21:59:07 +000035856 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035857 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035858 fi
35859 else
Reid Spencera773bd52006-08-04 18:18:08 +000035860 echo "/* $configure_input */"
35861 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035862 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035863 rm -f "$tmp/out12"
35864 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035865
Reid Spencera773bd52006-08-04 18:18:08 +000035866 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35867echo "$as_me: executing $ac_file commands" >&6;}
35868 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035869 esac
John Criswell7a73b802003-06-30 21:59:07 +000035870
Reid Spencera773bd52006-08-04 18:18:08 +000035871
35872 case $ac_file$ac_mode in
35873 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35874 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35875 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35876 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35877 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35878 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35879 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35880 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035881 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35882 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035883 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35884 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35885 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35886 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35887 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35888 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35889 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35890 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35891 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35892 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035893 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35894 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35895 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35896 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035897
35898 esac
35899done # for ac_tag
35900
John Criswell7a73b802003-06-30 21:59:07 +000035901
35902{ (exit 0); exit 0; }
35903_ACEOF
35904chmod +x $CONFIG_STATUS
35905ac_clean_files=$ac_clean_files_save
35906
35907
35908# configure is writing to config.log, and then calls config.status.
35909# config.status does its own redirection, appending to config.log.
35910# Unfortunately, on DOS this fails, as config.log is still kept open
35911# by configure, so config.status won't be able to write to it; its
35912# output is simply discarded. So we exec the FD to /dev/null,
35913# effectively closing config.log, so it can be properly (re)opened and
35914# appended to by config.status. When coming back to configure, we
35915# need to make the FD available again.
35916if test "$no_create" != yes; then
35917 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035918 ac_config_status_args=
35919 test "$silent" = yes &&
35920 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035921 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035923 exec 5>>config.log
35924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35925 # would make configure fail if this is the last instruction.
35926 $ac_cs_success || { (exit 1); exit 1; }
35927fi
35928
John Criswell12399a12003-09-30 15:55:44 +000035929#
35930# CONFIG_SUBDIRS section.
35931#
35932if test "$no_recursion" != yes; then
35933
35934 # Remove --cache-file and --srcdir arguments so they do not pile up.
35935 ac_sub_configure_args=
35936 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035937 eval "set x $ac_configure_args"
35938 shift
35939 for ac_arg
35940 do
John Criswell12399a12003-09-30 15:55:44 +000035941 if test -n "$ac_prev"; then
35942 ac_prev=
35943 continue
35944 fi
35945 case $ac_arg in
35946 -cache-file | --cache-file | --cache-fil | --cache-fi \
35947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35948 ac_prev=cache_file ;;
35949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35951 | --c=*)
35952 ;;
35953 --config-cache | -C)
35954 ;;
35955 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35956 ac_prev=srcdir ;;
35957 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35958 ;;
35959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35960 ac_prev=prefix ;;
35961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035963 *)
35964 case $ac_arg in
35965 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35966 esac
35967 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035968 esac
35969 done
35970
35971 # Always prepend --prefix to ensure using the same prefix
35972 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035973 ac_arg="--prefix=$prefix"
35974 case $ac_arg in
35975 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35976 esac
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035977 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035978
35979 ac_popdir=`pwd`
35980 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35981
35982 # Do not complain, so a configure script can configure whichever
35983 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035984 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035985
Reid Spencera773bd52006-08-04 18:18:08 +000035986 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35987 echo "$as_me:$LINENO: $ac_msg" >&5
35988 echo "$ac_msg" >&6
35989 { as_dir="$ac_dir"
35990 case $as_dir in #(
35991 -*) as_dir=./$as_dir;;
35992 esac
35993 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035994 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035995 while :; do
35996 case $as_dir in #(
35997 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35998 *) as_qdir=$as_dir;;
35999 esac
36000 as_dirs="'$as_qdir' $as_dirs"
36001 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036002$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036003 X"$as_dir" : 'X\(//\)[^/]' \| \
36004 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036006echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36008 s//\1/
36009 q
36010 }
36011 /^X\(\/\/\)[^/].*/{
36012 s//\1/
36013 q
36014 }
36015 /^X\(\/\/\)$/{
36016 s//\1/
36017 q
36018 }
36019 /^X\(\/\).*/{
36020 s//\1/
36021 q
36022 }
36023 s/.*/./; q'`
36024 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036025 done
Reid Spencera773bd52006-08-04 18:18:08 +000036026 test -z "$as_dirs" || eval "mkdir $as_dirs"
36027 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36028echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036029 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036030 ac_builddir=.
36031
Reid Spencera773bd52006-08-04 18:18:08 +000036032case "$ac_dir" in
36033.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36034*)
John Criswell12399a12003-09-30 15:55:44 +000036035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036036 # A ".." for each directory in $ac_dir_suffix.
36037 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36038 case $ac_top_builddir_sub in
36039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36041 esac ;;
36042esac
36043ac_abs_top_builddir=$ac_pwd
36044ac_abs_builddir=$ac_pwd$ac_dir_suffix
36045# for backward compatibility:
36046ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036047
36048case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036049 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036050 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036051 ac_top_srcdir=$ac_top_builddir_sub
36052 ac_abs_top_srcdir=$ac_pwd ;;
36053 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036054 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036055 ac_top_srcdir=$srcdir
36056 ac_abs_top_srcdir=$srcdir ;;
36057 *) # Relative name.
36058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36059 ac_top_srcdir=$ac_top_build_prefix$srcdir
36060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036061esac
Reid Spencera773bd52006-08-04 18:18:08 +000036062ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036063
36064
Reid Spencera773bd52006-08-04 18:18:08 +000036065 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036066
36067 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036068 if test -f "$ac_srcdir/configure.gnu"; then
36069 ac_sub_configure=$ac_srcdir/configure.gnu
36070 elif test -f "$ac_srcdir/configure"; then
36071 ac_sub_configure=$ac_srcdir/configure
36072 elif test -f "$ac_srcdir/configure.in"; then
36073 # This should be Cygnus configure.
36074 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036075 else
36076 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36077echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36078 ac_sub_configure=
36079 fi
36080
36081 # The recursion is here.
36082 if test -n "$ac_sub_configure"; then
36083 # Make the cache file name correct relative to the subdirectory.
36084 case $cache_file in
36085 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036086 *) # Relative name.
36087 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036088 esac
36089
Reid Spencera773bd52006-08-04 18:18:08 +000036090 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36091echo "$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 +000036092 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036093 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36094 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036095 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036096echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36097 { (exit 1); exit 1; }; }
36098 fi
36099
Reid Spencera773bd52006-08-04 18:18:08 +000036100 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036101 done
36102fi
36103