blob: f957ef7822be65993fb57fc081abc1b932027aec [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner5c709542007-09-14 01:24:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if 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
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=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
Reid Spencera773bd52006-08-04 18:18:08 +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
240# Be Bourne compatible
241if 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
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if 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
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
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
Reid Spencera773bd52006-08-04 18:18:08 +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"
528else
529 as_executable_p=:
530fi
531rm -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 Lattner5c709542007-09-14 01:24:13 +0000718PACKAGE_VERSION='2.2svn'
719PACKAGE_STRING='llvm 2.2svn'
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>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# 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
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
902ETAGSFLAGS
903LLVMGCC
904LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000905USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000906HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000907HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000908ALLOCA
909MMAP_FILE
910LLVMCC1
911LLVMCC1PLUS
912LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000913LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000914LLVMGCC_VERSION
915LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000916LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000917SHLIBEXT
918LLVM_PREFIX
919LLVM_BINDIR
920LLVM_LIBDIR
921LLVM_DATADIR
922LLVM_DOCSDIR
923LLVM_ETCDIR
924LLVM_INCLUDEDIR
925LLVM_INFODIR
926LLVM_MANDIR
927LLVM_CONFIGTIME
928LIBOBJS
929LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000930ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000931 ac_precious_vars='build_alias
932host_alias
933target_alias
934CC
935CFLAGS
936LDFLAGS
937CPPFLAGS
938CPP
939CXX
940CXXFLAGS
941CCC
942YACC
943YFLAGS
944CXXCPP
945F77
946FFLAGS'
947ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000948projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000949projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000950projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/llvm-reopt
952projects/llvm-gcc
953projects/llvm-java
954projects/llvm-tv
955projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000956projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
962# The variables have the same names as the options, with
963# dashes changed to underlines.
964cache_file=/dev/null
965exec_prefix=NONE
966no_create=
967no_recursion=
968prefix=NONE
969program_prefix=NONE
970program_suffix=NONE
971program_transform_name=s,x,x,
972silent=
973site=
974srcdir=
975verbose=
976x_includes=NONE
977x_libraries=NONE
978
979# Installation directory options.
980# These are left unexpanded so users can "make install exec_prefix=/foo"
981# and all the variables that are supposed to be based on exec_prefix
982# by default will actually change.
983# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000984# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000985bindir='${exec_prefix}/bin'
986sbindir='${exec_prefix}/sbin'
987libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000988datarootdir='${prefix}/share'
989datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000990sysconfdir='${prefix}/etc'
991sharedstatedir='${prefix}/com'
992localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000993includedir='${prefix}/include'
994oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000995docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996infodir='${datarootdir}/info'
997htmldir='${docdir}'
998dvidir='${docdir}'
999pdfdir='${docdir}'
1000psdir='${docdir}'
1001libdir='${exec_prefix}/lib'
1002localedir='${datarootdir}/locale'
1003mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001004
1005ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001006ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001007for ac_option
1008do
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001011 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=
1013 continue
1014 fi
1015
Reid Spencera773bd52006-08-04 18:18:08 +00001016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
John Criswell7a73b802003-06-30 21:59:07 +00001020
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1022
Reid Spencera773bd52006-08-04 18:18:08 +00001023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1031
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1036
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1043
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1046
Reid Spencera773bd52006-08-04 18:18:08 +00001047 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001048 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001050 datadir=$ac_optarg ;;
1051
Reid Spencera773bd52006-08-04 18:18:08 +00001052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1058
John Criswell7a73b802003-06-30 21:59:07 +00001059 -disable-* | --disable-*)
1060 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001066 eval enable_$ac_feature=no ;;
1067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001077
1078 -enable-* | --enable-*)
1079 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001085 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
Reid Spencera773bd52006-08-04 18:18:08 +00001112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
John Criswell7a73b802003-06-30 21:59:07 +00001118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
Reid Spencera773bd52006-08-04 18:18:08 +00001142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
John Criswell7a73b802003-06-30 21:59:07 +00001147 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001148 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
Reid Spencera773bd52006-08-04 18:18:08 +00001216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
John Criswell7a73b802003-06-30 21:59:07 +00001226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001282 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284 -without-* | --without-*)
1285 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001291 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1310
1311 -*) { echo "$as_me: error: unrecognized option: $ac_option
1312Try \`$0 --help' for more information." >&2
1313 { (exit 1); exit 1; }; }
1314 ;;
1315
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001322 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001323 export $ac_envvar ;;
1324
1325 *)
1326 # FIXME: should be removed in autoconf 3.0.
1327 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331 ;;
1332
1333 esac
1334done
1335
1336if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 { echo "$as_me: error: missing argument to $ac_option" >&2
1339 { (exit 1); exit 1; }; }
1340fi
1341
Reid Spencera773bd52006-08-04 18:18:08 +00001342# Be sure to have absolute directory names.
1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001347do
Reid Spencera773bd52006-08-04 18:18:08 +00001348 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001349 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001352 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001353 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001355done
1356
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
Reid Spencera773bd52006-08-04 18:18:08 +00001381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 { echo "$as_me: error: Working directory cannot be determined" >&2
1385 { (exit 1); exit 1; }; }
1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 { echo "$as_me: error: pwd does not report name of working directory" >&2
1388 { (exit 1); exit 1; }; }
1389
1390
John Criswell7a73b802003-06-30 21:59:07 +00001391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001396$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001397 X"$0" : 'X\(//\)[^/]' \| \
1398 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001400echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001418 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001419 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=..
1421 fi
1422else
1423 ac_srcdir_defaulted=no
1424fi
Reid Spencera773bd52006-08-04 18:18:08 +00001425if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001428 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001429fi
Reid Spencera773bd52006-08-04 18:18:08 +00001430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001433 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001434 pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
John Criswell7a73b802003-06-30 21:59:07 +00001451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001459\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
John Criswell7a73b802003-06-30 21:59:07 +00001479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001481 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524 case $ac_init_help in
Tanya Lattner5c709542007-09-14 01:24:13 +00001525 short | recursive ) echo "Configuration of llvm 2.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001526 esac
1527 cat <<\_ACEOF
1528
1529Optional Features:
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001532 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001533 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001534 --enable-expensive-checks
1535
Reid Spencer8b2e1412006-11-17 03:32:33 +00001536 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001537 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001538 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001539 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001540 --enable-pic Build LLVM with Position Independent Code (default
1541 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001542 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001543 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001544 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1545 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001546 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001547 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001548 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001549 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001550 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001551 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001552 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001553 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001554 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001555
1556Optional Packages:
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001559 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1560 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001561 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001562 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-pic try to use only PIC/non-PIC objects [default=use
1565 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001566 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001567 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001568
1569Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001570 CC C compiler command
1571 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001576 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001577 CXX C++ compiler command
1578 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001579 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison -y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001584 CXXCPP C++ preprocessor
1585 F77 Fortran 77 compiler command
1586 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588Use these variables to override the choices made by `configure' or to help
1589it to find libraries and programs with nonstandard names/locations.
1590
1591Report bugs to <llvmbugs@cs.uiuc.edu>.
1592_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001593ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001594fi
1595
1596if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001599 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001600 ac_builddir=.
1601
Reid Spencera773bd52006-08-04 18:18:08 +00001602case "$ac_dir" in
1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604*)
John Criswell7a73b802003-06-30 21:59:07 +00001605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001606 # A ".." for each directory in $ac_dir_suffix.
1607 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1608 case $ac_top_builddir_sub in
1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611 esac ;;
1612esac
1613ac_abs_top_builddir=$ac_pwd
1614ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615# for backward compatibility:
1616ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001619 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001620 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001621 ac_top_srcdir=$ac_top_builddir_sub
1622 ac_abs_top_srcdir=$ac_pwd ;;
1623 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001624 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001625 ac_top_srcdir=$srcdir
1626 ac_abs_top_srcdir=$srcdir ;;
1627 *) # Relative name.
1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629 ac_top_srcdir=$ac_top_build_prefix$srcdir
1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001631esac
Reid Spencera773bd52006-08-04 18:18:08 +00001632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633
Reid Spencera773bd52006-08-04 18:18:08 +00001634 cd "$ac_dir" || { ac_status=$?; continue; }
1635 # Check for guested configure.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001642 else
1643 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001644 fi || ac_status=$?
1645 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001646 done
1647fi
1648
Reid Spencera773bd52006-08-04 18:18:08 +00001649test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001650if $ac_init_version; then
1651 cat <<\_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001652llvm configure 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +00001653generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001654
Reid Spencera773bd52006-08-04 18:18:08 +00001655Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16562002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001659
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001660Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001661_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001662 exit
John Criswell7a73b802003-06-30 21:59:07 +00001663fi
Reid Spencera773bd52006-08-04 18:18:08 +00001664cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001665This file contains any messages produced by compilers while
1666running configure, to aid debugging if configure makes a mistake.
1667
Tanya Lattner5c709542007-09-14 01:24:13 +00001668It was created by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001669generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001670
1671 $ $0 $@
1672
1673_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001674exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001675{
1676cat <<_ASUNAME
1677## --------- ##
1678## Platform. ##
1679## --------- ##
1680
1681hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686
1687/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689
1690/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001693/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001694/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1697
1698_ASUNAME
1699
1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 echo "PATH: $as_dir"
1706done
Reid Spencera773bd52006-08-04 18:18:08 +00001707IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001708
1709} >&5
1710
1711cat >&5 <<_ACEOF
1712
1713
1714## ----------- ##
1715## Core tests. ##
1716## ----------- ##
1717
1718_ACEOF
1719
1720
1721# Keep a trace of the command line.
1722# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001723# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001724# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001725# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001726ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001727ac_configure_args0=
1728ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001729ac_must_keep_next=false
1730for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001731do
John Criswell0c38eaf2003-09-10 15:17:25 +00001732 for ac_arg
1733 do
1734 case $ac_arg in
1735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737 | -silent | --silent | --silen | --sile | --sil)
1738 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001739 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 esac
1742 case $ac_pass in
1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744 2)
1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001747 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001749 case $ac_arg in
1750 *=* | --config-cache | -C | -disable-* | --disable-* \
1751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753 | -with-* | --with-* | -without-* | --without-* | --x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756 esac
1757 ;;
1758 -* ) ac_must_keep_next=true ;;
1759 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001761 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 ;;
1763 esac
1764 done
John Criswell7a73b802003-06-30 21:59:07 +00001765done
John Criswell0c38eaf2003-09-10 15:17:25 +00001766$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767$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 +00001768
1769# When interrupted or exit'd, cleanup temporary files, and complete
1770# config.log. We remove comments because anyway the quotes in there
1771# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001772# WARNING: Use '\'' to represent an apostrophe within the trap.
1773# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001774trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1776 {
1777 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779 cat <<\_ASBOX
1780## ---------------- ##
1781## Cache variables. ##
1782## ---------------- ##
1783_ASBOX
1784 echo
1785 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001786(
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in #(
1790 *${as_nl}*)
1791 case $ac_var in #(
1792 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794 esac
1795 case $ac_var in #(
1796 _ | IFS | as_nl) ;; #(
1797 *) $as_unset $ac_var ;;
1798 esac ;;
1799 esac
1800 done
John Criswell7a73b802003-06-30 21:59:07 +00001801 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001804 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001808 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001811 esac |
1812 sort
1813)
John Criswell7a73b802003-06-30 21:59:07 +00001814 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001815
1816 cat <<\_ASBOX
1817## ----------------- ##
1818## Output variables. ##
1819## ----------------- ##
1820_ASBOX
1821 echo
1822 for ac_var in $ac_subst_vars
1823 do
Reid Spencera773bd52006-08-04 18:18:08 +00001824 eval ac_val=\$$ac_var
1825 case $ac_val in
1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 esac
1828 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001829 done | sort
1830 echo
1831
1832 if test -n "$ac_subst_files"; then
1833 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001834## ------------------- ##
1835## File substitutions. ##
1836## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001837_ASBOX
1838 echo
1839 for ac_var in $ac_subst_files
1840 do
Reid Spencera773bd52006-08-04 18:18:08 +00001841 eval ac_val=\$$ac_var
1842 case $ac_val in
1843 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 esac
1845 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001846 done | sort
1847 echo
1848 fi
1849
John Criswell7a73b802003-06-30 21:59:07 +00001850 if test -s confdefs.h; then
1851 cat <<\_ASBOX
1852## ----------- ##
1853## confdefs.h. ##
1854## ----------- ##
1855_ASBOX
1856 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001857 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001858 echo
1859 fi
1860 test "$ac_signal" != 0 &&
1861 echo "$as_me: caught signal $ac_signal"
1862 echo "$as_me: exit $exit_status"
1863 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001866 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001867' 0
John Criswell7a73b802003-06-30 21:59:07 +00001868for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870done
1871ac_signal=0
1872
1873# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001874rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001875
1876# Predefined preprocessor variables.
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_NAME "$PACKAGE_NAME"
1880_ACEOF
1881
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_VERSION "$PACKAGE_VERSION"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_STRING "$PACKAGE_STRING"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900_ACEOF
1901
1902
1903# Let the site file select an alternate cache file if it wants to.
1904# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001905if test -n "$CONFIG_SITE"; then
1906 set x "$CONFIG_SITE"
1907elif test "x$prefix" != xNONE; then
1908 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909else
1910 set x "$ac_default_prefix/share/config.site" \
1911 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001912fi
Reid Spencera773bd52006-08-04 18:18:08 +00001913shift
1914for ac_site_file
1915do
John Criswell7a73b802003-06-30 21:59:07 +00001916 if test -r "$ac_site_file"; then
1917 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918echo "$as_me: loading site script $ac_site_file" >&6;}
1919 sed 's/^/| /' "$ac_site_file" >&5
1920 . "$ac_site_file"
1921 fi
1922done
1923
1924if test -r "$cache_file"; then
1925 # Some versions of bash will fail to source /dev/null (special
1926 # files actually), so we avoid doing that.
1927 if test -f "$cache_file"; then
1928 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929echo "$as_me: loading cache $cache_file" >&6;}
1930 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001933 esac
1934 fi
1935else
1936 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937echo "$as_me: creating cache $cache_file" >&6;}
1938 >$cache_file
1939fi
1940
1941# Check that the precious variables saved in the cache have kept the same
1942# value.
1943ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001944for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001949 case $ac_old_set,$ac_new_set in
1950 set,)
1951 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1954 ,set)
1955 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1958 ,);;
1959 *)
1960 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001961 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001962echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001963 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001964echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001965 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001966echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001967 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001968 fi;;
1969 esac
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1972 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001973 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001974 *) ac_arg=$ac_var=$ac_new_val ;;
1975 esac
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979 esac
1980 fi
1981done
1982if $ac_cache_corrupted; then
1983 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
1988fi
1989
Reid Spencera773bd52006-08-04 18:18:08 +00001990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
John Criswell7a73b802003-06-30 21:59:07 +00002014ac_ext=c
2015ac_cpp='$CPP $CPPFLAGS'
2016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002022LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002023
2024
2025
2026
2027
2028
2029
John Criswell7a73b802003-06-30 21:59:07 +00002030ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002031for ac_dir in autoconf "$srcdir"/autoconf; do
2032 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/install-sh -c"
2035 break
Reid Spencera773bd52006-08-04 18:18:08 +00002036 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/install.sh -c"
2039 break
Reid Spencera773bd52006-08-04 18:18:08 +00002040 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002041 ac_aux_dir=$ac_dir
2042 ac_install_sh="$ac_aux_dir/shtool install -c"
2043 break
2044 fi
2045done
2046if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002047 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2048echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002049 { (exit 1); exit 1; }; }
2050fi
Reid Spencera773bd52006-08-04 18:18:08 +00002051
2052# These three variables are undocumented and unsupported,
2053# and are intended to be withdrawn in a future Autoconf release.
2054# They can cause serious problems if a builder's source tree is in a directory
2055# whose full name contains unusual characters.
2056ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2057ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2058ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2059
John Criswell7a73b802003-06-30 21:59:07 +00002060
John Criswell392aaa32003-07-22 19:18:09 +00002061
Reid Spencer2706f8c2004-09-19 23:53:36 +00002062if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2064 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002065echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2066 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067 fi
John Criswell93e1c722003-09-15 17:04:06 +00002068fi
2069
John Criswell33a911a2003-11-25 20:36:46 +00002070for i in `ls ${srcdir}/projects`
2071do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002072 if test -d ${srcdir}/projects/${i} ; then
2073 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002074 CVS) ;;
2075 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002076 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002077 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002078 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002079 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002080 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002081 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 ;;
2083 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002084;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002092 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002093 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002096 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002097 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002098 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2099echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002100 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 esac
John Criswell33a911a2003-11-25 20:36:46 +00002102 fi
2103done
John Criswell559a6c12003-09-30 16:31:48 +00002104
John Criswell7a73b802003-06-30 21:59:07 +00002105
2106# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002107$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2108 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2109echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002110 { (exit 1); exit 1; }; }
2111
Reid Spencera773bd52006-08-04 18:18:08 +00002112{ echo "$as_me:$LINENO: checking build system type" >&5
2113echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002114if test "${ac_cv_build+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
Reid Spencera773bd52006-08-04 18:18:08 +00002117 ac_build_alias=$build_alias
2118test "x$ac_build_alias" = x &&
2119 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2120test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002121 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2122echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2123 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002124ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2125 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2126echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002127 { (exit 1); exit 1; }; }
2128
2129fi
Reid Spencera773bd52006-08-04 18:18:08 +00002130{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2131echo "${ECHO_T}$ac_cv_build" >&6; }
2132case $ac_cv_build in
2133*-*-*) ;;
2134*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2135echo "$as_me: error: invalid value of canonical build" >&2;}
2136 { (exit 1); exit 1; }; };;
2137esac
John Criswell7a73b802003-06-30 21:59:07 +00002138build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002139ac_save_IFS=$IFS; IFS='-'
2140set x $ac_cv_build
2141shift
2142build_cpu=$1
2143build_vendor=$2
2144shift; shift
2145# Remember, the first character of IFS is used to create $*,
2146# except with old shells:
2147build_os=$*
2148IFS=$ac_save_IFS
2149case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002150
2151
Reid Spencera773bd52006-08-04 18:18:08 +00002152{ echo "$as_me:$LINENO: checking host system type" >&5
2153echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002154if test "${ac_cv_host+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156else
Reid Spencera773bd52006-08-04 18:18:08 +00002157 if test "x$host_alias" = x; then
2158 ac_cv_host=$ac_cv_build
2159else
2160 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2162echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002163 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002164fi
John Criswell7a73b802003-06-30 21:59:07 +00002165
2166fi
Reid Spencera773bd52006-08-04 18:18:08 +00002167{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2168echo "${ECHO_T}$ac_cv_host" >&6; }
2169case $ac_cv_host in
2170*-*-*) ;;
2171*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2172echo "$as_me: error: invalid value of canonical host" >&2;}
2173 { (exit 1); exit 1; }; };;
2174esac
John Criswell7a73b802003-06-30 21:59:07 +00002175host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002176ac_save_IFS=$IFS; IFS='-'
2177set x $ac_cv_host
2178shift
2179host_cpu=$1
2180host_vendor=$2
2181shift; shift
2182# Remember, the first character of IFS is used to create $*,
2183# except with old shells:
2184host_os=$*
2185IFS=$ac_save_IFS
2186case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002187
2188
Reid Spencera773bd52006-08-04 18:18:08 +00002189{ echo "$as_me:$LINENO: checking target system type" >&5
2190echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002191if test "${ac_cv_target+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
Reid Spencera773bd52006-08-04 18:18:08 +00002194 if test "x$target_alias" = x; then
2195 ac_cv_target=$ac_cv_host
2196else
2197 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2199echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002200 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002201fi
John Criswell7a73b802003-06-30 21:59:07 +00002202
2203fi
Reid Spencera773bd52006-08-04 18:18:08 +00002204{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2205echo "${ECHO_T}$ac_cv_target" >&6; }
2206case $ac_cv_target in
2207*-*-*) ;;
2208*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2209echo "$as_me: error: invalid value of canonical target" >&2;}
2210 { (exit 1); exit 1; }; };;
2211esac
John Criswell7a73b802003-06-30 21:59:07 +00002212target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002213ac_save_IFS=$IFS; IFS='-'
2214set x $ac_cv_target
2215shift
2216target_cpu=$1
2217target_vendor=$2
2218shift; shift
2219# Remember, the first character of IFS is used to create $*,
2220# except with old shells:
2221target_os=$*
2222IFS=$ac_save_IFS
2223case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002224
2225
2226# The aliases save the names the user supplied, while $host etc.
2227# will get canonicalized.
2228test -n "$target_alias" &&
2229 test "$program_prefix$program_suffix$program_transform_name" = \
2230 NONENONEs,x,x, &&
2231 program_prefix=${target_alias}-
2232
Reid Spencera773bd52006-08-04 18:18:08 +00002233{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2234echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002235if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002238 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002242 llvm_cv_os_type="AIX"
2243 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002244 *-*-irix*)
2245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247 llvm_cv_os_type="IRIX"
2248 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="Cygwin"
2253 llvm_cv_platform_type="Unix" ;;
2254 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002255 llvm_cv_link_all_option="-Wl,-all_load"
2256 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257 llvm_cv_os_type="Darwin"
2258 llvm_cv_platform_type="Unix" ;;
2259 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="FreeBSD"
2263 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002264 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002267 llvm_cv_os_type="OpenBSD"
2268 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002269 *-*-netbsd*)
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="NetBSD"
2273 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002274 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002277 llvm_cv_os_type="HP-UX"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="Interix"
2283 llvm_cv_platform_type="Unix" ;;
2284 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002287 llvm_cv_os_type="Linux"
2288 llvm_cv_platform_type="Unix" ;;
2289 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,-z,allextract"
2291 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="SunOS"
2293 llvm_cv_platform_type="Unix" ;;
2294 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Win32"
2298 llvm_cv_platform_type="Win32" ;;
2299 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 llvm_cv_os_type="MingW"
2303 llvm_cv_platform_type="Win32" ;;
2304 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option=""
2306 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Unknown"
2308 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002309esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310fi
Reid Spencera773bd52006-08-04 18:18:08 +00002311{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2312echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002313
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314if test "$llvm_cv_os_type" = "Unknown" ; then
2315 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2316echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002317 { (exit 1); exit 1; }; }
2318fi
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002321
2322
Reid Spencera773bd52006-08-04 18:18:08 +00002323LINKALL=$llvm_cv_link_all_option
2324
2325NOLINKALL=$llvm_cv_no_link_all_option
2326
2327
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328case $llvm_cv_platform_type in
2329 Unix)
2330
2331cat >>confdefs.h <<\_ACEOF
2332#define LLVM_ON_UNIX 1
2333_ACEOF
2334
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002335 LLVM_ON_UNIX=1
2336
2337 LLVM_ON_WIN32=0
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 ;;
2340 Win32)
2341
2342cat >>confdefs.h <<\_ACEOF
2343#define LLVM_ON_WIN32 1
2344_ACEOF
2345
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002346 LLVM_ON_UNIX=0
2347
2348 LLVM_ON_WIN32=1
2349
Reid Spencer7b3e8512004-12-24 06:29:05 +00002350 ;;
2351esac
2352
Reid Spencera773bd52006-08-04 18:18:08 +00002353{ echo "$as_me:$LINENO: checking target architecture" >&5
2354echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355if test "${llvm_cv_target_arch+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002359 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002360 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002361 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2362 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002363 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002364 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002365 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002366 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002367 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002368esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369fi
Reid Spencera773bd52006-08-04 18:18:08 +00002370{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2371echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373if test "$llvm_cv_target_arch" = "Unknown" ; then
2374 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2375echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376fi
John Criswell76595452003-07-01 22:07:39 +00002377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002379
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002381ac_ext=c
2382ac_cpp='$CPP $CPPFLAGS'
2383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002386if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2388set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391if test "${ac_cv_prog_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002403 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 +00002404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408done
2409done
Reid Spencera773bd52006-08-04 18:18:08 +00002410IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411
2412fi
2413fi
2414CC=$ac_cv_prog_CC
2415if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002416 { echo "$as_me:$LINENO: result: $CC" >&5
2417echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418else
Reid Spencera773bd52006-08-04 18:18:08 +00002419 { echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421fi
2422
Reid Spencera773bd52006-08-04 18:18:08 +00002423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424fi
2425if test -z "$ac_cv_prog_CC"; then
2426 ac_ct_CC=$CC
2427 # Extract the first word of "gcc", so it can be a program name with args.
2428set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 if test -n "$ac_ct_CC"; then
2435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002443 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 +00002444 ac_cv_prog_ac_ct_CC="gcc"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448done
2449done
Reid Spencera773bd52006-08-04 18:18:08 +00002450IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451
2452fi
2453fi
2454ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002456 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2457echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458else
Reid Spencera773bd52006-08-04 18:18:08 +00002459 { echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461fi
2462
Reid Spencera773bd52006-08-04 18:18:08 +00002463 if test "x$ac_ct_CC" = x; then
2464 CC=""
2465 else
2466 case $cross_compiling:$ac_tool_warned in
2467yes:)
2468{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2469whose name does not start with the host triplet. If you think this
2470configuration is useful to you, please write to autoconf@gnu.org." >&5
2471echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2472whose name does not start with the host triplet. If you think this
2473configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2474ac_tool_warned=yes ;;
2475esac
2476 CC=$ac_ct_CC
2477 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478else
2479 CC="$ac_cv_prog_CC"
2480fi
2481
2482if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002483 if test -n "$ac_tool_prefix"; then
2484 # 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 +00002485set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002500 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 +00002501 ac_cv_prog_CC="${ac_tool_prefix}cc"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506done
Reid Spencera773bd52006-08-04 18:18:08 +00002507IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508
2509fi
2510fi
2511CC=$ac_cv_prog_CC
2512if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002513 { echo "$as_me:$LINENO: result: $CC" >&5
2514echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515else
Reid Spencera773bd52006-08-04 18:18:08 +00002516 { echo "$as_me:$LINENO: result: no" >&5
2517echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518fi
2519
Reid Spencera773bd52006-08-04 18:18:08 +00002520
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522fi
2523if test -z "$CC"; then
2524 # Extract the first word of "cc", so it can be a program name with args.
2525set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
2534 ac_prog_rejected=no
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002541 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 +00002542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2543 ac_prog_rejected=yes
2544 continue
2545 fi
2546 ac_cv_prog_CC="cc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550done
2551done
Reid Spencera773bd52006-08-04 18:18:08 +00002552IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553
2554if test $ac_prog_rejected = yes; then
2555 # We found a bogon in the path, so make sure we never use it.
2556 set dummy $ac_cv_prog_CC
2557 shift
2558 if test $# != 0; then
2559 # We chose a different compiler from the bogus one.
2560 # However, it has the same basename, so the bogon will be chosen
2561 # first if we set CC to just the basename; use the full file name.
2562 shift
2563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2564 fi
2565fi
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002570 { echo "$as_me:$LINENO: result: $CC" >&5
2571echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572else
Reid Spencera773bd52006-08-04 18:18:08 +00002573 { echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575fi
2576
Reid Spencera773bd52006-08-04 18:18:08 +00002577
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578fi
2579if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002581 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002582 do
2583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002592else
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002599 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 +00002600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604done
2605done
Reid Spencera773bd52006-08-04 18:18:08 +00002606IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002607
2608fi
2609fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002612 { echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002614else
Reid Spencera773bd52006-08-04 18:18:08 +00002615 { echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002617fi
2618
Reid Spencera773bd52006-08-04 18:18:08 +00002619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002621 done
2622fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623if test -z "$CC"; then
2624 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002625 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002626do
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002643 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 +00002644 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648done
2649done
Reid Spencera773bd52006-08-04 18:18:08 +00002650IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002651
2652fi
2653fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002656 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002658else
Reid Spencera773bd52006-08-04 18:18:08 +00002659 { echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002661fi
2662
Reid Spencera773bd52006-08-04 18:18:08 +00002663
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002665done
John Criswell7a73b802003-06-30 21:59:07 +00002666
Reid Spencera773bd52006-08-04 18:18:08 +00002667 if test "x$ac_ct_CC" = x; then
2668 CC=""
2669 else
2670 case $cross_compiling:$ac_tool_warned in
2671yes:)
2672{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2673whose name does not start with the host triplet. If you think this
2674configuration is useful to you, please write to autoconf@gnu.org." >&5
2675echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2676whose name does not start with the host triplet. If you think this
2677configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2678ac_tool_warned=yes ;;
2679esac
2680 CC=$ac_ct_CC
2681 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682fi
2683
John Criswell7a73b802003-06-30 21:59:07 +00002684fi
2685
2686
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2688See \`config.log' for more details." >&5
2689echo "$as_me: error: no acceptable C compiler found in \$PATH
2690See \`config.log' for more details." >&2;}
2691 { (exit 1); exit 1; }; }
2692
John Criswell7a73b802003-06-30 21:59:07 +00002693# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002694echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002695ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002696{ (ac_try="$ac_compiler --version >&5"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002706{ (ac_try="$ac_compiler -v >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002716{ (ac_try="$ac_compiler -V >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726
2727cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002733
John Criswell7a73b802003-06-30 21:59:07 +00002734int
2735main ()
2736{
2737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002743ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002744# Try to create an executable without -o first, disregard a.out.
2745# It will help us diagnose broken compilers, and finding out an intuition
2746# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002747{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2748echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002749ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002750#
2751# List of possible output files, starting from the most likely.
2752# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2753# only as a last resort. b.out is created by i960 compilers.
2754ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2755#
2756# The IRIX 6 linker writes into existing files which may not be
2757# executable, retaining their permissions. Remove them first so a
2758# subsequent execution test works.
2759ac_rmfiles=
2760for ac_file in $ac_files
2761do
2762 case $ac_file in
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765 esac
2766done
2767rm -f $ac_rmfiles
2768
2769if { (ac_try="$ac_link_default"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781# in a Makefile. We should not override ac_cv_exeext if it was cached,
2782# so that the user can short-circuit this test for compilers unknown to
2783# Autoconf.
2784for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002785do
2786 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002787 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002789 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002790 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002791 # We found the default executable, but exeext='' is most
2792 # certainly right.
2793 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 then :; else
2797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 fi
2799 # We set ac_cv_exeext here because the later test for it is not
2800 # safe: cross compilers may not add the suffix if given an `-o'
2801 # argument, so we may need to know it at that point already.
2802 # Even if this section looks crufty: it has the advantage of
2803 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002804 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002805 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002806 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002807 esac
2808done
Reid Spencera773bd52006-08-04 18:18:08 +00002809test "$ac_cv_exeext" = no && ac_cv_exeext=
2810
John Criswell7a73b802003-06-30 21:59:07 +00002811else
2812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002813sed 's/^/| /' conftest.$ac_ext >&5
2814
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002815{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002816See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002817echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002818See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002819 { (exit 77); exit 77; }; }
2820fi
2821
2822ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002823{ echo "$as_me:$LINENO: result: $ac_file" >&5
2824echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002825
Reid Spencera773bd52006-08-04 18:18:08 +00002826# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002827# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002828{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2829echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002830# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2831# If not cross compiling, check that we can run a simple program.
2832if test "$cross_compiling" != yes; then
2833 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002834 { (case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 cross_compiling=no
2844 else
2845 if test "$cross_compiling" = maybe; then
2846 cross_compiling=yes
2847 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002848 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002849If you meant to cross compile, use \`--host'.
2850See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002851echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002852If you meant to cross compile, use \`--host'.
2853See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002854 { (exit 1); exit 1; }; }
2855 fi
2856 fi
2857fi
Reid Spencera773bd52006-08-04 18:18:08 +00002858{ echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002860
John Criswell0c38eaf2003-09-10 15:17:25 +00002861rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002862ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002863# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002864# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002865{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2867{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002869
Reid Spencera773bd52006-08-04 18:18:08 +00002870{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2872if { (ac_try="$ac_link"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2884# work properly (i.e., refer to `conftest.exe'), while it won't with
2885# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002886for ac_file in conftest.exe conftest conftest.*; do
2887 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002888 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002891 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002892 * ) break;;
2893 esac
2894done
2895else
John Criswell0c38eaf2003-09-10 15:17:25 +00002896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2897See \`config.log' for more details." >&5
2898echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2899See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002900 { (exit 1); exit 1; }; }
2901fi
2902
2903rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002904{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2905echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002906
2907rm -f conftest.$ac_ext
2908EXEEXT=$ac_cv_exeext
2909ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002910{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2911echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002912if test "${ac_cv_objext+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002921
John Criswell7a73b802003-06-30 21:59:07 +00002922int
2923main ()
2924{
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002931if { (ac_try="$ac_compile"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002941 for ac_file in conftest.o conftest.obj conftest.*; do
2942 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002943 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2946 break;;
2947 esac
2948done
2949else
2950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2954See \`config.log' for more details." >&5
2955echo "$as_me: error: cannot compute suffix of object files: cannot compile
2956See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002957 { (exit 1); exit 1; }; }
2958fi
2959
2960rm -f conftest.$ac_cv_objext conftest.$ac_ext
2961fi
Reid Spencera773bd52006-08-04 18:18:08 +00002962{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2963echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002964OBJEXT=$ac_cv_objext
2965ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002966{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2967echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002968if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002972/* confdefs.h. */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002977
John Criswell7a73b802003-06-30 21:59:07 +00002978int
2979main ()
2980{
2981#ifndef __GNUC__
2982 choke me
2983#endif
2984
2985 ;
2986 return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002990if { (ac_try="$ac_compile"
2991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002997 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3023 ac_compiler_gnu=yes
3024else
3025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003026sed 's/^/| /' conftest.$ac_ext >&5
3027
Reid Spencera773bd52006-08-04 18:18:08 +00003028 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003029fi
Reid Spencera773bd52006-08-04 18:18:08 +00003030
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003032ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003033
3034fi
Reid Spencera773bd52006-08-04 18:18:08 +00003035{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3036echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003037GCC=`test $ac_compiler_gnu = yes && echo yes`
3038ac_test_CFLAGS=${CFLAGS+set}
3039ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003040{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3041echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044else
Reid Spencera773bd52006-08-04 18:18:08 +00003045 ac_save_c_werror_flag=$ac_c_werror_flag
3046 ac_c_werror_flag=yes
3047 ac_cv_prog_cc_g=no
3048 CFLAGS="-g"
3049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003055
John Criswell7a73b802003-06-30 21:59:07 +00003056int
3057main ()
3058{
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003098 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003099else
3100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003101sed 's/^/| /' conftest.$ac_ext >&5
3102
Reid Spencera773bd52006-08-04 18:18:08 +00003103 CFLAGS=""
3104 cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h. */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h. */
3110
3111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119rm -f conftest.$ac_objext
3120if { (ac_try="$ac_compile"
3121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 :
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_c_werror_flag=$ac_save_c_werror_flag
3159 CFLAGS="-g"
3160 cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (ac_try="$ac_compile"
3177case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_cv_prog_cc_g=yes
3210else
3211 echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
3214
John Criswell7a73b802003-06-30 21:59:07 +00003215fi
Reid Spencera773bd52006-08-04 18:18:08 +00003216
3217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003218fi
Reid Spencera773bd52006-08-04 18:18:08 +00003219
3220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221fi
3222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_c_werror_flag=$ac_save_c_werror_flag
3225fi
3226{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3227echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228if test "$ac_test_CFLAGS" = set; then
3229 CFLAGS=$ac_save_CFLAGS
3230elif test $ac_cv_prog_cc_g = yes; then
3231 if test "$GCC" = yes; then
3232 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003233 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003235 fi
3236else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237 if test "$GCC" = yes; then
3238 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003239 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003241 fi
3242fi
Reid Spencera773bd52006-08-04 18:18:08 +00003243{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3244echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3245if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
Reid Spencera773bd52006-08-04 18:18:08 +00003248 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249ac_save_CC=$CC
3250cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256#include <stdarg.h>
3257#include <stdio.h>
3258#include <sys/types.h>
3259#include <sys/stat.h>
3260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261struct buf { int x; };
3262FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263static char *e (p, i)
3264 char **p;
3265 int i;
3266{
3267 return p[i];
3268}
3269static char *f (char * (*g) (char **, int), char **p, ...)
3270{
3271 char *s;
3272 va_list v;
3273 va_start (v,p);
3274 s = g (p, va_arg (v,int));
3275 va_end (v);
3276 return s;
3277}
3278
3279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3280 function prototypes and stuff, but not '\xHH' hex character constants.
3281 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003282 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3284 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003285 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287
Reid Spencera773bd52006-08-04 18:18:08 +00003288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289 inside strings and character constants. */
3290#define FOO(x) 'x'
3291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293int test (int i, double x);
3294struct s1 {int (*f) (int a);};
3295struct s2 {int (*f) (double a);};
3296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297int argc;
3298char **argv;
3299int
3300main ()
3301{
3302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3303 ;
3304 return 0;
3305}
3306_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309do
3310 CC="$ac_save_CC $ac_arg"
3311 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003312if { (ac_try="$ac_compile"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326 { (case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003345 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346else
3347 echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
Reid Spencera773bd52006-08-04 18:18:08 +00003350
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351fi
Reid Spencera773bd52006-08-04 18:18:08 +00003352
3353rm -f core conftest.err conftest.$ac_objext
3354 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355done
Reid Spencera773bd52006-08-04 18:18:08 +00003356rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357CC=$ac_save_CC
3358
3359fi
Reid Spencera773bd52006-08-04 18:18:08 +00003360# AC_CACHE_VAL
3361case "x$ac_cv_prog_cc_c89" in
3362 x)
3363 { echo "$as_me:$LINENO: result: none needed" >&5
3364echo "${ECHO_T}none needed" >&6; } ;;
3365 xno)
3366 { echo "$as_me:$LINENO: result: unsupported" >&5
3367echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003369 CC="$CC $ac_cv_prog_cc_c89"
3370 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3371echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372esac
3373
John Criswell0c38eaf2003-09-10 15:17:25 +00003374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380
3381
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382ac_ext=c
3383ac_cpp='$CPP $CPPFLAGS'
3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003387{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3388echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389# On Suns, sometimes $CPP names a directory.
3390if test -n "$CPP" && test -d "$CPP"; then
3391 CPP=
3392fi
3393if test -z "$CPP"; then
3394 if test "${ac_cv_prog_CPP+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 # Double quotes because CPP needs to be expanded
3398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399 do
3400 ac_preproc_ok=false
3401for ac_c_preproc_warn_flag in '' yes
3402do
3403 # Use a header file that comes with gcc, so configuring glibc
3404 # with a fresh cross-compiler works.
3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406 # <limits.h> exists even on freestanding compilers.
3407 # On the NeXT, cc -E runs the code through the compiler's parser,
3408 # not just through cpp. "Syntax error" is here to catch this case.
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420 Syntax error
3421_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003422if { (ac_try="$ac_cpp conftest.$ac_ext"
3423case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426esac
3427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438 else
3439 ac_cpp_err=
3440 fi
3441else
3442 ac_cpp_err=yes
3443fi
3444if test -z "$ac_cpp_err"; then
3445 :
3446else
3447 echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 # Broken: fails on valid input.
3451continue
3452fi
Reid Spencera773bd52006-08-04 18:18:08 +00003453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454rm -f conftest.err conftest.$ac_ext
3455
Reid Spencera773bd52006-08-04 18:18:08 +00003456 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003457 # can be detected and how.
3458 cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
3464#include <ac_nonexistent.h>
3465_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003466if { (ac_try="$ac_cpp conftest.$ac_ext"
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
3471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482 else
3483 ac_cpp_err=
3484 fi
3485else
3486 ac_cpp_err=yes
3487fi
3488if test -z "$ac_cpp_err"; then
3489 # Broken: success on invalid input.
3490continue
3491else
3492 echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 # Passes both tests.
3496ac_preproc_ok=:
3497break
3498fi
Reid Spencera773bd52006-08-04 18:18:08 +00003499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500rm -f conftest.err conftest.$ac_ext
3501
3502done
3503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504rm -f conftest.err conftest.$ac_ext
3505if $ac_preproc_ok; then
3506 break
3507fi
3508
3509 done
3510 ac_cv_prog_CPP=$CPP
3511
3512fi
3513 CPP=$ac_cv_prog_CPP
3514else
3515 ac_cv_prog_CPP=$CPP
3516fi
Reid Spencera773bd52006-08-04 18:18:08 +00003517{ echo "$as_me:$LINENO: result: $CPP" >&5
3518echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003519ac_preproc_ok=false
3520for ac_c_preproc_warn_flag in '' yes
3521do
3522 # Use a header file that comes with gcc, so configuring glibc
3523 # with a fresh cross-compiler works.
3524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3525 # <limits.h> exists even on freestanding compilers.
3526 # On the NeXT, cc -E runs the code through the compiler's parser,
3527 # not just through cpp. "Syntax error" is here to catch this case.
3528 cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h. */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h. */
3534#ifdef __STDC__
3535# include <limits.h>
3536#else
3537# include <assert.h>
3538#endif
3539 Syntax error
3540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003541if { (ac_try="$ac_cpp conftest.$ac_ext"
3542case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
3546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } >/dev/null; then
3554 if test -s conftest.err; then
3555 ac_cpp_err=$ac_c_preproc_warn_flag
3556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3557 else
3558 ac_cpp_err=
3559 fi
3560else
3561 ac_cpp_err=yes
3562fi
3563if test -z "$ac_cpp_err"; then
3564 :
3565else
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 # Broken: fails on valid input.
3570continue
3571fi
Reid Spencera773bd52006-08-04 18:18:08 +00003572
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573rm -f conftest.err conftest.$ac_ext
3574
Reid Spencera773bd52006-08-04 18:18:08 +00003575 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576 # can be detected and how.
3577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h. */
3583#include <ac_nonexistent.h>
3584_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003585if { (ac_try="$ac_cpp conftest.$ac_ext"
3586case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589esac
3590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601 else
3602 ac_cpp_err=
3603 fi
3604else
3605 ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608 # Broken: success on invalid input.
3609continue
3610else
3611 echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
Reid Spencera773bd52006-08-04 18:18:08 +00003618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619rm -f conftest.err conftest.$ac_ext
3620
3621done
3622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623rm -f conftest.err conftest.$ac_ext
3624if $ac_preproc_ok; then
3625 :
3626else
3627 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3628See \`config.log' for more details." >&5
3629echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3630See \`config.log' for more details." >&2;}
3631 { (exit 1); exit 1; }; }
3632fi
3633
John Criswell7a73b802003-06-30 21:59:07 +00003634ac_ext=c
3635ac_cpp='$CPP $CPPFLAGS'
3636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
John Criswell7a73b802003-06-30 21:59:07 +00003640
Reid Spencera773bd52006-08-04 18:18:08 +00003641{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3642echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003643if test "${ac_cv_path_GREP+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
Reid Spencera773bd52006-08-04 18:18:08 +00003646 # Extract the first word of "grep ggrep" to use in msg output
3647if test -z "$GREP"; then
3648set dummy grep ggrep; ac_prog_name=$2
3649if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
Reid Spencera773bd52006-08-04 18:18:08 +00003652 ac_path_GREP_found=false
3653# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003659 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003661 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3662 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3663 # Check for GNU ac_path_GREP and select it if it is found.
3664 # Check for GNU $ac_path_GREP
3665case `"$ac_path_GREP" --version 2>&1` in
3666*GNU*)
3667 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3668*)
3669 ac_count=0
3670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671 while :
3672 do
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 echo 'GREP' >> "conftest.nl"
3677 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_GREP="$ac_path_GREP"
3683 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3687 done
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689esac
3690
3691
3692 $ac_path_GREP_found && break 3
3693 done
3694done
3695
3696done
3697IFS=$as_save_IFS
3698
3699
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700fi
Reid Spencera773bd52006-08-04 18:18:08 +00003701
3702GREP="$ac_cv_path_GREP"
3703if test -z "$GREP"; then
3704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706 { (exit 1); exit 1; }; }
3707fi
3708
3709else
3710 ac_cv_path_GREP=$GREP
3711fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003712
John Criswell7a73b802003-06-30 21:59:07 +00003713
Reid Spencera773bd52006-08-04 18:18:08 +00003714fi
3715{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3716echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3717 GREP="$ac_cv_path_GREP"
3718
3719
3720{ echo "$as_me:$LINENO: checking for egrep" >&5
3721echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3722if test "${ac_cv_path_EGREP+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3726 then ac_cv_path_EGREP="$GREP -E"
3727 else
3728 # Extract the first word of "egrep" to use in msg output
3729if test -z "$EGREP"; then
3730set dummy egrep; ac_prog_name=$2
3731if test "${ac_cv_path_EGREP+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 ac_path_EGREP_found=false
3735# Loop through the user's path and test for each of PROGNAME-LIST
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3738do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for ac_prog in egrep; do
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3744 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3745 # Check for GNU ac_path_EGREP and select it if it is found.
3746 # Check for GNU $ac_path_EGREP
3747case `"$ac_path_EGREP" --version 2>&1` in
3748*GNU*)
3749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3750*)
3751 ac_count=0
3752 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3753 while :
3754 do
3755 cat "conftest.in" "conftest.in" >"conftest.tmp"
3756 mv "conftest.tmp" "conftest.in"
3757 cp "conftest.in" "conftest.nl"
3758 echo 'EGREP' >> "conftest.nl"
3759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3761 ac_count=`expr $ac_count + 1`
3762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3763 # Best one so far, save it but keep looking for a better one
3764 ac_cv_path_EGREP="$ac_path_EGREP"
3765 ac_path_EGREP_max=$ac_count
3766 fi
3767 # 10*(2^10) chars as input seems more than enough
3768 test $ac_count -gt 10 && break
3769 done
3770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3771esac
3772
3773
3774 $ac_path_EGREP_found && break 3
3775 done
3776done
3777
3778done
3779IFS=$as_save_IFS
3780
3781
3782fi
3783
3784EGREP="$ac_cv_path_EGREP"
3785if test -z "$EGREP"; then
3786 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3787echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3788 { (exit 1); exit 1; }; }
3789fi
3790
3791else
3792 ac_cv_path_EGREP=$EGREP
3793fi
3794
3795
3796 fi
3797fi
3798{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3799echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3800 EGREP="$ac_cv_path_EGREP"
3801
3802
3803{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3804echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003805if test "${ac_cv_header_stdc+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
3808 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003814#include <stdlib.h>
3815#include <stdarg.h>
3816#include <string.h>
3817#include <float.h>
3818
John Criswell0c38eaf2003-09-10 15:17:25 +00003819int
3820main ()
3821{
3822
3823 ;
3824 return 0;
3825}
John Criswell7a73b802003-06-30 21:59:07 +00003826_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003827rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003828if { (ac_try="$ac_compile"
3829case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832esac
3833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003840 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003861 ac_cv_header_stdc=yes
3862else
3863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003864sed 's/^/| /' conftest.$ac_ext >&5
3865
Reid Spencera773bd52006-08-04 18:18:08 +00003866 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003867fi
Reid Spencera773bd52006-08-04 18:18:08 +00003868
3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003870
3871if test $ac_cv_header_stdc = yes; then
3872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003874/* confdefs.h. */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003879#include <string.h>
3880
3881_ACEOF
3882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003883 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003884 :
3885else
3886 ac_cv_header_stdc=no
3887fi
3888rm -f conftest*
3889
3890fi
3891
3892if test $ac_cv_header_stdc = yes; then
3893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3894 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003895/* confdefs.h. */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003900#include <stdlib.h>
3901
3902_ACEOF
3903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003904 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003905 :
3906else
3907 ac_cv_header_stdc=no
3908fi
3909rm -f conftest*
3910
3911fi
3912
3913if test $ac_cv_header_stdc = yes; then
3914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3915 if test "$cross_compiling" = yes; then
3916 :
3917else
3918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003919/* confdefs.h. */
3920_ACEOF
3921cat confdefs.h >>conftest.$ac_ext
3922cat >>conftest.$ac_ext <<_ACEOF
3923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003924#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003925#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003926#if ((' ' & 0x0FF) == 0x020)
3927# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3928# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3929#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003930# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003931 (('a' <= (c) && (c) <= 'i') \
3932 || ('j' <= (c) && (c) <= 'r') \
3933 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3935#endif
3936
3937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3938int
3939main ()
3940{
3941 int i;
3942 for (i = 0; i < 256; i++)
3943 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003944 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003945 return 2;
3946 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003947}
3948_ACEOF
3949rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003950if { (ac_try="$ac_link"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003960 { (case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963esac
3964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 :
3970else
3971 echo "$as_me: program exited with status $ac_status" >&5
3972echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003973sed 's/^/| /' conftest.$ac_ext >&5
3974
John Criswell7a73b802003-06-30 21:59:07 +00003975( exit $ac_status )
3976ac_cv_header_stdc=no
3977fi
Reid Spencera773bd52006-08-04 18:18:08 +00003978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3979fi
3980
3981
John Criswell7a73b802003-06-30 21:59:07 +00003982fi
3983fi
Reid Spencera773bd52006-08-04 18:18:08 +00003984{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3985echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003986if test $ac_cv_header_stdc = yes; then
3987
3988cat >>confdefs.h <<\_ACEOF
3989#define STDC_HEADERS 1
3990_ACEOF
3991
3992fi
3993
Reid Spencera773bd52006-08-04 18:18:08 +00003994# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4005 inttypes.h stdint.h unistd.h
4006do
4007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 cat >conftest.$ac_ext <<_ACEOF
4014/* confdefs.h. */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>conftest.$ac_ext <<_ACEOF
4018/* end confdefs.h. */
4019$ac_includes_default
4020
4021#include <$ac_header>
4022_ACEOF
4023rm -f conftest.$ac_objext
4024if { (ac_try="$ac_compile"
4025case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028esac
4029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041esac
4042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_try") 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 eval "$as_ac_Header=yes"
4058else
4059 echo "$as_me: failed program was:" >&5
4060sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 eval "$as_ac_Header=no"
4063fi
4064
4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066fi
4067ac_res=`eval echo '${'$as_ac_Header'}'`
4068 { echo "$as_me:$LINENO: result: $ac_res" >&5
4069echo "${ECHO_T}$ac_res" >&6; }
4070if test `eval echo '${'$as_ac_Header'}'` = yes; then
4071 cat >>confdefs.h <<_ACEOF
4072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4073_ACEOF
4074
4075fi
4076
4077done
4078
4079
4080{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4081echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4082if test "${ac_cv_c_bigendian+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085 # See if sys/param.h defines the BYTE_ORDER macro.
4086cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092#include <sys/types.h>
4093#include <sys/param.h>
4094
4095int
4096main ()
4097{
4098#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4099 bogus endian macros
4100#endif
4101
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext
4107if { (ac_try="$ac_compile"
4108case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111esac
4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_compile") 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124esac
4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 # It does; now see whether it defined to BIG_ENDIAN or not.
4141cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
4147#include <sys/types.h>
4148#include <sys/param.h>
4149
4150int
4151main ()
4152{
4153#if BYTE_ORDER != BIG_ENDIAN
4154 not big endian
4155#endif
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161rm -f conftest.$ac_objext
4162if { (ac_try="$ac_compile"
4163case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179esac
4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_c_bigendian=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 ac_cv_c_bigendian=no
4201fi
4202
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204else
4205 echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 # It does not; compile a test program.
4209if test "$cross_compiling" = yes; then
4210 # try to guess the endianness by grepping values into an object file
4211 ac_cv_c_bigendian=unknown
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
4218short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4219short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4220void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4221short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4222short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4223void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4224int
4225main ()
4226{
4227 _ascii (); _ebcdic ();
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232rm -f conftest.$ac_objext
4233if { (ac_try="$ac_compile"
4234case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_compile") 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4267 ac_cv_c_bigendian=yes
4268fi
4269if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4270 if test "$ac_cv_c_bigendian" = unknown; then
4271 ac_cv_c_bigendian=no
4272 else
4273 # finding both strings is unlikely to happen, but who knows?
4274 ac_cv_c_bigendian=unknown
4275 fi
4276fi
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282fi
4283
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285else
4286 cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292$ac_includes_default
4293int
4294main ()
4295{
4296
4297 /* Are we little or big endian? From Harbison&Steele. */
4298 union
4299 {
4300 long int l;
4301 char c[sizeof (long int)];
4302 } u;
4303 u.l = 1;
4304 return u.c[sizeof (long int) - 1] == 1;
4305
4306 ;
4307 return 0;
4308}
4309_ACEOF
4310rm -f conftest$ac_exeext
4311if { (ac_try="$ac_link"
4312case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_link") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_c_bigendian=no
4331else
4332 echo "$as_me: program exited with status $ac_status" >&5
4333echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336( exit $ac_status )
4337ac_cv_c_bigendian=yes
4338fi
4339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4340fi
4341
4342
4343fi
4344
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346fi
4347{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4348echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4349case $ac_cv_c_bigendian in
4350 yes)
4351 ENDIAN=big
4352 ;;
4353 no)
4354 ENDIAN=little
4355 ;;
4356 *)
4357 { { echo "$as_me:$LINENO: error: unknown endianness
4358presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4359echo "$as_me: error: unknown endianness
4360presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4361 { (exit 1); exit 1; }; } ;;
4362esac
4363
4364
4365if test "$cross_compiling" = yes; then
4366 LLVM_CROSS_COMPILING=1
4367
4368
4369{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4370echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4371if test "${ac_cv_build_exeext+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4375 ac_cv_build_exeext=.exe
4376else
4377 ac_build_prefix=${build_alias}-
4378
4379 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4380set dummy ${ac_build_prefix}gcc; ac_word=$2
4381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386 if test -n "$BUILD_CC"; then
4387 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400done
4401done
4402IFS=$as_save_IFS
4403
4404fi
4405fi
4406BUILD_CC=$ac_cv_prog_BUILD_CC
4407if test -n "$BUILD_CC"; then
4408 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4409echo "${ECHO_T}$BUILD_CC" >&6; }
4410else
4411 { echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6; }
4413fi
4414
4415
4416 if test -z "$BUILD_CC"; then
4417 # Extract the first word of "gcc", so it can be a program name with args.
4418set dummy gcc; ac_word=$2
4419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424 if test -n "$BUILD_CC"; then
4425 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_BUILD_CC="gcc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4437 fi
4438done
4439done
4440IFS=$as_save_IFS
4441
4442fi
4443fi
4444BUILD_CC=$ac_cv_prog_BUILD_CC
4445if test -n "$BUILD_CC"; then
4446 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4447echo "${ECHO_T}$BUILD_CC" >&6; }
4448else
4449 { echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6; }
4451fi
4452
4453
4454 if test -z "$BUILD_CC"; then
4455 # Extract the first word of "cc", so it can be a program name with args.
4456set dummy cc; ac_word=$2
4457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4459if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 if test -n "$BUILD_CC"; then
4463 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4464else
4465 ac_prog_rejected=no
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4474 ac_prog_rejected=yes
4475 continue
4476 fi
4477 ac_cv_prog_BUILD_CC="cc"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481done
4482done
4483IFS=$as_save_IFS
4484
4485if test $ac_prog_rejected = yes; then
4486 # We found a bogon in the path, so make sure we never use it.
4487 set dummy $ac_cv_prog_BUILD_CC
4488 shift
4489 if test $# != 0; then
4490 # We chose a different compiler from the bogus one.
4491 # However, it has the same basename, so the bogon will be chosen
4492 # first if we set BUILD_CC to just the basename; use the full file name.
4493 shift
4494 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4495 fi
4496fi
4497fi
4498fi
4499BUILD_CC=$ac_cv_prog_BUILD_CC
4500if test -n "$BUILD_CC"; then
4501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502echo "${ECHO_T}$BUILD_CC" >&6; }
4503else
4504 { echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6; }
4506fi
4507
4508
4509 fi
4510 fi
4511 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4512echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4513 { (exit 1); exit 1; }; }
4514 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4515 rm -f conftest*
4516 echo 'int main () { return 0; }' > conftest.$ac_ext
4517 ac_cv_build_exeext=
4518 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4519 (eval $ac_build_link) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; then
4523 for file in conftest.*; do
4524 case $file in
4525 *.c | *.o | *.obj) ;;
4526 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4527 esac
4528 done
4529 else
4530 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4531echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4532 { (exit 1); exit 1; }; }
4533 fi
4534 rm -f conftest*
4535 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4536fi
4537fi
4538
4539BUILD_EXEEXT=""
4540test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4541{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4542echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4543ac_build_exeext=$BUILD_EXEEXT
4544
4545else
4546 LLVM_CROSS_COMPILING=0
4547
4548fi
4549
Reid Spencer0b1e4662007-04-02 15:41:39 +00004550if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004551 cvsbuild="yes"
4552 optimize="no"
4553 CVSBUILD=CVSBUILD=1
4554
4555else
4556 cvsbuild="no"
4557 optimize="yes"
4558fi
4559
4560
4561# Check whether --enable-optimized was given.
4562if test "${enable_optimized+set}" = set; then
4563 enableval=$enable_optimized;
4564else
4565 enableval=$optimize
4566fi
4567
4568if test ${enableval} = "no" ; then
4569 ENABLE_OPTIMIZED=
4570
4571else
4572 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4573
4574fi
4575
4576# Check whether --enable-assertions was given.
4577if test "${enable_assertions+set}" = set; then
4578 enableval=$enable_assertions;
4579else
4580 enableval="yes"
4581fi
4582
4583if test ${enableval} = "yes" ; then
4584 DISABLE_ASSERTIONS=
4585
4586else
4587 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4588
4589fi
4590
David Greenea696d242007-06-28 19:36:08 +00004591# Check whether --enable-expensive-checks was given.
4592if test "${enable_expensive_checks+set}" = set; then
4593 enableval=$enable_expensive_checks;
4594else
4595 enableval="no"
4596fi
4597
4598if test ${enableval} = "yes" ; then
4599 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4600
4601 EXPENSIVE_CHECKS=yes
4602
4603else
4604 ENABLE_EXPENSIVE_CHECKS=
4605
4606 EXPENSIVE_CHECKS=no
4607
4608fi
4609
Reid Spencer8b2e1412006-11-17 03:32:33 +00004610# Check whether --enable-debug-runtime was given.
4611if test "${enable_debug_runtime+set}" = set; then
4612 enableval=$enable_debug_runtime;
4613else
4614 enableval=no
4615fi
4616
4617if test ${enableval} = "no" ; then
4618 DEBUG_RUNTIME=
4619
4620else
4621 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4622
4623fi
4624
Reid Spencera773bd52006-08-04 18:18:08 +00004625# Check whether --enable-jit was given.
4626if test "${enable_jit+set}" = set; then
4627 enableval=$enable_jit;
4628else
4629 enableval=default
4630fi
4631
4632if test ${enableval} = "no"
4633then
4634 JIT=
4635
4636else
4637 case "$llvm_cv_target_arch" in
4638 x86) TARGET_HAS_JIT=1
4639 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004640 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004641 ;;
4642 PowerPC) TARGET_HAS_JIT=1
4643 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004644 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004645 ;;
4646 Alpha) TARGET_HAS_JIT=1
4647 ;;
4648 IA64) TARGET_HAS_JIT=0
4649 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004650 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004651 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004652 Mips) TARGET_HAS_JIT=0
4653 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004654 *) TARGET_HAS_JIT=0
4655 ;;
4656 esac
4657fi
4658
4659# Check whether --enable-doxygen was given.
4660if test "${enable_doxygen+set}" = set; then
4661 enableval=$enable_doxygen;
4662else
4663 enableval=default
4664fi
4665
4666case "$enableval" in
4667 yes) ENABLE_DOXYGEN=1
4668 ;;
4669 no) ENABLE_DOXYGEN=0
4670 ;;
4671 default) ENABLE_DOXYGEN=0
4672 ;;
4673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4674echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4676esac
4677
4678# Check whether --enable-threads was given.
4679if test "${enable_threads+set}" = set; then
4680 enableval=$enable_threads;
4681else
Reid Spencer65c5d752006-11-05 17:08:18 +00004682 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004683fi
4684
4685case "$enableval" in
4686 yes) ENABLE_THREADS=1
4687 ;;
4688 no) ENABLE_THREADS=0
4689 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004690 default) ENABLE_THREADS=1
4691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004692 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4693echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4694 { (exit 1); exit 1; }; } ;;
4695esac
4696
4697cat >>confdefs.h <<_ACEOF
4698#define ENABLE_THREADS $ENABLE_THREADS
4699_ACEOF
4700
4701
Reid Spencer89b0d992006-12-16 22:07:52 +00004702# Check whether --enable-pic was given.
4703if test "${enable_pic+set}" = set; then
4704 enableval=$enable_pic;
4705else
4706 enableval=default
4707fi
4708
4709case "$enableval" in
4710 yes) ENABLE_PIC=1
4711 ;;
4712 no) ENABLE_PIC=0
4713 ;;
4714 default) ENABLE_PIC=0
4715 ;;
4716 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4717echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4719esac
4720
4721cat >>confdefs.h <<_ACEOF
4722#define ENABLE_PIC $ENABLE_PIC
4723_ACEOF
4724
4725
Reid Spencera773bd52006-08-04 18:18:08 +00004726TARGETS_TO_BUILD=""
4727# Check whether --enable-targets was given.
4728if test "${enable_targets+set}" = set; then
4729 enableval=$enable_targets;
4730else
4731 enableval=all
4732fi
4733
4734case "$enableval" in
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004735 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004736 host-only)
4737 case "$llvm_cv_target_arch" in
4738 x86) TARGETS_TO_BUILD="X86" ;;
4739 x86_64) TARGETS_TO_BUILD="X86" ;;
4740 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4741 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4742 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4743 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004744 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004745 Mips) TARGETS_TO_BUILD="Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004746 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4747echo "$as_me: error: Can not set target to build" >&2;}
4748 { (exit 1); exit 1; }; } ;;
4749 esac
4750 ;;
4751 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4752 case "$a_target" in
4753 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4755 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4756 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4757 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4758 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004759 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004760 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004761 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4762echo "$as_me: error: Unrecognized target $a_target" >&2;}
4763 { (exit 1); exit 1; }; } ;;
4764 esac
4765 done
4766 ;;
4767esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004768TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004769TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4770
4771
Reid Spencer65c5d752006-11-05 17:08:18 +00004772# Check whether --enable-cbe-printf-a was given.
4773if test "${enable_cbe_printf_a+set}" = set; then
4774 enableval=$enable_cbe_printf_a;
4775else
4776 enableval=default
4777fi
4778
4779case "$enableval" in
4780 yes) ENABLE_CBE_PRINTF_A=1
4781 ;;
4782 no) ENABLE_CBE_PRINTF_A=0
4783 ;;
4784 default) ENABLE_CBE_PRINTF_A=1
4785 ;;
4786 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4787echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4788 { (exit 1); exit 1; }; } ;;
4789esac
4790
4791cat >>confdefs.h <<_ACEOF
4792#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4793_ACEOF
4794
4795
Reid Spencera773bd52006-08-04 18:18:08 +00004796
4797# Check whether --with-llvmgccdir was given.
4798if test "${with_llvmgccdir+set}" = set; then
4799 withval=$with_llvmgccdir;
4800else
4801 withval=default
4802fi
4803
4804case "$withval" in
4805 default) WITH_LLVMGCCDIR=default ;;
4806 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4807 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4808echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4809 { (exit 1); exit 1; }; } ;;
4810esac
4811
4812
4813# Check whether --with-extra-options was given.
4814if test "${with_extra_options+set}" = set; then
4815 withval=$with_extra_options;
4816else
4817 withval=default
4818fi
4819
4820case "$withval" in
4821 default) EXTRA_OPTIONS= ;;
4822 *) EXTRA_OPTIONS=$withval ;;
4823esac
4824EXTRA_OPTIONS=$EXTRA_OPTIONS
4825
4826
4827
4828ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4834echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4835# On Suns, sometimes $CPP names a directory.
4836if test -n "$CPP" && test -d "$CPP"; then
4837 CPP=
4838fi
4839if test -z "$CPP"; then
4840 if test "${ac_cv_prog_CPP+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843 # Double quotes because CPP needs to be expanded
4844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4845 do
4846 ac_preproc_ok=false
4847for ac_c_preproc_warn_flag in '' yes
4848do
4849 # Use a header file that comes with gcc, so configuring glibc
4850 # with a fresh cross-compiler works.
4851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4852 # <limits.h> exists even on freestanding compilers.
4853 # On the NeXT, cc -E runs the code through the compiler's parser,
4854 # not just through cpp. "Syntax error" is here to catch this case.
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861#ifdef __STDC__
4862# include <limits.h>
4863#else
4864# include <assert.h>
4865#endif
4866 Syntax error
4867_ACEOF
4868if { (ac_try="$ac_cpp conftest.$ac_ext"
4869case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872esac
4873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null; then
4881 if test -s conftest.err; then
4882 ac_cpp_err=$ac_c_preproc_warn_flag
4883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4884 else
4885 ac_cpp_err=
4886 fi
4887else
4888 ac_cpp_err=yes
4889fi
4890if test -z "$ac_cpp_err"; then
4891 :
4892else
4893 echo "$as_me: failed program was:" >&5
4894sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 # Broken: fails on valid input.
4897continue
4898fi
4899
4900rm -f conftest.err conftest.$ac_ext
4901
4902 # OK, works on sane cases. Now check whether nonexistent headers
4903 # can be detected and how.
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#include <ac_nonexistent.h>
4911_ACEOF
4912if { (ac_try="$ac_cpp conftest.$ac_ext"
4913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null; then
4925 if test -s conftest.err; then
4926 ac_cpp_err=$ac_c_preproc_warn_flag
4927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928 else
4929 ac_cpp_err=
4930 fi
4931else
4932 ac_cpp_err=yes
4933fi
4934if test -z "$ac_cpp_err"; then
4935 # Broken: success on invalid input.
4936continue
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 # Passes both tests.
4942ac_preproc_ok=:
4943break
4944fi
4945
4946rm -f conftest.err conftest.$ac_ext
4947
4948done
4949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950rm -f conftest.err conftest.$ac_ext
4951if $ac_preproc_ok; then
4952 break
4953fi
4954
4955 done
4956 ac_cv_prog_CPP=$CPP
4957
4958fi
4959 CPP=$ac_cv_prog_CPP
4960else
4961 ac_cv_prog_CPP=$CPP
4962fi
4963{ echo "$as_me:$LINENO: result: $CPP" >&5
4964echo "${ECHO_T}$CPP" >&6; }
4965ac_preproc_ok=false
4966for ac_c_preproc_warn_flag in '' yes
4967do
4968 # Use a header file that comes with gcc, so configuring glibc
4969 # with a fresh cross-compiler works.
4970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4971 # <limits.h> exists even on freestanding compilers.
4972 # On the NeXT, cc -E runs the code through the compiler's parser,
4973 # not just through cpp. "Syntax error" is here to catch this case.
4974 cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
4980#ifdef __STDC__
4981# include <limits.h>
4982#else
4983# include <assert.h>
4984#endif
4985 Syntax error
4986_ACEOF
4987if { (ac_try="$ac_cpp conftest.$ac_ext"
4988case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_c_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5003 else
5004 ac_cpp_err=
5005 fi
5006else
5007 ac_cpp_err=yes
5008fi
5009if test -z "$ac_cpp_err"; then
5010 :
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 # Broken: fails on valid input.
5016continue
5017fi
5018
5019rm -f conftest.err conftest.$ac_ext
5020
5021 # OK, works on sane cases. Now check whether nonexistent headers
5022 # can be detected and how.
5023 cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h. */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h. */
5029#include <ac_nonexistent.h>
5030_ACEOF
5031if { (ac_try="$ac_cpp conftest.$ac_ext"
5032case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035esac
5036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } >/dev/null; then
5044 if test -s conftest.err; then
5045 ac_cpp_err=$ac_c_preproc_warn_flag
5046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5047 else
5048 ac_cpp_err=
5049 fi
5050else
5051 ac_cpp_err=yes
5052fi
5053if test -z "$ac_cpp_err"; then
5054 # Broken: success on invalid input.
5055continue
5056else
5057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 # Passes both tests.
5061ac_preproc_ok=:
5062break
5063fi
5064
5065rm -f conftest.err conftest.$ac_ext
5066
5067done
5068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069rm -f conftest.err conftest.$ac_ext
5070if $ac_preproc_ok; then
5071 :
5072else
5073 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5074See \`config.log' for more details." >&5
5075echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5076See \`config.log' for more details." >&2;}
5077 { (exit 1); exit 1; }; }
5078fi
5079
5080ac_ext=c
5081ac_cpp='$CPP $CPPFLAGS'
5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091if test -n "$ac_tool_prefix"; then
5092 for ac_prog in gcc
5093 do
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098if test "${ac_cv_prog_CC+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 if test -n "$CC"; then
5102 ac_cv_prog_CC="$CC" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115done
5116done
5117IFS=$as_save_IFS
5118
5119fi
5120fi
5121CC=$ac_cv_prog_CC
5122if test -n "$CC"; then
5123 { echo "$as_me:$LINENO: result: $CC" >&5
5124echo "${ECHO_T}$CC" >&6; }
5125else
5126 { echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6; }
5128fi
5129
5130
5131 test -n "$CC" && break
5132 done
5133fi
5134if test -z "$CC"; then
5135 ac_ct_CC=$CC
5136 for ac_prog in gcc
5137do
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139set dummy $ac_prog; ac_word=$2
5140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 if test -n "$ac_ct_CC"; then
5146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_CC="$ac_prog"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165ac_ct_CC=$ac_cv_prog_ac_ct_CC
5166if test -n "$ac_ct_CC"; then
5167 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5168echo "${ECHO_T}$ac_ct_CC" >&6; }
5169else
5170 { echo "$as_me:$LINENO: result: no" >&5
5171echo "${ECHO_T}no" >&6; }
5172fi
5173
5174
5175 test -n "$ac_ct_CC" && break
5176done
5177
5178 if test "x$ac_ct_CC" = x; then
5179 CC=""
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182yes:)
5183{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5184whose name does not start with the host triplet. If you think this
5185configuration is useful to you, please write to autoconf@gnu.org." >&5
5186echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5187whose name does not start with the host triplet. If you think this
5188configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5189ac_tool_warned=yes ;;
5190esac
5191 CC=$ac_ct_CC
5192 fi
5193fi
5194
5195
5196test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5197See \`config.log' for more details." >&5
5198echo "$as_me: error: no acceptable C compiler found in \$PATH
5199See \`config.log' for more details." >&2;}
5200 { (exit 1); exit 1; }; }
5201
5202# Provide some information about the compiler.
5203echo "$as_me:$LINENO: checking for C compiler version" >&5
5204ac_compiler=`set X $ac_compile; echo $2`
5205{ (ac_try="$ac_compiler --version >&5"
5206case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209esac
5210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_compiler --version >&5") 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }
5215{ (ac_try="$ac_compiler -v >&5"
5216case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219esac
5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compiler -v >&5") 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }
5225{ (ac_try="$ac_compiler -V >&5"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compiler -V >&5") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5235
5236{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5237echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5238if test "${ac_cv_c_compiler_gnu+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h. */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h. */
5247
5248int
5249main ()
5250{
5251#ifndef __GNUC__
5252 choke me
5253#endif
5254
5255 ;
5256 return 0;
5257}
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (ac_try="$ac_compile"
5261case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264esac
5265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compile") 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274 { (case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_try") 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287esac
5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_try") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_compiler_gnu=yes
5294else
5295 echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 ac_compiler_gnu=no
5299fi
5300
5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302ac_cv_c_compiler_gnu=$ac_compiler_gnu
5303
5304fi
5305{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5306echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5307GCC=`test $ac_compiler_gnu = yes && echo yes`
5308ac_test_CFLAGS=${CFLAGS+set}
5309ac_save_CFLAGS=$CFLAGS
5310{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5311echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5312if test "${ac_cv_prog_cc_g+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 ac_save_c_werror_flag=$ac_c_werror_flag
5316 ac_c_werror_flag=yes
5317 ac_cv_prog_cc_g=no
5318 CFLAGS="-g"
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325
5326int
5327main ()
5328{
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext
5335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339esac
5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5349 { (case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352esac
5353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_try") 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362esac
5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_try") 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368 ac_cv_prog_cc_g=yes
5369else
5370 echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 CFLAGS=""
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380
5381int
5382main ()
5383{
5384
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext
5390if { (ac_try="$ac_compile"
5391case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5404 { (case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_try") 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_try") 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 :
5424else
5425 echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_c_werror_flag=$ac_save_c_werror_flag
5429 CFLAGS="-g"
5430 cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h. */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h. */
5436
5437int
5438main ()
5439{
5440
5441 ;
5442 return 0;
5443}
5444_ACEOF
5445rm -f conftest.$ac_objext
5446if { (ac_try="$ac_compile"
5447case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450esac
5451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5460 { (case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_try") 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_try") 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_cv_prog_cc_g=yes
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
5485fi
5486
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491fi
5492
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_c_werror_flag=$ac_save_c_werror_flag
5495fi
5496{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5497echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5498if test "$ac_test_CFLAGS" = set; then
5499 CFLAGS=$ac_save_CFLAGS
5500elif test $ac_cv_prog_cc_g = yes; then
5501 if test "$GCC" = yes; then
5502 CFLAGS="-g -O2"
5503 else
5504 CFLAGS="-g"
5505 fi
5506else
5507 if test "$GCC" = yes; then
5508 CFLAGS="-O2"
5509 else
5510 CFLAGS=
5511 fi
5512fi
5513{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5514echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5515if test "${ac_cv_prog_cc_c89+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 ac_cv_prog_cc_c89=no
5519ac_save_CC=$CC
5520cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526#include <stdarg.h>
5527#include <stdio.h>
5528#include <sys/types.h>
5529#include <sys/stat.h>
5530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5531struct buf { int x; };
5532FILE * (*rcsopen) (struct buf *, struct stat *, int);
5533static char *e (p, i)
5534 char **p;
5535 int i;
5536{
5537 return p[i];
5538}
5539static char *f (char * (*g) (char **, int), char **p, ...)
5540{
5541 char *s;
5542 va_list v;
5543 va_start (v,p);
5544 s = g (p, va_arg (v,int));
5545 va_end (v);
5546 return s;
5547}
5548
5549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5550 function prototypes and stuff, but not '\xHH' hex character constants.
5551 These don't provoke an error unfortunately, instead are silently treated
5552 as 'x'. The following induces an error, until -std is added to get
5553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5554 array size at least. It's necessary to write '\x00'==0 to get something
5555 that's true only with -std. */
5556int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5557
5558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5559 inside strings and character constants. */
5560#define FOO(x) 'x'
5561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5562
5563int test (int i, double x);
5564struct s1 {int (*f) (int a);};
5565struct s2 {int (*f) (double a);};
5566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5567int argc;
5568char **argv;
5569int
5570main ()
5571{
5572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5573 ;
5574 return 0;
5575}
5576_ACEOF
5577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5579do
5580 CC="$ac_save_CC $ac_arg"
5581 rm -f conftest.$ac_objext
5582if { (ac_try="$ac_compile"
5583case "(($ac_try" in
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5586esac
5587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596 { (case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_try") 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest.$ac_objext'
5606 { (case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609esac
5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_prog_cc_c89=$ac_arg
5616else
5617 echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
5620
5621fi
5622
5623rm -f core conftest.err conftest.$ac_objext
5624 test "x$ac_cv_prog_cc_c89" != "xno" && break
5625done
5626rm -f conftest.$ac_ext
5627CC=$ac_save_CC
5628
5629fi
5630# AC_CACHE_VAL
5631case "x$ac_cv_prog_cc_c89" in
5632 x)
5633 { echo "$as_me:$LINENO: result: none needed" >&5
5634echo "${ECHO_T}none needed" >&6; } ;;
5635 xno)
5636 { echo "$as_me:$LINENO: result: unsupported" >&5
5637echo "${ECHO_T}unsupported" >&6; } ;;
5638 *)
5639 CC="$CC $ac_cv_prog_cc_c89"
5640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5641echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5642esac
5643
5644
5645ac_ext=c
5646ac_cpp='$CPP $CPPFLAGS'
5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651ac_ext=cpp
5652ac_cpp='$CXXCPP $CPPFLAGS'
5653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5656if test -z "$CXX"; then
5657 if test -n "$CCC"; then
5658 CXX=$CCC
5659 else
5660 if test -n "$ac_tool_prefix"; then
5661 for ac_prog in g++
5662 do
5663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667if test "${ac_cv_prog_CXX+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 if test -n "$CXX"; then
5671 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685done
5686IFS=$as_save_IFS
5687
5688fi
5689fi
5690CXX=$ac_cv_prog_CXX
5691if test -n "$CXX"; then
5692 { echo "$as_me:$LINENO: result: $CXX" >&5
5693echo "${ECHO_T}$CXX" >&6; }
5694else
5695 { echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6; }
5697fi
5698
5699
5700 test -n "$CXX" && break
5701 done
5702fi
5703if test -z "$CXX"; then
5704 ac_ct_CXX=$CXX
5705 for ac_prog in g++
5706do
5707 # Extract the first word of "$ac_prog", so it can be a program name with args.
5708set dummy $ac_prog; ac_word=$2
5709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5711if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714 if test -n "$ac_ct_CXX"; then
5715 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_ac_ct_CXX="$ac_prog"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5735if test -n "$ac_ct_CXX"; then
5736 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5737echo "${ECHO_T}$ac_ct_CXX" >&6; }
5738else
5739 { echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6; }
5741fi
5742
5743
5744 test -n "$ac_ct_CXX" && break
5745done
5746
5747 if test "x$ac_ct_CXX" = x; then
5748 CXX="g++"
5749 else
5750 case $cross_compiling:$ac_tool_warned in
5751yes:)
5752{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5753whose name does not start with the host triplet. If you think this
5754configuration is useful to you, please write to autoconf@gnu.org." >&5
5755echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5756whose name does not start with the host triplet. If you think this
5757configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760 CXX=$ac_ct_CXX
5761 fi
5762fi
5763
5764 fi
5765fi
5766# Provide some information about the compiler.
5767echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5768ac_compiler=`set X $ac_compile; echo $2`
5769{ (ac_try="$ac_compiler --version >&5"
5770case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
5774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779{ (ac_try="$ac_compiler -v >&5"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789{ (ac_try="$ac_compiler -V >&5"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5799
5800{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5801echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5802if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805 cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */
5811
5812int
5813main ()
5814{
5815#ifndef __GNUC__
5816 choke me
5817#endif
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823rm -f conftest.$ac_objext
5824if { (ac_try="$ac_compile"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_compiler_gnu=yes
5858else
5859 echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 ac_compiler_gnu=no
5863fi
5864
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5867
5868fi
5869{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5870echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5871GXX=`test $ac_compiler_gnu = yes && echo yes`
5872ac_test_CXXFLAGS=${CXXFLAGS+set}
5873ac_save_CXXFLAGS=$CXXFLAGS
5874{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5875echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5876if test "${ac_cv_prog_cxx_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5880 ac_cxx_werror_flag=yes
5881 ac_cv_prog_cxx_g=no
5882 CXXFLAGS="-g"
5883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889
5890int
5891main ()
5892{
5893
5894 ;
5895 return 0;
5896}
5897_ACEOF
5898rm -f conftest.$ac_objext
5899if { (ac_try="$ac_compile"
5900case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903esac
5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916esac
5917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_prog_cxx_g=yes
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 CXXFLAGS=""
5938 cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h. */
5944
5945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext
5954if { (ac_try="$ac_compile"
5955case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 :
5988else
5989 echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5993 CXXFLAGS="-g"
5994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h. */
6000
6001int
6002main ()
6003{
6004
6005 ;
6006 return 0;
6007}
6008_ACEOF
6009rm -f conftest.$ac_objext
6010if { (ac_try="$ac_compile"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_prog_cxx_g=yes
6044else
6045 echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
6049fi
6050
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
6053
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
6056
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6059fi
6060{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6061echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6062if test "$ac_test_CXXFLAGS" = set; then
6063 CXXFLAGS=$ac_save_CXXFLAGS
6064elif test $ac_cv_prog_cxx_g = yes; then
6065 if test "$GXX" = yes; then
6066 CXXFLAGS="-g -O2"
6067 else
6068 CXXFLAGS="-g"
6069 fi
6070else
6071 if test "$GXX" = yes; then
6072 CXXFLAGS="-O2"
6073 else
6074 CXXFLAGS=
6075 fi
6076fi
6077ac_ext=c
6078ac_cpp='$CPP $CPPFLAGS'
6079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082
6083{ echo "$as_me:$LINENO: checking " >&5
6084echo $ECHO_N "checking ... $ECHO_C" >&6; }
6085if test "${ac_cv_has_flex+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088 for ac_prog in flex lex
6089do
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091set dummy $ac_prog; ac_word=$2
6092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094if test "${ac_cv_prog_LEX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097 if test -n "$LEX"; then
6098 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_LEX="$ac_prog"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117LEX=$ac_cv_prog_LEX
6118if test -n "$LEX"; then
6119 { echo "$as_me:$LINENO: result: $LEX" >&5
6120echo "${ECHO_T}$LEX" >&6; }
6121else
6122 { echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6; }
6124fi
6125
6126
6127 test -n "$LEX" && break
6128done
6129test -n "$LEX" || LEX=":"
6130
6131if test -z "$LEXLIB"
6132then
6133 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6134echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6135if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138 ac_check_lib_save_LIBS=$LIBS
6139LIBS="-lfl $LIBS"
6140cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146
6147/* Override any GCC internal prototype to avoid an error.
6148 Use char because int might match the return type of a GCC
6149 builtin and then its argument prototype would still apply. */
6150#ifdef __cplusplus
6151extern "C"
6152#endif
6153char yywrap ();
6154int
6155main ()
6156{
6157return yywrap ();
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162rm -f conftest.$ac_objext conftest$ac_exeext
6163if { (ac_try="$ac_link"
6164case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_link") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_try") 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_fl_yywrap=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_cv_lib_fl_yywrap=no
6202fi
6203
6204rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206LIBS=$ac_check_lib_save_LIBS
6207fi
6208{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6209echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6210if test $ac_cv_lib_fl_yywrap = yes; then
6211 LEXLIB="-lfl"
6212else
6213 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6214echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6215if test "${ac_cv_lib_l_yywrap+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218 ac_check_lib_save_LIBS=$LIBS
6219LIBS="-ll $LIBS"
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227/* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6230#ifdef __cplusplus
6231extern "C"
6232#endif
6233char yywrap ();
6234int
6235main ()
6236{
6237return yywrap ();
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext conftest$ac_exeext
6243if { (ac_try="$ac_link"
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_link") 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
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_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_exeext'
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
6276 ac_cv_lib_l_yywrap=yes
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 ac_cv_lib_l_yywrap=no
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286LIBS=$ac_check_lib_save_LIBS
6287fi
6288{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6289echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6290if test $ac_cv_lib_l_yywrap = yes; then
6291 LEXLIB="-ll"
6292fi
6293
6294fi
6295
6296fi
6297
6298if test "x$LEX" != "x:"; then
6299 { echo "$as_me:$LINENO: checking lex output file root" >&5
6300echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6301if test "${ac_cv_prog_lex_root+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else
6304 # The minimal lex program is just a single line: %%. But some broken lexes
6305# (Solaris, I think it was) want two %% lines, so accommodate them.
6306cat >conftest.l <<_ACEOF
6307%%
6308%%
6309_ACEOF
6310{ (ac_try="$LEX conftest.l"
6311case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$LEX conftest.l") 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }
6320if test -f lex.yy.c; then
6321 ac_cv_prog_lex_root=lex.yy
6322elif test -f lexyy.c; then
6323 ac_cv_prog_lex_root=lexyy
6324else
6325 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6326echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6327 { (exit 1); exit 1; }; }
6328fi
6329fi
6330{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6331echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6332rm -f conftest.l
6333LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6334
6335{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6336echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6337if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340 # POSIX says lex can declare yytext either as a pointer or an array; the
6341# default is implementation-dependent. Figure out which it is, since
6342# not all implementations provide the %pointer and %array declarations.
6343ac_cv_prog_lex_yytext_pointer=no
6344echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6345ac_save_LIBS=$LIBS
6346LIBS="$LIBS $LEXLIB"
6347cat >conftest.$ac_ext <<_ACEOF
6348`cat $LEX_OUTPUT_ROOT.c`
6349_ACEOF
6350rm -f conftest.$ac_objext conftest$ac_exeext
6351if { (ac_try="$ac_link"
6352case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355esac
6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_link") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest$ac_exeext'
6375 { (case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378esac
6379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_try") 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_prog_lex_yytext_pointer=yes
6385else
6386 echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389
6390fi
6391
6392rm -f core conftest.err conftest.$ac_objext \
6393 conftest$ac_exeext conftest.$ac_ext
6394LIBS=$ac_save_LIBS
6395rm -f "${LEX_OUTPUT_ROOT}.c"
6396
6397fi
6398{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6399echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6400if test $ac_cv_prog_lex_yytext_pointer = yes; then
6401
6402cat >>confdefs.h <<\_ACEOF
6403#define YYTEXT_POINTER 1
6404_ACEOF
6405
6406fi
6407
6408fi
6409
6410fi
6411{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6412echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6413if test "$LEX" != "flex"; then
6414 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6415echo "$as_me: error: flex not found but required" >&2;}
6416 { (exit 1); exit 1; }; }
6417else
6418 FLEX=flex
6419
6420fi
6421
6422{ echo "$as_me:$LINENO: checking " >&5
6423echo $ECHO_N "checking ... $ECHO_C" >&6; }
6424if test "${llvm_cv_has_bison+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427 for ac_prog in 'bison -y' byacc
6428do
6429 # Extract the first word of "$ac_prog", so it can be a program name with args.
6430set dummy $ac_prog; ac_word=$2
6431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433if test "${ac_cv_prog_YACC+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436 if test -n "$YACC"; then
6437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_YACC="$ac_prog"
6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450done
6451done
6452IFS=$as_save_IFS
6453
6454fi
6455fi
6456YACC=$ac_cv_prog_YACC
6457if test -n "$YACC"; then
6458 { echo "$as_me:$LINENO: result: $YACC" >&5
6459echo "${ECHO_T}$YACC" >&6; }
6460else
6461 { echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6; }
6463fi
6464
6465
6466 test -n "$YACC" && break
6467done
6468test -n "$YACC" || YACC="yacc"
6469
6470fi
6471{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6472echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6473if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006474
6475 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6476echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006477else
6478 BISON=bison
6479
6480fi
6481
6482{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6483echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6484if test "${lt_cv_path_NM+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487 if test -n "$NM"; then
6488 # Let the user override the test.
6489 lt_cv_path_NM="$NM"
6490else
6491 lt_nm_to_check="${ac_tool_prefix}nm"
6492 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6493 lt_nm_to_check="$lt_nm_to_check nm"
6494 fi
6495 for lt_tmp_nm in $lt_nm_to_check; do
6496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6497 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6498 IFS="$lt_save_ifs"
6499 test -z "$ac_dir" && ac_dir=.
6500 tmp_nm="$ac_dir/$lt_tmp_nm"
6501 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6502 # Check to see if the nm accepts a BSD-compat flag.
6503 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6504 # nm: unknown option "B" ignored
6505 # Tru64's nm complains that /dev/null is an invalid object file
6506 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6507 */dev/null* | *'Invalid file or object type'*)
6508 lt_cv_path_NM="$tmp_nm -B"
6509 break
6510 ;;
6511 *)
6512 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6513 */dev/null*)
6514 lt_cv_path_NM="$tmp_nm -p"
6515 break
6516 ;;
6517 *)
6518 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6519 continue # so that we can try to find one that supports BSD flags
6520 ;;
6521 esac
6522 ;;
6523 esac
6524 fi
6525 done
6526 IFS="$lt_save_ifs"
6527 done
6528 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6529fi
6530fi
6531{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6532echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6533NM="$lt_cv_path_NM"
6534
6535
6536
6537{ echo "$as_me:$LINENO: checking for GNU make" >&5
6538echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6539if test "${llvm_cv_gnu_make_command+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542 llvm_cv_gnu_make_command=''
6543 for a in "$MAKE" make gmake gnumake ; do
6544 if test -z "$a" ; then continue ; fi ;
6545 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6546 then
6547 llvm_cv_gnu_make_command=$a ;
6548 break;
6549 fi
6550 done
6551fi
6552{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6553echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6554 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6555 ifGNUmake='' ;
6556 else
6557 ifGNUmake='#' ;
6558 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6559echo "${ECHO_T}\"Not found\"" >&6; };
6560 fi
6561
6562
6563{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6564echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6565LN_S=$as_ln_s
6566if test "$LN_S" = "ln -s"; then
6567 { echo "$as_me:$LINENO: result: yes" >&5
6568echo "${ECHO_T}yes" >&6; }
6569else
6570 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6571echo "${ECHO_T}no, using $LN_S" >&6; }
6572fi
6573
6574# Extract the first word of "cmp", so it can be a program name with args.
6575set dummy cmp; ac_word=$2
6576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578if test "${ac_cv_path_CMP+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581 case $CMP in
6582 [\\/]* | ?:[\\/]*)
6583 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6584 ;;
6585 *)
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598done
6599IFS=$as_save_IFS
6600
6601 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6602 ;;
6603esac
6604fi
6605CMP=$ac_cv_path_CMP
6606if test -n "$CMP"; then
6607 { echo "$as_me:$LINENO: result: $CMP" >&5
6608echo "${ECHO_T}$CMP" >&6; }
6609else
6610 { echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6; }
6612fi
6613
6614
6615# Extract the first word of "cp", so it can be a program name with args.
6616set dummy cp; ac_word=$2
6617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619if test "${ac_cv_path_CP+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 case $CP in
6623 [\\/]* | ?:[\\/]*)
6624 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6625 ;;
6626 *)
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638done
6639done
6640IFS=$as_save_IFS
6641
6642 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6643 ;;
6644esac
6645fi
6646CP=$ac_cv_path_CP
6647if test -n "$CP"; then
6648 { echo "$as_me:$LINENO: result: $CP" >&5
6649echo "${ECHO_T}$CP" >&6; }
6650else
6651 { echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6; }
6653fi
6654
6655
6656# Extract the first word of "date", so it can be a program name with args.
6657set dummy date; ac_word=$2
6658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660if test "${ac_cv_path_DATE+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 case $DATE in
6664 [\\/]* | ?:[\\/]*)
6665 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6666 ;;
6667 *)
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679done
6680done
6681IFS=$as_save_IFS
6682
6683 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6684 ;;
6685esac
6686fi
6687DATE=$ac_cv_path_DATE
6688if test -n "$DATE"; then
6689 { echo "$as_me:$LINENO: result: $DATE" >&5
6690echo "${ECHO_T}$DATE" >&6; }
6691else
6692 { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
6694fi
6695
6696
6697# Extract the first word of "find", so it can be a program name with args.
6698set dummy find; ac_word=$2
6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_path_FIND+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704 case $FIND in
6705 [\\/]* | ?:[\\/]*)
6706 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6707 ;;
6708 *)
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720done
6721done
6722IFS=$as_save_IFS
6723
6724 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6725 ;;
6726esac
6727fi
6728FIND=$ac_cv_path_FIND
6729if test -n "$FIND"; then
6730 { echo "$as_me:$LINENO: result: $FIND" >&5
6731echo "${ECHO_T}$FIND" >&6; }
6732else
6733 { echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6; }
6735fi
6736
6737
6738# Extract the first word of "grep", so it can be a program name with args.
6739set dummy grep; ac_word=$2
6740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742if test "${ac_cv_path_GREP+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 case $GREP in
6746 [\\/]* | ?:[\\/]*)
6747 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6748 ;;
6749 *)
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762done
6763IFS=$as_save_IFS
6764
6765 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6766 ;;
6767esac
6768fi
6769GREP=$ac_cv_path_GREP
6770if test -n "$GREP"; then
6771 { echo "$as_me:$LINENO: result: $GREP" >&5
6772echo "${ECHO_T}$GREP" >&6; }
6773else
6774 { echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6; }
6776fi
6777
6778
6779# Extract the first word of "mkdir", so it can be a program name with args.
6780set dummy mkdir; ac_word=$2
6781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783if test "${ac_cv_path_MKDIR+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 case $MKDIR in
6787 [\\/]* | ?:[\\/]*)
6788 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6789 ;;
6790 *)
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803done
6804IFS=$as_save_IFS
6805
6806 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6807 ;;
6808esac
6809fi
6810MKDIR=$ac_cv_path_MKDIR
6811if test -n "$MKDIR"; then
6812 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6813echo "${ECHO_T}$MKDIR" >&6; }
6814else
6815 { echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6; }
6817fi
6818
6819
6820# Extract the first word of "mv", so it can be a program name with args.
6821set dummy mv; ac_word=$2
6822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824if test "${ac_cv_path_MV+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827 case $MV in
6828 [\\/]* | ?:[\\/]*)
6829 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6830 ;;
6831 *)
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844done
6845IFS=$as_save_IFS
6846
6847 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6848 ;;
6849esac
6850fi
6851MV=$ac_cv_path_MV
6852if test -n "$MV"; then
6853 { echo "$as_me:$LINENO: result: $MV" >&5
6854echo "${ECHO_T}$MV" >&6; }
6855else
6856 { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
6858fi
6859
6860
6861if test -n "$ac_tool_prefix"; then
6862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866if test "${ac_cv_prog_RANLIB+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 if test -n "$RANLIB"; then
6870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889RANLIB=$ac_cv_prog_RANLIB
6890if test -n "$RANLIB"; then
6891 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6892echo "${ECHO_T}$RANLIB" >&6; }
6893else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
6896fi
6897
6898
6899fi
6900if test -z "$ac_cv_prog_RANLIB"; then
6901 ac_ct_RANLIB=$RANLIB
6902 # Extract the first word of "ranlib", so it can be a program name with args.
6903set dummy ranlib; ac_word=$2
6904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908else
6909 if test -n "$ac_ct_RANLIB"; then
6910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_ac_ct_RANLIB="ranlib"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927fi
6928fi
6929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6930if test -n "$ac_ct_RANLIB"; then
6931 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6932echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6933else
6934 { echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6; }
6936fi
6937
6938 if test "x$ac_ct_RANLIB" = x; then
6939 RANLIB=":"
6940 else
6941 case $cross_compiling:$ac_tool_warned in
6942yes:)
6943{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6944whose name does not start with the host triplet. If you think this
6945configuration is useful to you, please write to autoconf@gnu.org." >&5
6946echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947whose name does not start with the host triplet. If you think this
6948configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949ac_tool_warned=yes ;;
6950esac
6951 RANLIB=$ac_ct_RANLIB
6952 fi
6953else
6954 RANLIB="$ac_cv_prog_RANLIB"
6955fi
6956
6957# Extract the first word of "rm", so it can be a program name with args.
6958set dummy rm; ac_word=$2
6959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961if test "${ac_cv_path_RM+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963else
6964 case $RM in
6965 [\\/]* | ?:[\\/]*)
6966 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6967 ;;
6968 *)
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980done
6981done
6982IFS=$as_save_IFS
6983
6984 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6985 ;;
6986esac
6987fi
6988RM=$ac_cv_path_RM
6989if test -n "$RM"; then
6990 { echo "$as_me:$LINENO: result: $RM" >&5
6991echo "${ECHO_T}$RM" >&6; }
6992else
6993 { echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6; }
6995fi
6996
6997
6998# Extract the first word of "sed", so it can be a program name with args.
6999set dummy sed; ac_word=$2
7000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002if test "${ac_cv_path_SED+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004else
7005 case $SED in
7006 [\\/]* | ?:[\\/]*)
7007 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7008 ;;
7009 *)
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022done
7023IFS=$as_save_IFS
7024
7025 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7026 ;;
7027esac
7028fi
7029SED=$ac_cv_path_SED
7030if test -n "$SED"; then
7031 { echo "$as_me:$LINENO: result: $SED" >&5
7032echo "${ECHO_T}$SED" >&6; }
7033else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6; }
7036fi
7037
7038
7039# Extract the first word of "tar", so it can be a program name with args.
7040set dummy tar; ac_word=$2
7041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043if test "${ac_cv_path_TAR+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 case $TAR in
7047 [\\/]* | ?:[\\/]*)
7048 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7049 ;;
7050 *)
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063done
7064IFS=$as_save_IFS
7065
7066 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7067 ;;
7068esac
7069fi
7070TAR=$ac_cv_path_TAR
7071if test -n "$TAR"; then
7072 { echo "$as_me:$LINENO: result: $TAR" >&5
7073echo "${ECHO_T}$TAR" >&6; }
7074else
7075 { echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6; }
7077fi
7078
7079
7080# Extract the first word of "pwd", so it can be a program name with args.
7081set dummy pwd; ac_word=$2
7082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084if test "${ac_cv_path_BINPWD+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 case $BINPWD in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7090 ;;
7091 *)
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103done
7104done
7105IFS=$as_save_IFS
7106
7107 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7108 ;;
7109esac
7110fi
7111BINPWD=$ac_cv_path_BINPWD
7112if test -n "$BINPWD"; then
7113 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7114echo "${ECHO_T}$BINPWD" >&6; }
7115else
7116 { echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6; }
7118fi
7119
7120
7121
7122# Extract the first word of "Graphviz", so it can be a program name with args.
7123set dummy Graphviz; ac_word=$2
7124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 case $GRAPHVIZ in
7130 [\\/]* | ?:[\\/]*)
7131 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7132 ;;
7133 *)
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145done
7146done
7147IFS=$as_save_IFS
7148
7149 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7150 ;;
7151esac
7152fi
7153GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7154if test -n "$GRAPHVIZ"; then
7155 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7156echo "${ECHO_T}$GRAPHVIZ" >&6; }
7157else
7158 { echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6; }
7160fi
7161
7162
7163if test "$GRAPHVIZ" != "echo Graphviz" ; then
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define HAVE_GRAPHVIZ 1
7167_ACEOF
7168
Jeff Cohen28783c32007-01-12 18:22:38 +00007169 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007170 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7171 fi
7172
7173cat >>confdefs.h <<_ACEOF
7174#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7175_ACEOF
7176
7177fi
7178# Extract the first word of "dot", so it can be a program name with args.
7179set dummy dot; ac_word=$2
7180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_DOT+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185 case $DOT in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202done
7203IFS=$as_save_IFS
7204
7205 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7206 ;;
7207esac
7208fi
7209DOT=$ac_cv_path_DOT
7210if test -n "$DOT"; then
7211 { echo "$as_me:$LINENO: result: $DOT" >&5
7212echo "${ECHO_T}$DOT" >&6; }
7213else
7214 { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
7216fi
7217
7218
7219if test "$DOT" != "echo dot" ; then
7220
7221cat >>confdefs.h <<\_ACEOF
7222#define HAVE_DOT 1
7223_ACEOF
7224
Jeff Cohen28783c32007-01-12 18:22:38 +00007225 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007226 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7227 fi
7228
7229cat >>confdefs.h <<_ACEOF
7230#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7231_ACEOF
7232
7233fi
7234for ac_prog in gv gsview32
7235do
7236 # Extract the first word of "$ac_prog", so it can be a program name with args.
7237set dummy $ac_prog; ac_word=$2
7238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240if test "${ac_cv_path_GV+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242else
7243 case $GV in
7244 [\\/]* | ?:[\\/]*)
7245 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7246 ;;
7247 *)
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259done
7260done
7261IFS=$as_save_IFS
7262
7263 ;;
7264esac
7265fi
7266GV=$ac_cv_path_GV
7267if test -n "$GV"; then
7268 { echo "$as_me:$LINENO: result: $GV" >&5
7269echo "${ECHO_T}$GV" >&6; }
7270else
7271 { echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6; }
7273fi
7274
7275
7276 test -n "$GV" && break
7277done
7278test -n "$GV" || GV="echo gv"
7279
7280if test "$GV" != "echo gv" ; then
7281
7282cat >>confdefs.h <<\_ACEOF
7283#define HAVE_GV 1
7284_ACEOF
7285
Jeff Cohen28783c32007-01-12 18:22:38 +00007286 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007287 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7288 fi
7289
7290cat >>confdefs.h <<_ACEOF
7291#define LLVM_PATH_GV "$GV${EXEEXT}"
7292_ACEOF
7293
7294fi
7295# Extract the first word of "dotty", so it can be a program name with args.
7296set dummy dotty; ac_word=$2
7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299if test "${ac_cv_path_DOTTY+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 case $DOTTY in
7303 [\\/]* | ?:[\\/]*)
7304 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7305 ;;
7306 *)
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320IFS=$as_save_IFS
7321
7322 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7323 ;;
7324esac
7325fi
7326DOTTY=$ac_cv_path_DOTTY
7327if test -n "$DOTTY"; then
7328 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7329echo "${ECHO_T}$DOTTY" >&6; }
7330else
7331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
7333fi
7334
7335
7336if test "$DOTTY" != "echo dotty" ; then
7337
7338cat >>confdefs.h <<\_ACEOF
7339#define HAVE_DOTTY 1
7340_ACEOF
7341
Jeff Cohen28783c32007-01-12 18:22:38 +00007342 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007343 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7344 fi
7345
7346cat >>confdefs.h <<_ACEOF
7347#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7348_ACEOF
7349
7350fi
7351
7352
7353# Extract the first word of "perl", so it can be a program name with args.
7354set dummy perl; ac_word=$2
7355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357if test "${ac_cv_path_PERL+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360 case $PERL in
7361 [\\/]* | ?:[\\/]*)
7362 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7363 ;;
7364 *)
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376done
7377done
7378IFS=$as_save_IFS
7379
7380 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7381 ;;
7382esac
7383fi
7384PERL=$ac_cv_path_PERL
7385if test -n "$PERL"; then
7386 { echo "$as_me:$LINENO: result: $PERL" >&5
7387echo "${ECHO_T}$PERL" >&6; }
7388else
7389 { echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6; }
7391fi
7392
7393
7394if test "$PERL" != "none"; then
7395 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7396echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7397 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7398 { echo "$as_me:$LINENO: result: yes" >&5
7399echo "${ECHO_T}yes" >&6; }
7400 else
7401 PERL=none
7402 { echo "$as_me:$LINENO: result: not found" >&5
7403echo "${ECHO_T}not found" >&6; }
7404 fi
7405fi
7406
7407
7408if test x"$PERL" = xnone; then
7409 HAVE_PERL=0
7410
Reid Spencer59807fa2007-05-17 18:11:03 +00007411 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7412echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7413 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414else
7415 HAVE_PERL=1
7416
7417fi
7418
7419# Find a good install program. We prefer a C program (faster),
7420# so one script is as good as another. But avoid the broken or
7421# incompatible versions:
7422# SysV /etc/install, /usr/sbin/install
7423# SunOS /usr/etc/install
7424# IRIX /sbin/install
7425# AIX /bin/install
7426# AmigaOS /C/install, which installs bootblocks on floppy discs
7427# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7428# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7429# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7430# OS/2's system install, which has a completely different semantic
7431# ./install, which can be erroneously created by make from ./install.sh.
7432{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7433echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7434if test -z "$INSTALL"; then
7435if test "${ac_cv_path_install+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 # Account for people who put trailing slashes in PATH elements.
7444case $as_dir/ in
7445 ./ | .// | /cC/* | \
7446 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7447 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7448 /usr/ucb/* ) ;;
7449 *)
7450 # OSF1 and SCO ODT 3.0 have their own names for install.
7451 # Don't use installbsd from OSF since it installs stuff as root
7452 # by default.
7453 for ac_prog in ginstall scoinst install; do
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7456 if test $ac_prog = install &&
7457 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7458 # AIX install. It has an incompatible calling convention.
7459 :
7460 elif test $ac_prog = install &&
7461 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7462 # program-specific install script used by HP pwplus--don't use.
7463 :
7464 else
7465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7466 break 3
7467 fi
7468 fi
7469 done
7470 done
7471 ;;
7472esac
7473done
7474IFS=$as_save_IFS
7475
7476
7477fi
7478 if test "${ac_cv_path_install+set}" = set; then
7479 INSTALL=$ac_cv_path_install
7480 else
7481 # As a last resort, use the slow shell script. Don't cache a
7482 # value for INSTALL within a source directory, because that will
7483 # break other packages using the cache if that directory is
7484 # removed, or if the value is a relative name.
7485 INSTALL=$ac_install_sh
7486 fi
7487fi
7488{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7489echo "${ECHO_T}$INSTALL" >&6; }
7490
7491# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7492# It thinks the first close brace ends the variable substitution.
7493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7494
7495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7496
7497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7498
7499
7500# Extract the first word of "bzip2", so it can be a program name with args.
7501set dummy bzip2; ac_word=$2
7502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504if test "${ac_cv_path_BZIP2+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507 case $BZIP2 in
7508 [\\/]* | ?:[\\/]*)
7509 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7510 ;;
7511 *)
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524done
7525IFS=$as_save_IFS
7526
7527 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7528 ;;
7529esac
7530fi
7531BZIP2=$ac_cv_path_BZIP2
7532if test -n "$BZIP2"; then
7533 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7534echo "${ECHO_T}$BZIP2" >&6; }
7535else
7536 { echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6; }
7538fi
7539
7540
7541# Extract the first word of "doxygen", so it can be a program name with args.
7542set dummy doxygen; ac_word=$2
7543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545if test "${ac_cv_path_DOXYGEN+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 case $DOXYGEN in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7551 ;;
7552 *)
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565done
7566IFS=$as_save_IFS
7567
7568 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7569 ;;
7570esac
7571fi
7572DOXYGEN=$ac_cv_path_DOXYGEN
7573if test -n "$DOXYGEN"; then
7574 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7575echo "${ECHO_T}$DOXYGEN" >&6; }
7576else
7577 { echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6; }
7579fi
7580
7581
Reid Spencera773bd52006-08-04 18:18:08 +00007582# Extract the first word of "groff", so it can be a program name with args.
7583set dummy groff; ac_word=$2
7584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586if test "${ac_cv_path_GROFF+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 case $GROFF in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606done
7607IFS=$as_save_IFS
7608
7609 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7610 ;;
7611esac
7612fi
7613GROFF=$ac_cv_path_GROFF
7614if test -n "$GROFF"; then
7615 { echo "$as_me:$LINENO: result: $GROFF" >&5
7616echo "${ECHO_T}$GROFF" >&6; }
7617else
7618 { echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6; }
7620fi
7621
7622
7623# Extract the first word of "gzip", so it can be a program name with args.
7624set dummy gzip; ac_word=$2
7625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627if test "${ac_cv_path_GZIP+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630 case $GZIP in
7631 [\\/]* | ?:[\\/]*)
7632 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7633 ;;
7634 *)
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646done
7647done
7648IFS=$as_save_IFS
7649
7650 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7651 ;;
7652esac
7653fi
7654GZIP=$ac_cv_path_GZIP
7655if test -n "$GZIP"; then
7656 { echo "$as_me:$LINENO: result: $GZIP" >&5
7657echo "${ECHO_T}$GZIP" >&6; }
7658else
7659 { echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6; }
7661fi
7662
7663
7664# Extract the first word of "pod2html", so it can be a program name with args.
7665set dummy pod2html; ac_word=$2
7666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668if test "${ac_cv_path_POD2HTML+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 case $POD2HTML in
7672 [\\/]* | ?:[\\/]*)
7673 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7674 ;;
7675 *)
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687done
7688done
7689IFS=$as_save_IFS
7690
7691 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7692 ;;
7693esac
7694fi
7695POD2HTML=$ac_cv_path_POD2HTML
7696if test -n "$POD2HTML"; then
7697 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7698echo "${ECHO_T}$POD2HTML" >&6; }
7699else
7700 { echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6; }
7702fi
7703
7704
7705# Extract the first word of "pod2man", so it can be a program name with args.
7706set dummy pod2man; ac_word=$2
7707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7709if test "${ac_cv_path_POD2MAN+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 case $POD2MAN in
7713 [\\/]* | ?:[\\/]*)
7714 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7715 ;;
7716 *)
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728done
7729done
7730IFS=$as_save_IFS
7731
7732 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7733 ;;
7734esac
7735fi
7736POD2MAN=$ac_cv_path_POD2MAN
7737if test -n "$POD2MAN"; then
7738 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7739echo "${ECHO_T}$POD2MAN" >&6; }
7740else
7741 { echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6; }
7743fi
7744
7745
7746# Extract the first word of "runtest", so it can be a program name with args.
7747set dummy runtest; ac_word=$2
7748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750if test "${ac_cv_path_RUNTEST+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 case $RUNTEST in
7754 [\\/]* | ?:[\\/]*)
7755 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7756 ;;
7757 *)
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7768 fi
7769done
7770done
7771IFS=$as_save_IFS
7772
7773 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7774 ;;
7775esac
7776fi
7777RUNTEST=$ac_cv_path_RUNTEST
7778if test -n "$RUNTEST"; then
7779 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7780echo "${ECHO_T}$RUNTEST" >&6; }
7781else
7782 { echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6; }
7784fi
7785
7786
7787
7788no_itcl=true
7789{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7790echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7791
7792# Check whether --with-tclinclude was given.
7793if test "${with_tclinclude+set}" = set; then
7794 withval=$with_tclinclude; with_tclinclude=${withval}
7795else
7796 with_tclinclude=''
7797fi
7798
7799if test "${ac_cv_path_tclsh+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802
7803if test x"${with_tclinclude}" != x ; then
7804 if test -f ${with_tclinclude}/tclsh ; then
7805 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7806 elif test -f ${with_tclinclude}/src/tclsh ; then
7807 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7808 else
7809 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7810echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7811 { (exit 1); exit 1; }; }
7812 fi
7813fi
7814
7815if test x"${ac_cv_path_tclsh}" = x ; then
7816 { echo "$as_me:$LINENO: result: none" >&5
7817echo "${ECHO_T}none" >&6; }
7818 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
7819do
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821set dummy $ac_prog; ac_word=$2
7822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824if test "${ac_cv_path_TCLSH+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 case $TCLSH in
7828 [\\/]* | ?:[\\/]*)
7829 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7830 ;;
7831 *)
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844done
7845IFS=$as_save_IFS
7846
7847 ;;
7848esac
7849fi
7850TCLSH=$ac_cv_path_TCLSH
7851if test -n "$TCLSH"; then
7852 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7853echo "${ECHO_T}$TCLSH" >&6; }
7854else
7855 { echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6; }
7857fi
7858
7859
7860 test -n "$TCLSH" && break
7861done
7862
7863 if test x"${TCLSH}" = x ; then
7864 ac_cv_path_tclsh='';
7865 else
7866 ac_cv_path_tclsh="${TCLSH}";
7867 fi
7868else
7869 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7870echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7871 TCLSH="${ac_cv_path_tclsh}"
7872
7873fi
7874
7875fi
7876
7877# Extract the first word of "zip", so it can be a program name with args.
7878set dummy zip; ac_word=$2
7879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7881if test "${ac_cv_path_ZIP+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7883else
7884 case $ZIP in
7885 [\\/]* | ?:[\\/]*)
7886 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7887 ;;
7888 *)
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900done
7901done
7902IFS=$as_save_IFS
7903
7904 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7905 ;;
7906esac
7907fi
7908ZIP=$ac_cv_path_ZIP
7909if test -n "$ZIP"; then
7910 { echo "$as_me:$LINENO: result: $ZIP" >&5
7911echo "${ECHO_T}$ZIP" >&6; }
7912else
7913 { echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6; }
7915fi
7916
7917
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007918# Extract the first word of "ocamlc", so it can be a program name with args.
7919set dummy ocamlc; ac_word=$2
7920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7922if test "${ac_cv_path_OCAMLC+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925 case $OCAMLC in
7926 [\\/]* | ?:[\\/]*)
7927 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7928 ;;
7929 *)
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941done
7942done
7943IFS=$as_save_IFS
7944
7945 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7946 ;;
7947esac
7948fi
7949OCAMLC=$ac_cv_path_OCAMLC
7950if test -n "$OCAMLC"; then
7951 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7952echo "${ECHO_T}$OCAMLC" >&6; }
7953else
7954 { echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6; }
7956fi
7957
7958
7959# Extract the first word of "ocamlopt", so it can be a program name with args.
7960set dummy ocamlopt; ac_word=$2
7961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965else
7966 case $OCAMLOPT in
7967 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7969 ;;
7970 *)
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH
7973do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982done
7983done
7984IFS=$as_save_IFS
7985
7986 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7987 ;;
7988esac
7989fi
7990OCAMLOPT=$ac_cv_path_OCAMLOPT
7991if test -n "$OCAMLOPT"; then
7992 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7993echo "${ECHO_T}$OCAMLOPT" >&6; }
7994else
7995 { echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6; }
7997fi
7998
7999
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008000# Extract the first word of "ocamldep", so it can be a program name with args.
8001set dummy ocamldep; ac_word=$2
8002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8004if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007 case $OCAMLDEP in
8008 [\\/]* | ?:[\\/]*)
8009 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8010 ;;
8011 *)
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023done
8024done
8025IFS=$as_save_IFS
8026
8027 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8028 ;;
8029esac
8030fi
8031OCAMLDEP=$ac_cv_path_OCAMLDEP
8032if test -n "$OCAMLDEP"; then
8033 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8034echo "${ECHO_T}$OCAMLDEP" >&6; }
8035else
8036 { echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6; }
8038fi
8039
8040
Reid Spencera773bd52006-08-04 18:18:08 +00008041
8042{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8043echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8044if test "${llvm_cv_link_use_r+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046else
8047 ac_ext=c
8048ac_cpp='$CPP $CPPFLAGS'
8049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051ac_compiler_gnu=$ac_cv_c_compiler_gnu
8052
8053 oldcflags="$CFLAGS"
8054 CFLAGS="$CFLAGS -Wl,-R."
8055 cat >conftest.$ac_ext <<_ACEOF
8056/* confdefs.h. */
8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */
8061
8062int
8063main ()
8064{
8065int main() { return 0; }
8066 ;
8067 return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext conftest$ac_exeext
8071if { (ac_try="$ac_link"
8072case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075esac
8076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_link") 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 llvm_cv_link_use_r=yes
8105else
8106 echo "$as_me: failed program was:" >&5
8107sed 's/^/| /' conftest.$ac_ext >&5
8108
8109 llvm_cv_link_use_r=no
8110fi
8111
8112rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 CFLAGS="$oldcflags"
8115 ac_ext=c
8116ac_cpp='$CPP $CPPFLAGS'
8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122fi
8123{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8124echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8125if test "$llvm_cv_link_use_r" = yes ; then
8126
8127cat >>confdefs.h <<\_ACEOF
8128#define HAVE_LINK_R 1
8129_ACEOF
8130
8131 fi
8132
8133
8134
8135
8136{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8137echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8138if test "${ac_cv_c_const+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h. */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h. */
8147
8148int
8149main ()
8150{
8151/* FIXME: Include the comments suggested by Paul. */
8152#ifndef __cplusplus
8153 /* Ultrix mips cc rejects this. */
8154 typedef int charset[2];
8155 const charset x;
8156 /* SunOS 4.1.1 cc rejects this. */
8157 char const *const *ccp;
8158 char **p;
8159 /* NEC SVR4.0.2 mips cc rejects this. */
8160 struct point {int x, y;};
8161 static struct point const zero = {0,0};
8162 /* AIX XL C 1.02.0.0 rejects this.
8163 It does not let you subtract one const X* pointer from another in
8164 an arm of an if-expression whose if-part is not a constant
8165 expression */
8166 const char *g = "string";
8167 ccp = &g + (g ? g-g : 0);
8168 /* HPUX 7.0 cc rejects these. */
8169 ++ccp;
8170 p = (char**) ccp;
8171 ccp = (char const *const *) p;
8172 { /* SCO 3.2v4 cc rejects this. */
8173 char *t;
8174 char const *s = 0 ? (char *) 0 : (char const *) 0;
8175
8176 *t++ = 0;
8177 if (s) return 0;
8178 }
8179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8180 int x[] = {25, 17};
8181 const int *foo = &x[0];
8182 ++foo;
8183 }
8184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8185 typedef const int *iptr;
8186 iptr p = 0;
8187 ++p;
8188 }
8189 { /* AIX XL C 1.02.0.0 rejects this saying
8190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8191 struct s { int j; const int *ap[3]; };
8192 struct s *b; b->j = 5;
8193 }
8194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195 const int foo = 10;
8196 if (!foo) return 0;
8197 }
8198 return !x[0] && !zero.x;
8199#endif
8200
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext
8206if { (ac_try="$ac_compile"
8207case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233esac
8234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_c_const=yes
8240else
8241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_cv_c_const=no
8245fi
8246
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248fi
8249{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8250echo "${ECHO_T}$ac_cv_c_const" >&6; }
8251if test $ac_cv_c_const = no; then
8252
8253cat >>confdefs.h <<\_ACEOF
8254#define const
8255_ACEOF
8256
8257fi
8258
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008259
8260
8261
8262
8263
8264ac_header_dirent=no
8265for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008267{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8268echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278#include <sys/types.h>
8279#include <$ac_hdr>
8280
8281int
8282main ()
8283{
8284if ((DIR *) 0)
8285return 0;
8286 ;
8287 return 0;
8288}
8289_ACEOF
8290rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008291if { (ac_try="$ac_compile"
8292case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318esac
8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 eval "$as_ac_Header=yes"
8325else
8326 echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
Reid Spencera773bd52006-08-04 18:18:08 +00008329 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330fi
Reid Spencera773bd52006-08-04 18:18:08 +00008331
8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008333fi
Reid Spencera773bd52006-08-04 18:18:08 +00008334ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008337if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8340_ACEOF
8341
8342ac_header_dirent=$ac_hdr; break
8343fi
8344
8345done
8346# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8347if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008350if test "${ac_cv_search_opendir+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008354cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */
8360
Reid Spencera773bd52006-08-04 18:18:08 +00008361/* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008364#ifdef __cplusplus
8365extern "C"
8366#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008367char opendir ();
8368int
8369main ()
8370{
Reid Spencera773bd52006-08-04 18:18:08 +00008371return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008372 ;
8373 return 0;
8374}
8375_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008376for ac_lib in '' dir; do
8377 if test -z "$ac_lib"; then
8378 ac_res="none required"
8379 else
8380 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008382 fi
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384if { (ac_try="$ac_link"
8385case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401esac
8402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411esac
8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008417 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008418else
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008422
8423fi
8424
Reid Spencera773bd52006-08-04 18:18:08 +00008425rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext
8427 if test "${ac_cv_search_opendir+set}" = set; then
8428 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008429fi
John Criswell7a73b802003-06-30 21:59:07 +00008430done
Reid Spencera773bd52006-08-04 18:18:08 +00008431if test "${ac_cv_search_opendir+set}" = set; then
8432 :
8433else
8434 ac_cv_search_opendir=no
8435fi
8436rm conftest.$ac_ext
8437LIBS=$ac_func_search_save_LIBS
8438fi
8439{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441ac_res=$ac_cv_search_opendir
8442if test "$ac_res" != no; then
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008444
Reid Spencera773bd52006-08-04 18:18:08 +00008445fi
8446
8447else
8448 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8449echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8450if test "${ac_cv_search_opendir+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453 ac_func_search_save_LIBS=$LIBS
8454cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
8460
8461/* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8464#ifdef __cplusplus
8465extern "C"
8466#endif
8467char opendir ();
8468int
8469main ()
8470{
8471return opendir ();
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476for ac_lib in '' x; do
8477 if test -z "$ac_lib"; then
8478 ac_res="none required"
8479 else
8480 ac_res=-l$ac_lib
8481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8482 fi
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_search_opendir=$ac_res
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522
8523fi
8524
8525rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext
8527 if test "${ac_cv_search_opendir+set}" = set; then
8528 break
8529fi
8530done
8531if test "${ac_cv_search_opendir+set}" = set; then
8532 :
8533else
8534 ac_cv_search_opendir=no
8535fi
8536rm conftest.$ac_ext
8537LIBS=$ac_func_search_save_LIBS
8538fi
8539{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8540echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8541ac_res=$ac_cv_search_opendir
8542if test "$ac_res" != no; then
8543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544
8545fi
8546
8547fi
John Criswell7a73b802003-06-30 21:59:07 +00008548
8549
8550for ac_header in dlfcn.h
8551do
8552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008557 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008558fi
Reid Spencera773bd52006-08-04 18:18:08 +00008559ac_res=`eval echo '${'$as_ac_Header'}'`
8560 { echo "$as_me:$LINENO: result: $ac_res" >&5
8561echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008562else
Brian Gaeke0a621332004-09-08 20:38:05 +00008563 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008566cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008572$ac_includes_default
8573#include <$ac_header>
8574_ACEOF
8575rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008576if { (ac_try="$ac_compile"
8577case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593esac
8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603esac
8604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008609 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008610else
8611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008612sed 's/^/| /' conftest.$ac_ext >&5
8613
Reid Spencera773bd52006-08-04 18:18:08 +00008614 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008615fi
Reid Spencera773bd52006-08-04 18:18:08 +00008616
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008620
8621# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008622{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008624cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630#include <$ac_header>
8631_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008632if { (ac_try="$ac_cpp conftest.$ac_ext"
8633case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008648 else
8649 ac_cpp_err=
8650 fi
8651else
8652 ac_cpp_err=yes
8653fi
8654if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8656else
8657 echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_header_preproc=no
8661fi
Reid Spencera773bd52006-08-04 18:18:08 +00008662
Brian Gaeke0a621332004-09-08 20:38:05 +00008663rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008664{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008666
8667# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8669 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008675 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008676 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008689 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008690## ----------------------------------- ##
8691## Report this to llvmbugs@cs.uiuc.edu ##
8692## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008693_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008694 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008695 ;;
8696esac
Reid Spencera773bd52006-08-04 18:18:08 +00008697{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008702 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008703fi
Reid Spencera773bd52006-08-04 18:18:08 +00008704ac_res=`eval echo '${'$as_ac_Header'}'`
8705 { echo "$as_me:$LINENO: result: $ac_res" >&5
8706echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008707
8708fi
John Criswell7a73b802003-06-30 21:59:07 +00008709if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712_ACEOF
8713
8714fi
8715
8716done
8717
Reid Spencera773bd52006-08-04 18:18:08 +00008718# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008719if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008720 enableval=$enable_ltdl_install;
8721fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008722
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008723
8724
8725
8726if test x"${enable_ltdl_install-no}" != xno; then
8727 INSTALL_LTDL_TRUE=
8728 INSTALL_LTDL_FALSE='#'
8729else
8730 INSTALL_LTDL_TRUE='#'
8731 INSTALL_LTDL_FALSE=
8732fi
8733
8734
8735
8736if test x"${enable_ltdl_convenience-no}" != xno; then
8737 CONVENIENCE_LTDL_TRUE=
8738 CONVENIENCE_LTDL_FALSE='#'
8739else
8740 CONVENIENCE_LTDL_TRUE='#'
8741 CONVENIENCE_LTDL_FALSE=
8742fi
8743
8744
Reid Spencera773bd52006-08-04 18:18:08 +00008745{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8746echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008747library_names_spec=
8748libname_spec='lib$name'
8749soname_spec=
8750shrext_cmds=".so"
8751postinstall_cmds=
8752postuninstall_cmds=
8753finish_cmds=
8754finish_eval=
8755shlibpath_var=
8756shlibpath_overrides_runpath=unknown
8757version_type=none
8758dynamic_linker="$host_os ld.so"
8759sys_lib_dlsearch_path_spec="/lib /usr/lib"
8760if test "$GCC" = yes; then
8761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8763 # if the path contains ";" then we assume it to be the separator
8764 # otherwise default to the standard path separator (i.e. ":") - it is
8765 # assumed that no part of a normal pathname contains ";" but that should
8766 # okay in the real world where ";" in dirpaths is itself problematic.
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8768 else
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8770 fi
8771else
8772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8773fi
8774need_lib_prefix=unknown
8775hardcode_into_libs=no
8776
8777# when you set need_version to no, make sure it does not cause -set_version
8778# flags to be left without arguments
8779need_version=unknown
8780
8781case $host_os in
8782aix3*)
8783 version_type=linux
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785 shlibpath_var=LIBPATH
8786
8787 # AIX 3 has no versioning support, so we append a major version to the name.
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 ;;
8790
8791aix4* | aix5*)
8792 version_type=linux
8793 need_lib_prefix=no
8794 need_version=no
8795 hardcode_into_libs=yes
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 supports IA64
8798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 else
8801 # With GCC up to 2.95.x, collect2 would create an import file
8802 # for dependence libraries. The import file would start with
8803 # the line `#! .'. This would cause the generated library to
8804 # depend on `.', always an invalid library. This was fixed in
8805 # development snapshots of GCC prior to 3.0.
8806 case $host_os in
8807 aix4 | aix4.[01] | aix4.[01].*)
8808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809 echo ' yes '
8810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8811 :
8812 else
8813 can_build_shared=no
8814 fi
8815 ;;
8816 esac
8817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818 # soname into executable. Probably we can add versioning support to
8819 # collect2, so additional links can be useful in future.
8820 if test "$aix_use_runtimelinking" = yes; then
8821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822 # instead of lib<name>.a to let people know that these are not
8823 # typical AIX shared libraries.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 else
8826 # We preserve .a as extension for shared libraries through AIX4.2
8827 # and later when we are not doing run time linking.
8828 library_names_spec='${libname}${release}.a $libname.a'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 fi
8831 shlibpath_var=LIBPATH
8832 fi
8833 ;;
8834
8835amigaos*)
8836 library_names_spec='$libname.ixlibrary $libname.a'
8837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8838 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'
8839 ;;
8840
8841beos*)
8842 library_names_spec='${libname}${shared_ext}'
8843 dynamic_linker="$host_os ld.so"
8844 shlibpath_var=LIBRARY_PATH
8845 ;;
8846
8847bsdi[45]*)
8848 version_type=linux
8849 need_version=no
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8856 # the default ld.so.conf also contains /usr/contrib/lib and
8857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8858 # libtool to hard-code these into programs
8859 ;;
8860
8861cygwin* | mingw* | pw32*)
8862 version_type=windows
8863 shrext_cmds=".dll"
8864 need_version=no
8865 need_lib_prefix=no
8866
8867 case $GCC,$host_os in
8868 yes,cygwin* | yes,mingw* | yes,pw32*)
8869 library_names_spec='$libname.dll.a'
8870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8871 postinstall_cmds='base_file=`basename \${file}`~
8872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8873 dldir=$destdir/`dirname \$dlpath`~
8874 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008875 $install_prog $dir/$dlname \$dldir/$dlname~
8876 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8878 dlpath=$dir/\$dldll~
8879 $rm \$dlpath'
8880 shlibpath_overrides_runpath=yes
8881
8882 case $host_os in
8883 cygwin*)
8884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8887 ;;
8888 mingw*)
8889 # MinGW DLLs use traditional 'lib' prefix
8890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8893 # It is most probably a Windows format PATH printed by
8894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895 # path with ; separators, and with drive letters. We can handle the
8896 # drive letters (cygwin fileutils understands them), so leave them,
8897 # especially as we might pass files found there to a mingw objdump,
8898 # which wouldn't understand a cygwinified path. Ahh.
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900 else
8901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8902 fi
8903 ;;
8904 pw32*)
8905 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008906 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 +00008907 ;;
8908 esac
8909 ;;
8910
8911 *)
8912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8913 ;;
8914 esac
8915 dynamic_linker='Win32 ld.exe'
8916 # FIXME: first we should search . and the directory the executable is in
8917 shlibpath_var=PATH
8918 ;;
8919
8920darwin* | rhapsody*)
8921 dynamic_linker="$host_os dyld"
8922 version_type=darwin
8923 need_lib_prefix=no
8924 need_version=no
8925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926 soname_spec='${libname}${release}${major}$shared_ext'
8927 shlibpath_overrides_runpath=yes
8928 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008929 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931 if test "$GCC" = yes; then
8932 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"`
8933 else
8934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8935 fi
8936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8937 ;;
8938
8939dgux*)
8940 version_type=linux
8941 need_lib_prefix=no
8942 need_version=no
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 ;;
8947
8948freebsd1*)
8949 dynamic_linker=no
8950 ;;
8951
8952kfreebsd*-gnu)
8953 version_type=linux
8954 need_lib_prefix=no
8955 need_version=no
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 dynamic_linker='GNU ld.so'
8962 ;;
8963
Reid Spencera773bd52006-08-04 18:18:08 +00008964freebsd* | dragonfly*)
8965 # DragonFly does not have aout. When/if they implement a new
8966 # versioning mechanism, adjust this.
8967 if test -x /usr/bin/objformat; then
8968 objformat=`/usr/bin/objformat`
8969 else
8970 case $host_os in
8971 freebsd[123]*) objformat=aout ;;
8972 *) objformat=elf ;;
8973 esac
8974 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975 version_type=freebsd-$objformat
8976 case $version_type in
8977 freebsd-elf*)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979 need_version=no
8980 need_lib_prefix=no
8981 ;;
8982 freebsd-*)
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984 need_version=yes
8985 ;;
8986 esac
8987 shlibpath_var=LD_LIBRARY_PATH
8988 case $host_os in
8989 freebsd2*)
8990 shlibpath_overrides_runpath=yes
8991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008992 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
8995 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009001 freebsd*) # from 4.6 on
9002 shlibpath_overrides_runpath=yes
9003 hardcode_into_libs=yes
9004 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009005 esac
9006 ;;
9007
9008gnu*)
9009 version_type=linux
9010 need_lib_prefix=no
9011 need_version=no
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 hardcode_into_libs=yes
9016 ;;
9017
9018hpux9* | hpux10* | hpux11*)
9019 # Give a soname corresponding to the major version so that dld.sl refuses to
9020 # link against other versions.
9021 version_type=sunos
9022 need_lib_prefix=no
9023 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009024 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009025 ia64*)
9026 shrext_cmds='.so'
9027 hardcode_into_libs=yes
9028 dynamic_linker="$host_os dld.so"
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 if test "X$HPUX_IA64_MODE" = X32; then
9034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9035 else
9036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9037 fi
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 ;;
9040 hppa*64*)
9041 shrext_cmds='.sl'
9042 hardcode_into_libs=yes
9043 dynamic_linker="$host_os dld.sl"
9044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 ;;
9051 *)
9052 shrext_cmds='.sl'
9053 dynamic_linker="$host_os dld.sl"
9054 shlibpath_var=SHLIB_PATH
9055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 ;;
9059 esac
9060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9061 postinstall_cmds='chmod 555 $lib'
9062 ;;
9063
Reid Spencera773bd52006-08-04 18:18:08 +00009064interix3*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=no
9073 hardcode_into_libs=yes
9074 ;;
9075
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009076irix5* | irix6* | nonstopux*)
9077 case $host_os in
9078 nonstopux*) version_type=nonstopux ;;
9079 *)
9080 if test "$lt_cv_prog_gnu_ld" = yes; then
9081 version_type=linux
9082 else
9083 version_type=irix
9084 fi ;;
9085 esac
9086 need_lib_prefix=no
9087 need_version=no
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9090 case $host_os in
9091 irix5* | nonstopux*)
9092 libsuff= shlibsuff=
9093 ;;
9094 *)
9095 case $LD in # libtool.m4 will add one of these switches to LD
9096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9097 libsuff= shlibsuff= libmagic=32-bit;;
9098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9099 libsuff=32 shlibsuff=N32 libmagic=N32;;
9100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9102 *) libsuff= shlibsuff= libmagic=never-match;;
9103 esac
9104 ;;
9105 esac
9106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9107 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9110 hardcode_into_libs=yes
9111 ;;
9112
9113# No shared lib support for Linux oldld, aout, or coff.
9114linux*oldld* | linux*aout* | linux*coff*)
9115 dynamic_linker=no
9116 ;;
9117
9118# This must be Linux ELF.
9119linux*)
9120 version_type=linux
9121 need_lib_prefix=no
9122 need_version=no
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=no
9128 # This implies no fast_install, which is unacceptable.
9129 # Some rework will be needed to allow for fast_install
9130 # before this can be enabled.
9131 hardcode_into_libs=yes
9132
9133 # Append ld.so.conf contents to the search path
9134 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009135 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 +00009136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9137 fi
9138
9139 # We used to test for /lib/ld.so.1 and disable shared libraries on
9140 # powerpc, because MkLinux only supported shared libraries with the
9141 # GNU dynamic linker. Since this was broken with cross compilers,
9142 # most powerpc-linux boxes support dynamic linking these days and
9143 # people can always --disable-shared, the test was removed, and we
9144 # assume the GNU/Linux dynamic linker is in use.
9145 dynamic_linker='GNU/Linux ld.so'
9146 ;;
9147
9148knetbsd*-gnu)
9149 version_type=linux
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9157 dynamic_linker='GNU ld.so'
9158 ;;
9159
9160netbsd*)
9161 version_type=sunos
9162 need_lib_prefix=no
9163 need_version=no
9164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167 dynamic_linker='NetBSD (a.out) ld.so'
9168 else
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 dynamic_linker='NetBSD ld.elf_so'
9172 fi
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 hardcode_into_libs=yes
9176 ;;
9177
9178newsos6)
9179 version_type=linux
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9183 ;;
9184
9185nto-qnx*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9193 ;;
9194
9195openbsd*)
9196 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009197 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9200 case $host_os in
9201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9202 *) need_version=no ;;
9203 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208 case $host_os in
9209 openbsd2.[89] | openbsd2.[89].*)
9210 shlibpath_overrides_runpath=no
9211 ;;
9212 *)
9213 shlibpath_overrides_runpath=yes
9214 ;;
9215 esac
9216 else
9217 shlibpath_overrides_runpath=yes
9218 fi
9219 ;;
9220
9221os2*)
9222 libname_spec='$name'
9223 shrext_cmds=".dll"
9224 need_lib_prefix=no
9225 library_names_spec='$libname${shared_ext} $libname.a'
9226 dynamic_linker='OS/2 ld.exe'
9227 shlibpath_var=LIBPATH
9228 ;;
9229
9230osf3* | osf4* | osf5*)
9231 version_type=osf
9232 need_lib_prefix=no
9233 need_version=no
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9239 ;;
9240
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241solaris*)
9242 version_type=linux
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 # ldd complains unless libraries are executable
9251 postinstall_cmds='chmod +x $lib'
9252 ;;
9253
9254sunos4*)
9255 version_type=sunos
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 if test "$with_gnu_ld" = yes; then
9261 need_lib_prefix=no
9262 fi
9263 need_version=yes
9264 ;;
9265
Reid Spencera773bd52006-08-04 18:18:08 +00009266sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009267 version_type=linux
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 case $host_vendor in
9272 sni)
9273 shlibpath_overrides_runpath=no
9274 need_lib_prefix=no
9275 export_dynamic_flag_spec='${wl}-Blargedynsym'
9276 runpath_var=LD_RUN_PATH
9277 ;;
9278 siemens)
9279 need_lib_prefix=no
9280 ;;
9281 motorola)
9282 need_lib_prefix=no
9283 need_version=no
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9286 ;;
9287 esac
9288 ;;
9289
9290sysv4*MP*)
9291 if test -d /usr/nec ;then
9292 version_type=linux
9293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294 soname_spec='$libname${shared_ext}.$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 fi
9297 ;;
9298
Reid Spencera773bd52006-08-04 18:18:08 +00009299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300 version_type=freebsd-elf
9301 need_lib_prefix=no
9302 need_version=no
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 hardcode_into_libs=yes
9307 if test "$with_gnu_ld" = yes; then
9308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309 shlibpath_overrides_runpath=no
9310 else
9311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312 shlibpath_overrides_runpath=yes
9313 case $host_os in
9314 sco3.2v5*)
9315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316 ;;
9317 esac
9318 fi
9319 sys_lib_dlsearch_path_spec='/usr/lib'
9320 ;;
9321
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322uts4*)
9323 version_type=linux
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 ;;
9328
9329*)
9330 dynamic_linker=no
9331 ;;
9332esac
Reid Spencera773bd52006-08-04 18:18:08 +00009333{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335test "$dynamic_linker" = no && can_build_shared=no
9336
Reid Spencera773bd52006-08-04 18:18:08 +00009337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338if test "$GCC" = yes; then
9339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341
Reid Spencera773bd52006-08-04 18:18:08 +00009342
9343{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9344echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009345if test "${libltdl_cv_shlibext+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348
9349module=yes
9350eval libltdl_cv_shlibext=$shrext_cmds
9351
9352fi
Reid Spencera773bd52006-08-04 18:18:08 +00009353{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9354echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355if test -n "$libltdl_cv_shlibext"; then
9356
9357cat >>confdefs.h <<_ACEOF
9358#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9359_ACEOF
9360
9361fi
9362
9363
Reid Spencera773bd52006-08-04 18:18:08 +00009364{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9365echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366if test "${libltdl_cv_shlibpath_var+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369 libltdl_cv_shlibpath_var="$shlibpath_var"
9370fi
Reid Spencera773bd52006-08-04 18:18:08 +00009371{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9372echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373if test -n "$libltdl_cv_shlibpath_var"; then
9374
9375cat >>confdefs.h <<_ACEOF
9376#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9377_ACEOF
9378
9379fi
9380
9381
Reid Spencera773bd52006-08-04 18:18:08 +00009382{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9383echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009384if test "${libltdl_cv_sys_search_path+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9388fi
Reid Spencera773bd52006-08-04 18:18:08 +00009389{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9390echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391if test -n "$libltdl_cv_sys_search_path"; then
9392 sys_search_path=
9393 for dir in $libltdl_cv_sys_search_path; do
9394 if test -z "$sys_search_path"; then
9395 sys_search_path="$dir"
9396 else
9397 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398 fi
9399 done
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SYSSEARCHPATH "$sys_search_path"
9403_ACEOF
9404
9405fi
9406
Reid Spencera773bd52006-08-04 18:18:08 +00009407{ echo "$as_me:$LINENO: checking for objdir" >&5
9408echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409if test "${libltdl_cv_objdir+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412 libltdl_cv_objdir="$objdir"
9413 if test -n "$objdir"; then
9414 :
9415 else
9416 rm -f .libs 2>/dev/null
9417 mkdir .libs 2>/dev/null
9418 if test -d .libs; then
9419 libltdl_cv_objdir=.libs
9420 else
9421 # MS-DOS does not allow filenames that begin with a dot.
9422 libltdl_cv_objdir=_libs
9423 fi
9424 rmdir .libs 2>/dev/null
9425 fi
9426
9427fi
Reid Spencera773bd52006-08-04 18:18:08 +00009428{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9429echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430
9431cat >>confdefs.h <<_ACEOF
9432#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9433_ACEOF
9434
9435
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436
9437
9438
9439
9440# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009441{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9442echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446
9447# These are sane defaults that work on at least a few old systems.
9448# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9449
9450# Character class describing NM global symbol codes.
9451symcode='[BCDEGRST]'
9452
9453# Regexp to match symbols that can be accessed directly from C.
9454sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9455
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456# Transform an extracted symbol line into a proper C declaration
9457lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9458
9459# Transform an extracted symbol line into symbol name and symbol address
9460lt_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'"
9461
9462# Define system-specific variables.
9463case $host_os in
9464aix*)
9465 symcode='[BCDT]'
9466 ;;
9467cygwin* | mingw* | pw32*)
9468 symcode='[ABCDGISTW]'
9469 ;;
9470hpux*) # Its linker distinguishes data from code symbols
9471 if test "$host_cpu" = ia64; then
9472 symcode='[ABCDEGRST]'
9473 fi
9474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475 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'"
9476 ;;
9477linux*)
9478 if test "$host_cpu" = ia64; then
9479 symcode='[ABCDGIRSTW]'
9480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9481 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'"
9482 fi
9483 ;;
9484irix* | nonstopux*)
9485 symcode='[BCDEGRST]'
9486 ;;
9487osf*)
9488 symcode='[BCDEGQRST]'
9489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009490solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491 symcode='[BDRT]'
9492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009493sco3.2v5*)
9494 symcode='[DT]'
9495 ;;
9496sysv4.2uw2*)
9497 symcode='[DT]'
9498 ;;
9499sysv5* | sco5v6* | unixware* | OpenUNIX*)
9500 symcode='[ABDT]'
9501 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502sysv4)
9503 symcode='[DFNSTU]'
9504 ;;
9505esac
9506
9507# Handle CRLF in mingw tool chain
9508opt_cr=
9509case $build_os in
9510mingw*)
9511 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512 ;;
9513esac
9514
9515# If we're using GNU nm, then use its standard symbol codes.
9516case `$NM -V 2>&1` in
9517*GNU* | *'with BFD'*)
9518 symcode='[ABCDGIRSTW]' ;;
9519esac
9520
9521# Try without a prefix undercore, then with it.
9522for ac_symprfx in "" "_"; do
9523
Reid Spencera773bd52006-08-04 18:18:08 +00009524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9525 symxfrm="\\1 $ac_symprfx\\2 \\2"
9526
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009528 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 +00009529
9530 # Check to see that the pipe works correctly.
9531 pipe_works=no
9532
9533 rm -f conftest*
9534 cat > conftest.$ac_ext <<EOF
9535#ifdef __cplusplus
9536extern "C" {
9537#endif
9538char nm_test_var;
9539void nm_test_func(){}
9540#ifdef __cplusplus
9541}
9542#endif
9543int main(){nm_test_var='a';nm_test_func();return(0);}
9544EOF
9545
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; then
9551 # Now try to grab the symbols.
9552 nlist=conftest.nm
9553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && test -s "$nlist"; then
9558 # Try sorting and uniquifying the output.
9559 if sort "$nlist" | uniq > "$nlist"T; then
9560 mv -f "$nlist"T "$nlist"
9561 else
9562 rm -f "$nlist"T
9563 fi
9564
9565 # Make sure that we snagged all the symbols we need.
9566 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9567 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9568 cat <<EOF > conftest.$ac_ext
9569#ifdef __cplusplus
9570extern "C" {
9571#endif
9572
9573EOF
9574 # Now generate the symbol file.
9575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9576
9577 cat <<EOF >> conftest.$ac_ext
9578#if defined (__STDC__) && __STDC__
9579# define lt_ptr_t void *
9580#else
9581# define lt_ptr_t char *
9582# define const
9583#endif
9584
9585/* The mapping between symbol names and symbols. */
9586const struct {
9587 const char *name;
9588 lt_ptr_t address;
9589}
9590lt_preloaded_symbols[] =
9591{
9592EOF
9593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9594 cat <<\EOF >> conftest.$ac_ext
9595 {0, (lt_ptr_t) 0}
9596};
9597
9598#ifdef __cplusplus
9599}
9600#endif
9601EOF
9602 # Now try linking the two files.
9603 mv conftest.$ac_objext conftstm.$ac_objext
9604 lt_save_LIBS="$LIBS"
9605 lt_save_CFLAGS="$CFLAGS"
9606 LIBS="conftstm.$ac_objext"
9607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9613 pipe_works=yes
9614 fi
9615 LIBS="$lt_save_LIBS"
9616 CFLAGS="$lt_save_CFLAGS"
9617 else
9618 echo "cannot find nm_test_func in $nlist" >&5
9619 fi
9620 else
9621 echo "cannot find nm_test_var in $nlist" >&5
9622 fi
9623 else
9624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9625 fi
9626 else
9627 echo "$progname: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 fi
9630 rm -f conftest* conftst*
9631
9632 # Do not use the global_symbol_pipe unless it works.
9633 if test "$pipe_works" = yes; then
9634 break
9635 else
9636 lt_cv_sys_global_symbol_pipe=
9637 fi
9638done
9639
9640fi
9641
9642if test -z "$lt_cv_sys_global_symbol_pipe"; then
9643 lt_cv_sys_global_symbol_to_cdecl=
9644fi
9645if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009646 { echo "$as_me:$LINENO: result: failed" >&5
9647echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648else
Reid Spencera773bd52006-08-04 18:18:08 +00009649 { echo "$as_me:$LINENO: result: ok" >&5
9650echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009651fi
9652
9653
Reid Spencera773bd52006-08-04 18:18:08 +00009654{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9655echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658else
9659 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9660 libltdl_cv_preloaded_symbols=yes
9661 else
9662 libltdl_cv_preloaded_symbols=no
9663 fi
9664
9665fi
Reid Spencera773bd52006-08-04 18:18:08 +00009666{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9667echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9669
9670cat >>confdefs.h <<\_ACEOF
9671#define HAVE_PRELOADED_SYMBOLS 1
9672_ACEOF
9673
9674fi
9675
9676LIBADD_DL=
9677
9678ac_ext=c
9679ac_cpp='$CPP $CPPFLAGS'
9680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683
9684
Reid Spencera773bd52006-08-04 18:18:08 +00009685{ echo "$as_me:$LINENO: checking for shl_load" >&5
9686echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687if test "${ac_cv_func_shl_load+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689else
9690 cat >conftest.$ac_ext <<_ACEOF
9691/* confdefs.h. */
9692_ACEOF
9693cat confdefs.h >>conftest.$ac_ext
9694cat >>conftest.$ac_ext <<_ACEOF
9695/* end confdefs.h. */
9696/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9698#define shl_load innocuous_shl_load
9699
9700/* System header to define __stub macros and hopefully few prototypes,
9701 which can conflict with char shl_load (); below.
9702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703 <limits.h> exists even on freestanding compilers. */
9704
9705#ifdef __STDC__
9706# include <limits.h>
9707#else
9708# include <assert.h>
9709#endif
9710
9711#undef shl_load
9712
Reid Spencera773bd52006-08-04 18:18:08 +00009713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716#ifdef __cplusplus
9717extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009718#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719char shl_load ();
9720/* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009723#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725#endif
9726
9727int
9728main ()
9729{
Reid Spencera773bd52006-08-04 18:18:08 +00009730return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009731 ;
9732 return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009736if { (ac_try="$ac_link"
9737case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740esac
9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753esac
9754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763esac
9764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_func_shl_load=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
Reid Spencera773bd52006-08-04 18:18:08 +00009774 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775fi
Reid Spencera773bd52006-08-04 18:18:08 +00009776
9777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778 conftest$ac_exeext conftest.$ac_ext
9779fi
Reid Spencera773bd52006-08-04 18:18:08 +00009780{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9781echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009782if test $ac_cv_func_shl_load = yes; then
9783
9784cat >>confdefs.h <<\_ACEOF
9785#define HAVE_SHL_LOAD 1
9786_ACEOF
9787
9788else
Reid Spencera773bd52006-08-04 18:18:08 +00009789 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9790echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 ac_check_lib_save_LIBS=$LIBS
9795LIBS="-ldld $LIBS"
9796cat >conftest.$ac_ext <<_ACEOF
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
9802
Reid Spencera773bd52006-08-04 18:18:08 +00009803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806#ifdef __cplusplus
9807extern "C"
9808#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809char shl_load ();
9810int
9811main ()
9812{
Reid Spencera773bd52006-08-04 18:18:08 +00009813return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846esac
9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_dld_shl_load=yes
9853else
9854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
Reid Spencera773bd52006-08-04 18:18:08 +00009857 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858fi
Reid Spencera773bd52006-08-04 18:18:08 +00009859
9860rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 conftest$ac_exeext conftest.$ac_ext
9862LIBS=$ac_check_lib_save_LIBS
9863fi
Reid Spencera773bd52006-08-04 18:18:08 +00009864{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866if test $ac_cv_lib_dld_shl_load = yes; then
9867
9868cat >>confdefs.h <<\_ACEOF
9869#define HAVE_SHL_LOAD 1
9870_ACEOF
9871
9872 LIBADD_DL="$LIBADD_DL -ldld"
9873else
Reid Spencera773bd52006-08-04 18:18:08 +00009874 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879 ac_check_lib_save_LIBS=$LIBS
9880LIBS="-ldl $LIBS"
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
9887
Reid Spencera773bd52006-08-04 18:18:08 +00009888/* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891#ifdef __cplusplus
9892extern "C"
9893#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894char dlopen ();
9895int
9896main ()
9897{
Reid Spencera773bd52006-08-04 18:18:08 +00009898return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 ;
9900 return 0;
9901}
9902_ACEOF
9903rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009904if { (ac_try="$ac_link"
9905case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dl_dlopen=yes
9938else
9939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
Reid Spencera773bd52006-08-04 18:18:08 +00009942 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943fi
Reid Spencera773bd52006-08-04 18:18:08 +00009944
9945rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946 conftest$ac_exeext conftest.$ac_ext
9947LIBS=$ac_check_lib_save_LIBS
9948fi
Reid Spencera773bd52006-08-04 18:18:08 +00009949{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951if test $ac_cv_lib_dl_dlopen = yes; then
9952
9953cat >>confdefs.h <<\_ACEOF
9954#define HAVE_LIBDL 1
9955_ACEOF
9956
9957 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9958else
9959 cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h. */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h. */
9965#if HAVE_DLFCN_H
9966# include <dlfcn.h>
9967#endif
9968
9969int
9970main ()
9971{
9972dlopen(0, 0);
9973 ;
9974 return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011
10012cat >>confdefs.h <<\_ACEOF
10013#define HAVE_LIBDL 1
10014_ACEOF
10015 libltdl_cv_func_dlopen="yes"
10016else
10017 echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
Reid Spencera773bd52006-08-04 18:18:08 +000010020 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024else
10025 ac_check_lib_save_LIBS=$LIBS
10026LIBS="-lsvld $LIBS"
10027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033
Reid Spencera773bd52006-08-04 18:18:08 +000010034/* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037#ifdef __cplusplus
10038extern "C"
10039#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040char dlopen ();
10041int
10042main ()
10043{
Reid Spencera773bd52006-08-04 18:18:08 +000010044return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010045 ;
10046 return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010050if { (ac_try="$ac_link"
10051case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_svld_dlopen=yes
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
Reid Spencera773bd52006-08-04 18:18:08 +000010088 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089fi
Reid Spencera773bd52006-08-04 18:18:08 +000010090
10091rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092 conftest$ac_exeext conftest.$ac_ext
10093LIBS=$ac_check_lib_save_LIBS
10094fi
Reid Spencera773bd52006-08-04 18:18:08 +000010095{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097if test $ac_cv_lib_svld_dlopen = yes; then
10098
10099cat >>confdefs.h <<\_ACEOF
10100#define HAVE_LIBDL 1
10101_ACEOF
10102
10103 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10104else
Reid Spencera773bd52006-08-04 18:18:08 +000010105 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10106echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110 ac_check_lib_save_LIBS=$LIBS
10111LIBS="-ldld $LIBS"
10112cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h. */
10118
Reid Spencera773bd52006-08-04 18:18:08 +000010119/* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122#ifdef __cplusplus
10123extern "C"
10124#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125char dld_link ();
10126int
10127main ()
10128{
Reid Spencera773bd52006-08-04 18:18:08 +000010129return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130 ;
10131 return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010135if { (ac_try="$ac_link"
10136case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lib_dld_dld_link=yes
10169else
10170 echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
Reid Spencera773bd52006-08-04 18:18:08 +000010173 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174fi
Reid Spencera773bd52006-08-04 18:18:08 +000010175
10176rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177 conftest$ac_exeext conftest.$ac_ext
10178LIBS=$ac_check_lib_save_LIBS
10179fi
Reid Spencera773bd52006-08-04 18:18:08 +000010180{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182if test $ac_cv_lib_dld_dld_link = yes; then
10183
10184cat >>confdefs.h <<\_ACEOF
10185#define HAVE_DLD 1
10186_ACEOF
10187
10188 LIBADD_DL="$LIBADD_DL -ldld"
10189else
Reid Spencera773bd52006-08-04 18:18:08 +000010190 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10191echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195 cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
10201/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203#define _dyld_func_lookup innocuous__dyld_func_lookup
10204
10205/* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char _dyld_func_lookup (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10209
10210#ifdef __STDC__
10211# include <limits.h>
10212#else
10213# include <assert.h>
10214#endif
10215
10216#undef _dyld_func_lookup
10217
Reid Spencera773bd52006-08-04 18:18:08 +000010218/* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221#ifdef __cplusplus
10222extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224char _dyld_func_lookup ();
10225/* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010228#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230#endif
10231
10232int
10233main ()
10234{
Reid Spencera773bd52006-08-04 18:18:08 +000010235return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236 ;
10237 return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010241if { (ac_try="$ac_link"
10242case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_func__dyld_func_lookup=yes
10275else
10276 echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
Reid Spencera773bd52006-08-04 18:18:08 +000010279 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280fi
Reid Spencera773bd52006-08-04 18:18:08 +000010281
10282rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283 conftest$ac_exeext conftest.$ac_ext
10284fi
Reid Spencera773bd52006-08-04 18:18:08 +000010285{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10286echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287if test $ac_cv_func__dyld_func_lookup = yes; then
10288
10289cat >>confdefs.h <<\_ACEOF
10290#define HAVE_DYLD 1
10291_ACEOF
10292
10293fi
10294
10295
10296fi
10297
10298
10299fi
10300
10301
10302fi
Reid Spencera773bd52006-08-04 18:18:08 +000010303
10304rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305 conftest$ac_exeext conftest.$ac_ext
10306
10307fi
10308
10309
10310fi
10311
10312
10313fi
10314
10315
10316if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10317then
10318 lt_save_LIBS="$LIBS"
10319 LIBS="$LIBS $LIBADD_DL"
10320
10321for ac_func in dlerror
10322do
10323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010324{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10326if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h. */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
10334/* end confdefs.h. */
10335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10337#define $ac_func innocuous_$ac_func
10338
10339/* System header to define __stub macros and hopefully few prototypes,
10340 which can conflict with char $ac_func (); below.
10341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342 <limits.h> exists even on freestanding compilers. */
10343
10344#ifdef __STDC__
10345# include <limits.h>
10346#else
10347# include <assert.h>
10348#endif
10349
10350#undef $ac_func
10351
Reid Spencera773bd52006-08-04 18:18:08 +000010352/* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355#ifdef __cplusplus
10356extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358char $ac_func ();
10359/* The GNU C library defines this for functions which it implements
10360 to always fail with ENOSYS. Some functions are actually named
10361 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010362#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364#endif
10365
10366int
10367main ()
10368{
Reid Spencera773bd52006-08-04 18:18:08 +000010369return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370 ;
10371 return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010375if { (ac_try="$ac_link"
10376case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379esac
10380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392esac
10393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
Reid Spencera773bd52006-08-04 18:18:08 +000010413 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414fi
Reid Spencera773bd52006-08-04 18:18:08 +000010415
10416rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 conftest$ac_exeext conftest.$ac_ext
10418fi
Reid Spencera773bd52006-08-04 18:18:08 +000010419ac_res=`eval echo '${'$as_ac_var'}'`
10420 { echo "$as_me:$LINENO: result: $ac_res" >&5
10421echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425_ACEOF
10426
10427fi
10428done
10429
10430 LIBS="$lt_save_LIBS"
10431fi
10432ac_ext=c
10433ac_cpp='$CPP $CPPFLAGS'
10434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437
10438
10439
Reid Spencera773bd52006-08-04 18:18:08 +000010440{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10441echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 ac_cv_sys_symbol_underscore=no
10446 cat > conftest.$ac_ext <<EOF
10447void nm_test_func(){}
10448int main(){nm_test_func;return 0;}
10449EOF
10450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451 (eval $ac_compile) 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; then
10455 # Now try to grab the symbols.
10456 ac_nlist=conftest.nm
10457 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10458 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && test -s "$ac_nlist"; then
10462 # See whether the symbols have a leading underscore.
10463 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10464 ac_cv_sys_symbol_underscore=yes
10465 else
10466 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10467 :
10468 else
10469 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470 fi
10471 fi
10472 else
10473 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10474 fi
10475 else
10476 echo "configure: failed program was:" >&5
10477 cat conftest.c >&5
10478 fi
10479 rm -rf conftest*
10480
10481fi
Reid Spencera773bd52006-08-04 18:18:08 +000010482{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10483echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484
10485
10486if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10487 if test x"$libltdl_cv_func_dlopen" = xyes ||
10488 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010489 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10490echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491if test "${libltdl_cv_need_uscore+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493else
10494 libltdl_cv_need_uscore=unknown
10495 save_LIBS="$LIBS"
10496 LIBS="$LIBS $LIBADD_DL"
10497 if test "$cross_compiling" = yes; then :
10498 libltdl_cv_need_uscore=cross
10499else
10500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501 lt_status=$lt_dlunknown
10502 cat > conftest.$ac_ext <<EOF
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000010503#line 10503 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504#include "confdefs.h"
10505
10506#if HAVE_DLFCN_H
10507#include <dlfcn.h>
10508#endif
10509
10510#include <stdio.h>
10511
10512#ifdef RTLD_GLOBAL
10513# define LT_DLGLOBAL RTLD_GLOBAL
10514#else
10515# ifdef DL_GLOBAL
10516# define LT_DLGLOBAL DL_GLOBAL
10517# else
10518# define LT_DLGLOBAL 0
10519# endif
10520#endif
10521
10522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523 find out it does not work in some platform. */
10524#ifndef LT_DLLAZY_OR_NOW
10525# ifdef RTLD_LAZY
10526# define LT_DLLAZY_OR_NOW RTLD_LAZY
10527# else
10528# ifdef DL_LAZY
10529# define LT_DLLAZY_OR_NOW DL_LAZY
10530# else
10531# ifdef RTLD_NOW
10532# define LT_DLLAZY_OR_NOW RTLD_NOW
10533# else
10534# ifdef DL_NOW
10535# define LT_DLLAZY_OR_NOW DL_NOW
10536# else
10537# define LT_DLLAZY_OR_NOW 0
10538# endif
10539# endif
10540# endif
10541# endif
10542#endif
10543
10544#ifdef __cplusplus
10545extern "C" void exit (int);
10546#endif
10547
10548void fnord() { int i=42;}
10549int main ()
10550{
10551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552 int status = $lt_dlunknown;
10553
10554 if (self)
10555 {
10556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10557 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558 /* dlclose (self); */
10559 }
Reid Spencera773bd52006-08-04 18:18:08 +000010560 else
10561 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563 exit (status);
10564}
10565EOF
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010571 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572 lt_status=$?
10573 case x$lt_status in
10574 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10575 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010576 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 esac
10578 else :
10579 # compilation failed
10580
10581 fi
10582fi
10583rm -fr conftest*
10584
10585 LIBS="$save_LIBS"
10586
10587fi
Reid Spencera773bd52006-08-04 18:18:08 +000010588{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10589echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590 fi
10591fi
10592
10593if test x"$libltdl_cv_need_uscore" = xyes; then
10594
10595cat >>confdefs.h <<\_ACEOF
10596#define NEED_USCORE 1
10597_ACEOF
10598
10599fi
10600
10601
Reid Spencera773bd52006-08-04 18:18:08 +000010602{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10603echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010604if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607 # PORTME does your system automatically load deplibs for dlopen?
10608 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10609 # For now, we just catch OSes we know something about -- in the
10610 # future, we'll try test this programmatically.
10611 libltdl_cv_sys_dlopen_deplibs=unknown
10612 case "$host_os" in
10613 aix3*|aix4.1.*|aix4.2.*)
10614 # Unknown whether this is true for these versions of AIX, but
10615 # we want this `case' here to explicitly catch those versions.
10616 libltdl_cv_sys_dlopen_deplibs=unknown
10617 ;;
10618 aix[45]*)
10619 libltdl_cv_sys_dlopen_deplibs=yes
10620 ;;
10621 darwin*)
10622 # Assuming the user has installed a libdl from somewhere, this is true
10623 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10624 libltdl_cv_sys_dlopen_deplibs=yes
10625 ;;
10626 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10627 # GNU and its variants, using gnu ld.so (Glibc)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10629 ;;
10630 hpux10*|hpux11*)
10631 libltdl_cv_sys_dlopen_deplibs=yes
10632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010633 interix*)
10634 libltdl_cv_sys_dlopen_deplibs=yes
10635 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636 irix[12345]*|irix6.[01]*)
10637 # Catch all versions of IRIX before 6.2, and indicate that we don't
10638 # know how it worked for any of those versions.
10639 libltdl_cv_sys_dlopen_deplibs=unknown
10640 ;;
10641 irix*)
10642 # The case above catches anything before 6.2, and it's known that
10643 # at 6.2 and later dlopen does load deplibs.
10644 libltdl_cv_sys_dlopen_deplibs=yes
10645 ;;
10646 netbsd*)
10647 libltdl_cv_sys_dlopen_deplibs=yes
10648 ;;
10649 openbsd*)
10650 libltdl_cv_sys_dlopen_deplibs=yes
10651 ;;
10652 osf[1234]*)
10653 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10654 # it did *not* use an RPATH in a shared library to find objects the
10655 # library depends on, so we explictly say `no'.
10656 libltdl_cv_sys_dlopen_deplibs=no
10657 ;;
10658 osf5.0|osf5.0a|osf5.1)
10659 # dlopen *does* load deplibs and with the right loader patch applied
10660 # it even uses RPATH in a shared library to search for shared objects
10661 # that the library depends on, but there's no easy way to know if that
10662 # patch is installed. Since this is the case, all we can really
10663 # say is unknown -- it depends on the patch being installed. If
10664 # it is, this changes to `yes'. Without it, it would be `no'.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10666 ;;
10667 osf*)
10668 # the two cases above should catch all versions of osf <= 5.1. Read
10669 # the comments above for what we know about them.
10670 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10671 # is used to find them so we can finally say `yes'.
10672 libltdl_cv_sys_dlopen_deplibs=yes
10673 ;;
10674 solaris*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678 libltdl_cv_sys_dlopen_deplibs=yes
10679 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680 esac
10681
10682fi
Reid Spencera773bd52006-08-04 18:18:08 +000010683{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10684echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10686
10687cat >>confdefs.h <<\_ACEOF
10688#define LTDL_DLOPEN_DEPLIBS 1
10689_ACEOF
10690
10691fi
10692
10693
10694for ac_header in argz.h
10695do
10696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702fi
Reid Spencera773bd52006-08-04 18:18:08 +000010703ac_res=`eval echo '${'$as_ac_Header'}'`
10704 { echo "$as_me:$LINENO: result: $ac_res" >&5
10705echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706else
10707 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010708{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716$ac_includes_default
10717#include <$ac_header>
10718_ACEOF
10719rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010720if { (ac_try="$ac_compile"
10721case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_header_compiler=yes
10754else
10755 echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
Reid Spencera773bd52006-08-04 18:18:08 +000010758 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759fi
Reid Spencera773bd52006-08-04 18:18:08 +000010760
10761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764
10765# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010766{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768cat >conftest.$ac_ext <<_ACEOF
10769/* confdefs.h. */
10770_ACEOF
10771cat confdefs.h >>conftest.$ac_ext
10772cat >>conftest.$ac_ext <<_ACEOF
10773/* end confdefs.h. */
10774#include <$ac_header>
10775_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010776if { (ac_try="$ac_cpp conftest.$ac_ext"
10777case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } >/dev/null; then
10789 if test -s conftest.err; then
10790 ac_cpp_err=$ac_c_preproc_warn_flag
10791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10792 else
10793 ac_cpp_err=
10794 fi
10795else
10796 ac_cpp_err=yes
10797fi
10798if test -z "$ac_cpp_err"; then
10799 ac_header_preproc=yes
10800else
10801 echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 ac_header_preproc=no
10805fi
Reid Spencera773bd52006-08-04 18:18:08 +000010806
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010808{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810
10811# So? What about this header?
10812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 yes:no: )
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818 ac_header_preproc=yes
10819 ;;
10820 no:yes:* )
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010833 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834## ----------------------------------- ##
10835## Report this to llvmbugs@cs.uiuc.edu ##
10836## ----------------------------------- ##
10837_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010838 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839 ;;
10840esac
Reid Spencera773bd52006-08-04 18:18:08 +000010841{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 eval "$as_ac_Header=\$ac_header_preproc"
10847fi
Reid Spencera773bd52006-08-04 18:18:08 +000010848ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851
10852fi
10853if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856_ACEOF
10857
10858fi
10859
10860done
10861
10862
Reid Spencera773bd52006-08-04 18:18:08 +000010863{ echo "$as_me:$LINENO: checking for error_t" >&5
10864echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865if test "${ac_cv_type_error_t+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867else
10868 cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874#if HAVE_ARGZ_H
10875# include <argz.h>
10876#endif
10877
Reid Spencera773bd52006-08-04 18:18:08 +000010878typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879int
10880main ()
10881{
Reid Spencera773bd52006-08-04 18:18:08 +000010882if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010884if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885 return 0;
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010891if { (ac_try="$ac_compile"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918esac
10919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_type_error_t=yes
10925else
10926 echo "$as_me: failed program was:" >&5
10927sed 's/^/| /' conftest.$ac_ext >&5
10928
Reid Spencera773bd52006-08-04 18:18:08 +000010929 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930fi
Reid Spencera773bd52006-08-04 18:18:08 +000010931
10932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933fi
Reid Spencera773bd52006-08-04 18:18:08 +000010934{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10935echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936if test $ac_cv_type_error_t = yes; then
10937
10938cat >>confdefs.h <<_ACEOF
10939#define HAVE_ERROR_T 1
10940_ACEOF
10941
10942
10943else
10944
10945cat >>confdefs.h <<\_ACEOF
10946#define error_t int
10947_ACEOF
10948
10949fi
10950
10951
10952
10953
10954
10955
10956
10957for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10958do
10959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965 cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973#define $ac_func innocuous_$ac_func
10974
10975/* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980#ifdef __STDC__
10981# include <limits.h>
10982#else
10983# include <assert.h>
10984#endif
10985
10986#undef $ac_func
10987
Reid Spencera773bd52006-08-04 18:18:08 +000010988/* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991#ifdef __cplusplus
10992extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994char $ac_func ();
10995/* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010998#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000#endif
11001
11002int
11003main ()
11004{
Reid Spencera773bd52006-08-04 18:18:08 +000011005return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011011if { (ac_try="$ac_link"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11045else
11046 echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
Reid Spencera773bd52006-08-04 18:18:08 +000011049 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050fi
Reid Spencera773bd52006-08-04 18:18:08 +000011051
11052rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053 conftest$ac_exeext conftest.$ac_ext
11054fi
Reid Spencera773bd52006-08-04 18:18:08 +000011055ac_res=`eval echo '${'$as_ac_var'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061_ACEOF
11062
11063fi
11064done
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11094 stdio.h unistd.h
11095do
11096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102fi
Reid Spencera773bd52006-08-04 18:18:08 +000011103ac_res=`eval echo '${'$as_ac_Header'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011106else
11107 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011108{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */
11116$ac_includes_default
11117#include <$ac_header>
11118_ACEOF
11119rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011120if { (ac_try="$ac_compile"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137esac
11138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_header_compiler=yes
11154else
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
Reid Spencera773bd52006-08-04 18:18:08 +000011158 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159fi
Reid Spencera773bd52006-08-04 18:18:08 +000011160
11161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164
11165# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011166{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011168cat >conftest.$ac_ext <<_ACEOF
11169/* confdefs.h. */
11170_ACEOF
11171cat confdefs.h >>conftest.$ac_ext
11172cat >>conftest.$ac_ext <<_ACEOF
11173/* end confdefs.h. */
11174#include <$ac_header>
11175_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011176if { (ac_try="$ac_cpp conftest.$ac_ext"
11177case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
11181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null; then
11189 if test -s conftest.err; then
11190 ac_cpp_err=$ac_c_preproc_warn_flag
11191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192 else
11193 ac_cpp_err=
11194 fi
11195else
11196 ac_cpp_err=yes
11197fi
11198if test -z "$ac_cpp_err"; then
11199 ac_header_preproc=yes
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 ac_header_preproc=no
11205fi
Reid Spencera773bd52006-08-04 18:18:08 +000011206
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210
11211# So? What about this header?
11212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 yes:no: )
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11218 ac_header_preproc=yes
11219 ;;
11220 no:yes:* )
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011233 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234## ----------------------------------- ##
11235## Report this to llvmbugs@cs.uiuc.edu ##
11236## ----------------------------------- ##
11237_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011238 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239 ;;
11240esac
Reid Spencera773bd52006-08-04 18:18:08 +000011241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245else
11246 eval "$as_ac_Header=\$ac_header_preproc"
11247fi
Reid Spencera773bd52006-08-04 18:18:08 +000011248ac_res=`eval echo '${'$as_ac_Header'}'`
11249 { echo "$as_me:$LINENO: result: $ac_res" >&5
11250echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251
11252fi
11253if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254 cat >>confdefs.h <<_ACEOF
11255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11256_ACEOF
11257
11258fi
11259
11260done
11261
11262
11263
11264
11265
11266for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11267do
11268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274fi
Reid Spencera773bd52006-08-04 18:18:08 +000011275ac_res=`eval echo '${'$as_ac_Header'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278else
11279 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011280{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288$ac_includes_default
11289#include <$ac_header>
11290_ACEOF
11291rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011292if { (ac_try="$ac_compile"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
Reid Spencera773bd52006-08-04 18:18:08 +000011330 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331fi
Reid Spencera773bd52006-08-04 18:18:08 +000011332
11333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336
11337# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346#include <$ac_header>
11347_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011348if { (ac_try="$ac_cpp conftest.$ac_ext"
11349case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } >/dev/null; then
11361 if test -s conftest.err; then
11362 ac_cpp_err=$ac_c_preproc_warn_flag
11363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364 else
11365 ac_cpp_err=
11366 fi
11367else
11368 ac_cpp_err=yes
11369fi
11370if test -z "$ac_cpp_err"; then
11371 ac_header_preproc=yes
11372else
11373 echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_header_preproc=no
11377fi
Reid Spencera773bd52006-08-04 18:18:08 +000011378
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011380{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382
11383# So? What about this header?
11384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11391 ;;
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011405 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406## ----------------------------------- ##
11407## Report this to llvmbugs@cs.uiuc.edu ##
11408## ----------------------------------- ##
11409_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011410 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 ;;
11412esac
Reid Spencera773bd52006-08-04 18:18:08 +000011413{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417else
11418 eval "$as_ac_Header=\$ac_header_preproc"
11419fi
Reid Spencera773bd52006-08-04 18:18:08 +000011420ac_res=`eval echo '${'$as_ac_Header'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423
11424fi
11425if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428_ACEOF
11429
11430fi
11431
11432done
11433
11434
11435
11436for ac_header in string.h strings.h
11437do
11438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444fi
Reid Spencera773bd52006-08-04 18:18:08 +000011445ac_res=`eval echo '${'$as_ac_Header'}'`
11446 { echo "$as_me:$LINENO: result: $ac_res" >&5
11447echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448else
11449 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452cat >conftest.$ac_ext <<_ACEOF
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
11458$ac_includes_default
11459#include <$ac_header>
11460_ACEOF
11461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011462if { (ac_try="$ac_compile"
11463case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466esac
11467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479esac
11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489esac
11490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_header_compiler=yes
11496else
11497 echo "$as_me: failed program was:" >&5
11498sed 's/^/| /' conftest.$ac_ext >&5
11499
Reid Spencera773bd52006-08-04 18:18:08 +000011500 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501fi
Reid Spencera773bd52006-08-04 18:18:08 +000011502
11503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011506
11507# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516#include <$ac_header>
11517_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011518if { (ac_try="$ac_cpp conftest.$ac_ext"
11519case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev/null; then
11531 if test -s conftest.err; then
11532 ac_cpp_err=$ac_c_preproc_warn_flag
11533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11534 else
11535 ac_cpp_err=
11536 fi
11537else
11538 ac_cpp_err=yes
11539fi
11540if test -z "$ac_cpp_err"; then
11541 ac_header_preproc=yes
11542else
11543 echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546 ac_header_preproc=no
11547fi
Reid Spencera773bd52006-08-04 18:18:08 +000011548
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011549rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11551echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552
11553# So? What about this header?
11554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555 yes:no: )
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11560 ac_header_preproc=yes
11561 ;;
11562 no:yes:* )
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011575 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576## ----------------------------------- ##
11577## Report this to llvmbugs@cs.uiuc.edu ##
11578## ----------------------------------- ##
11579_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011580 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581 ;;
11582esac
Reid Spencera773bd52006-08-04 18:18:08 +000011583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 eval "$as_ac_Header=\$ac_header_preproc"
11589fi
Reid Spencera773bd52006-08-04 18:18:08 +000011590ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593
11594fi
11595if test `eval echo '${'$as_ac_Header'}'` = yes; then
11596 cat >>confdefs.h <<_ACEOF
11597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11598_ACEOF
11599 break
11600fi
11601
11602done
11603
11604
11605
11606
11607for ac_func in strchr index
11608do
11609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615 cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623#define $ac_func innocuous_$ac_func
11624
11625/* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11629
11630#ifdef __STDC__
11631# include <limits.h>
11632#else
11633# include <assert.h>
11634#endif
11635
11636#undef $ac_func
11637
Reid Spencera773bd52006-08-04 18:18:08 +000011638/* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641#ifdef __cplusplus
11642extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644char $ac_func ();
11645/* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011648#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011649choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650#endif
11651
11652int
11653main ()
11654{
Reid Spencera773bd52006-08-04 18:18:08 +000011655return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011656 ;
11657 return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011661if { (ac_try="$ac_link"
11662case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 eval "$as_ac_var=yes"
11695else
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
Reid Spencera773bd52006-08-04 18:18:08 +000011699 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700fi
Reid Spencera773bd52006-08-04 18:18:08 +000011701
11702rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703 conftest$ac_exeext conftest.$ac_ext
11704fi
Reid Spencera773bd52006-08-04 18:18:08 +000011705ac_res=`eval echo '${'$as_ac_var'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708if test `eval echo '${'$as_ac_var'}'` = yes; then
11709 cat >>confdefs.h <<_ACEOF
11710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711_ACEOF
11712 break
11713fi
11714done
11715
11716
11717
11718for ac_func in strrchr rindex
11719do
11720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011721{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726 cat >conftest.$ac_ext <<_ACEOF
11727/* confdefs.h. */
11728_ACEOF
11729cat confdefs.h >>conftest.$ac_ext
11730cat >>conftest.$ac_ext <<_ACEOF
11731/* end confdefs.h. */
11732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11734#define $ac_func innocuous_$ac_func
11735
11736/* System header to define __stub macros and hopefully few prototypes,
11737 which can conflict with char $ac_func (); below.
11738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <limits.h> exists even on freestanding compilers. */
11740
11741#ifdef __STDC__
11742# include <limits.h>
11743#else
11744# include <assert.h>
11745#endif
11746
11747#undef $ac_func
11748
Reid Spencera773bd52006-08-04 18:18:08 +000011749/* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752#ifdef __cplusplus
11753extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755char $ac_func ();
11756/* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011759#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011760choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011761#endif
11762
11763int
11764main ()
11765{
Reid Spencera773bd52006-08-04 18:18:08 +000011766return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011772if { (ac_try="$ac_link"
11773case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799esac
11800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 eval "$as_ac_var=yes"
11806else
11807 echo "$as_me: failed program was:" >&5
11808sed 's/^/| /' conftest.$ac_ext >&5
11809
Reid Spencera773bd52006-08-04 18:18:08 +000011810 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811fi
Reid Spencera773bd52006-08-04 18:18:08 +000011812
11813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814 conftest$ac_exeext conftest.$ac_ext
11815fi
Reid Spencera773bd52006-08-04 18:18:08 +000011816ac_res=`eval echo '${'$as_ac_var'}'`
11817 { echo "$as_me:$LINENO: result: $ac_res" >&5
11818echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819if test `eval echo '${'$as_ac_var'}'` = yes; then
11820 cat >>confdefs.h <<_ACEOF
11821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11822_ACEOF
11823 break
11824fi
11825done
11826
11827
11828
11829for ac_func in memcpy bcopy
11830do
11831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011832{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836else
11837 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11845#define $ac_func innocuous_$ac_func
11846
11847/* System header to define __stub macros and hopefully few prototypes,
11848 which can conflict with char $ac_func (); below.
11849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 <limits.h> exists even on freestanding compilers. */
11851
11852#ifdef __STDC__
11853# include <limits.h>
11854#else
11855# include <assert.h>
11856#endif
11857
11858#undef $ac_func
11859
Reid Spencera773bd52006-08-04 18:18:08 +000011860/* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863#ifdef __cplusplus
11864extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011866char $ac_func ();
11867/* The GNU C library defines this for functions which it implements
11868 to always fail with ENOSYS. Some functions are actually named
11869 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011870#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872#endif
11873
11874int
11875main ()
11876{
Reid Spencera773bd52006-08-04 18:18:08 +000011877return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011878 ;
11879 return 0;
11880}
11881_ACEOF
11882rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011883if { (ac_try="$ac_link"
11884case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11897 { (case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011907 { (case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910esac
11911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 eval "$as_ac_var=yes"
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
Reid Spencera773bd52006-08-04 18:18:08 +000011921 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922fi
Reid Spencera773bd52006-08-04 18:18:08 +000011923
11924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925 conftest$ac_exeext conftest.$ac_ext
11926fi
Reid Spencera773bd52006-08-04 18:18:08 +000011927ac_res=`eval echo '${'$as_ac_var'}'`
11928 { echo "$as_me:$LINENO: result: $ac_res" >&5
11929echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930if test `eval echo '${'$as_ac_var'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933_ACEOF
11934 break
11935fi
11936done
11937
11938
11939
11940for ac_func in memmove strcmp
11941do
11942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
11948 cat >conftest.$ac_ext <<_ACEOF
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
11954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11956#define $ac_func innocuous_$ac_func
11957
11958/* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11962
11963#ifdef __STDC__
11964# include <limits.h>
11965#else
11966# include <assert.h>
11967#endif
11968
11969#undef $ac_func
11970
Reid Spencera773bd52006-08-04 18:18:08 +000011971/* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974#ifdef __cplusplus
11975extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977char $ac_func ();
11978/* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011981#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983#endif
11984
11985int
11986main ()
11987{
Reid Spencera773bd52006-08-04 18:18:08 +000011988return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011994if { (ac_try="$ac_link"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021esac
12022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 eval "$as_ac_var=yes"
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
Reid Spencera773bd52006-08-04 18:18:08 +000012032 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012033fi
Reid Spencera773bd52006-08-04 18:18:08 +000012034
12035rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036 conftest$ac_exeext conftest.$ac_ext
12037fi
Reid Spencera773bd52006-08-04 18:18:08 +000012038ac_res=`eval echo '${'$as_ac_var'}'`
12039 { echo "$as_me:$LINENO: result: $ac_res" >&5
12040echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041if test `eval echo '${'$as_ac_var'}'` = yes; then
12042 cat >>confdefs.h <<_ACEOF
12043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12044_ACEOF
12045
12046fi
12047done
12048
12049
12050
12051
12052for ac_func in closedir opendir readdir
12053do
12054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 cat >conftest.$ac_ext <<_ACEOF
12061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12068#define $ac_func innocuous_$ac_func
12069
12070/* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char $ac_func (); below.
12072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073 <limits.h> exists even on freestanding compilers. */
12074
12075#ifdef __STDC__
12076# include <limits.h>
12077#else
12078# include <assert.h>
12079#endif
12080
12081#undef $ac_func
12082
Reid Spencera773bd52006-08-04 18:18:08 +000012083/* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086#ifdef __cplusplus
12087extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012088#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089char $ac_func ();
12090/* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012093#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012095#endif
12096
12097int
12098main ()
12099{
Reid Spencera773bd52006-08-04 18:18:08 +000012100return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101 ;
12102 return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012106if { (ac_try="$ac_link"
12107case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110esac
12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123esac
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 eval "$as_ac_var=yes"
12140else
12141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
Reid Spencera773bd52006-08-04 18:18:08 +000012144 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145fi
Reid Spencera773bd52006-08-04 18:18:08 +000012146
12147rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148 conftest$ac_exeext conftest.$ac_ext
12149fi
Reid Spencera773bd52006-08-04 18:18:08 +000012150ac_res=`eval echo '${'$as_ac_var'}'`
12151 { echo "$as_me:$LINENO: result: $ac_res" >&5
12152echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153if test `eval echo '${'$as_ac_var'}'` = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156_ACEOF
12157
12158fi
12159done
12160
12161
Reid Spencera773bd52006-08-04 18:18:08 +000012162# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012164 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165 case $enableval in
12166 yes) enable_shared=yes ;;
12167 no) enable_shared=no ;;
12168 *)
12169 enable_shared=no
12170 # Look at the argument we got. We use all the common list separators.
12171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12172 for pkg in $enableval; do
12173 IFS="$lt_save_ifs"
12174 if test "X$pkg" = "X$p"; then
12175 enable_shared=yes
12176 fi
12177 done
12178 IFS="$lt_save_ifs"
12179 ;;
12180 esac
12181else
12182 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012183fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012184
Reid Spencera773bd52006-08-04 18:18:08 +000012185
12186# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012187if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012188 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189 case $enableval in
12190 yes) enable_static=yes ;;
12191 no) enable_static=no ;;
12192 *)
12193 enable_static=no
12194 # Look at the argument we got. We use all the common list separators.
12195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12196 for pkg in $enableval; do
12197 IFS="$lt_save_ifs"
12198 if test "X$pkg" = "X$p"; then
12199 enable_static=yes
12200 fi
12201 done
12202 IFS="$lt_save_ifs"
12203 ;;
12204 esac
12205else
12206 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012207fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208
Reid Spencera773bd52006-08-04 18:18:08 +000012209
12210# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012212 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213 case $enableval in
12214 yes) enable_fast_install=yes ;;
12215 no) enable_fast_install=no ;;
12216 *)
12217 enable_fast_install=no
12218 # Look at the argument we got. We use all the common list separators.
12219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12220 for pkg in $enableval; do
12221 IFS="$lt_save_ifs"
12222 if test "X$pkg" = "X$p"; then
12223 enable_fast_install=yes
12224 fi
12225 done
12226 IFS="$lt_save_ifs"
12227 ;;
12228 esac
12229else
12230 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012231fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232
Reid Spencera773bd52006-08-04 18:18:08 +000012233
12234{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12235echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012236if test "${lt_cv_path_SED+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 # Loop through the user's path and test for sed and gsed.
12240# Then use that list of sed's as ones to test for truncation.
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
12246 for lt_ac_prog in sed gsed; do
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12250 fi
12251 done
12252 done
12253done
12254lt_ac_max=0
12255lt_ac_count=0
12256# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12257# along with /bin/sed that truncates output.
12258for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012259 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260 cat /dev/null > conftest.in
12261 lt_ac_count=0
12262 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12263 # Check for GNU sed and select it if it is found.
12264 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12265 lt_cv_path_SED=$lt_ac_sed
12266 break
12267 fi
12268 while true; do
12269 cat conftest.in conftest.in >conftest.tmp
12270 mv conftest.tmp conftest.in
12271 cp conftest.in conftest.nl
12272 echo >>conftest.nl
12273 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12274 cmp -s conftest.out conftest.nl || break
12275 # 10000 chars as input seems more than enough
12276 test $lt_ac_count -gt 10 && break
12277 lt_ac_count=`expr $lt_ac_count + 1`
12278 if test $lt_ac_count -gt $lt_ac_max; then
12279 lt_ac_max=$lt_ac_count
12280 lt_cv_path_SED=$lt_ac_sed
12281 fi
12282 done
12283done
12284
12285fi
12286
12287SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012288{ echo "$as_me:$LINENO: result: $SED" >&5
12289echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012290
12291
Reid Spencera773bd52006-08-04 18:18:08 +000012292# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012293if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295else
12296 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012297fi
12298
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012299ac_prog=ld
12300if test "$GCC" = yes; then
12301 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012302 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12303echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 case $host in
12305 *-*-mingw*)
12306 # gcc leaves a trailing carriage return which upsets mingw
12307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12308 *)
12309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12310 esac
12311 case $ac_prog in
12312 # Accept absolute paths.
12313 [\\/]* | ?:[\\/]*)
12314 re_direlt='/[^/][^/]*/\.\./'
12315 # Canonicalize the pathname of ld
12316 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12318 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12319 done
12320 test -z "$LD" && LD="$ac_prog"
12321 ;;
12322 "")
12323 # If it fails, then pretend we aren't using GCC.
12324 ac_prog=ld
12325 ;;
12326 *)
12327 # If it is relative, then search for the first ld in PATH.
12328 with_gnu_ld=unknown
12329 ;;
12330 esac
12331elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012332 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12333echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012334else
Reid Spencera773bd52006-08-04 18:18:08 +000012335 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12336echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337fi
12338if test "${lt_cv_path_LD+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341 if test -z "$LD"; then
12342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12343 for ac_dir in $PATH; do
12344 IFS="$lt_save_ifs"
12345 test -z "$ac_dir" && ac_dir=.
12346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12347 lt_cv_path_LD="$ac_dir/$ac_prog"
12348 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012349 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350 # Break only if it was the GNU/non-GNU ld that we prefer.
12351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12352 *GNU* | *'with BFD'*)
12353 test "$with_gnu_ld" != no && break
12354 ;;
12355 *)
12356 test "$with_gnu_ld" != yes && break
12357 ;;
12358 esac
12359 fi
12360 done
12361 IFS="$lt_save_ifs"
12362else
12363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12364fi
12365fi
12366
12367LD="$lt_cv_path_LD"
12368if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012369 { echo "$as_me:$LINENO: result: $LD" >&5
12370echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371else
Reid Spencera773bd52006-08-04 18:18:08 +000012372 { echo "$as_me:$LINENO: result: no" >&5
12373echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374fi
12375test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12376echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12377 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012378{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12379echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012380if test "${lt_cv_prog_gnu_ld+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382else
Reid Spencera773bd52006-08-04 18:18:08 +000012383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384case `$LD -v 2>&1 </dev/null` in
12385*GNU* | *'with BFD'*)
12386 lt_cv_prog_gnu_ld=yes
12387 ;;
12388*)
12389 lt_cv_prog_gnu_ld=no
12390 ;;
12391esac
12392fi
Reid Spencera773bd52006-08-04 18:18:08 +000012393{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12394echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012395with_gnu_ld=$lt_cv_prog_gnu_ld
12396
12397
Reid Spencera773bd52006-08-04 18:18:08 +000012398{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12399echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012400if test "${lt_cv_ld_reload_flag+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 lt_cv_ld_reload_flag='-r'
12404fi
Reid Spencera773bd52006-08-04 18:18:08 +000012405{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12406echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012407reload_flag=$lt_cv_ld_reload_flag
12408case $reload_flag in
12409"" | " "*) ;;
12410*) reload_flag=" $reload_flag" ;;
12411esac
12412reload_cmds='$LD$reload_flag -o $output$reload_objs'
12413case $host_os in
12414 darwin*)
12415 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012416 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012417 else
12418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12419 fi
12420 ;;
12421esac
12422
Reid Spencera773bd52006-08-04 18:18:08 +000012423{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12424echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425if test "${lt_cv_deplibs_check_method+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427else
12428 lt_cv_file_magic_cmd='$MAGIC_CMD'
12429lt_cv_file_magic_test_file=
12430lt_cv_deplibs_check_method='unknown'
12431# Need to set the preceding variable on all platforms that support
12432# interlibrary dependencies.
12433# 'none' -- dependencies not supported.
12434# `unknown' -- same as none, but documents that we really don't know.
12435# 'pass_all' -- all dependencies passed with no checks.
12436# 'test_compile' -- check by making test program.
12437# 'file_magic [[regex]]' -- check by looking for files in library path
12438# which responds to the $file_magic_cmd with a given extended regex.
12439# If you have `file' or equivalent on your system and you're not sure
12440# whether `pass_all' will *always* work, you probably want this one.
12441
12442case $host_os in
12443aix4* | aix5*)
12444 lt_cv_deplibs_check_method=pass_all
12445 ;;
12446
12447beos*)
12448 lt_cv_deplibs_check_method=pass_all
12449 ;;
12450
12451bsdi[45]*)
12452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12453 lt_cv_file_magic_cmd='/usr/bin/file -L'
12454 lt_cv_file_magic_test_file=/shlib/libc.so
12455 ;;
12456
12457cygwin*)
12458 # func_win32_libid is a shell function defined in ltmain.sh
12459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12460 lt_cv_file_magic_cmd='func_win32_libid'
12461 ;;
12462
12463mingw* | pw32*)
12464 # Base MSYS/MinGW do not provide the 'file' command needed by
12465 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12466 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12467 lt_cv_file_magic_cmd='$OBJDUMP -f'
12468 ;;
12469
12470darwin* | rhapsody*)
12471 lt_cv_deplibs_check_method=pass_all
12472 ;;
12473
Reid Spencera773bd52006-08-04 18:18:08 +000012474freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12476 case $host_cpu in
12477 i*86 )
12478 # Not sure whether the presence of OpenBSD here was a mistake.
12479 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012480 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 +000012481 lt_cv_file_magic_cmd=/usr/bin/file
12482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12483 ;;
12484 esac
12485 else
12486 lt_cv_deplibs_check_method=pass_all
12487 fi
12488 ;;
12489
12490gnu*)
12491 lt_cv_deplibs_check_method=pass_all
12492 ;;
12493
12494hpux10.20* | hpux11*)
12495 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012496 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497 ia64*)
12498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12499 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12500 ;;
12501 hppa*64*)
12502 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]'
12503 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12504 ;;
12505 *)
12506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12507 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12508 ;;
12509 esac
12510 ;;
12511
Reid Spencera773bd52006-08-04 18:18:08 +000012512interix3*)
12513 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12515 ;;
12516
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517irix5* | irix6* | nonstopux*)
12518 case $LD in
12519 *-32|*"-32 ") libmagic=32-bit;;
12520 *-n32|*"-n32 ") libmagic=N32;;
12521 *-64|*"-64 ") libmagic=64-bit;;
12522 *) libmagic=never-match;;
12523 esac
12524 lt_cv_deplibs_check_method=pass_all
12525 ;;
12526
12527# This must be Linux ELF.
12528linux*)
12529 lt_cv_deplibs_check_method=pass_all
12530 ;;
12531
12532netbsd*)
12533 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12535 else
12536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12537 fi
12538 ;;
12539
12540newos6*)
12541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12542 lt_cv_file_magic_cmd=/usr/bin/file
12543 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12544 ;;
12545
12546nto-qnx*)
12547 lt_cv_deplibs_check_method=unknown
12548 ;;
12549
12550openbsd*)
12551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12553 else
12554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12555 fi
12556 ;;
12557
12558osf3* | osf4* | osf5*)
12559 lt_cv_deplibs_check_method=pass_all
12560 ;;
12561
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012562solaris*)
12563 lt_cv_deplibs_check_method=pass_all
12564 ;;
12565
Reid Spencera773bd52006-08-04 18:18:08 +000012566sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567 case $host_vendor in
12568 motorola)
12569 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]'
12570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12571 ;;
12572 ncr)
12573 lt_cv_deplibs_check_method=pass_all
12574 ;;
12575 sequent)
12576 lt_cv_file_magic_cmd='/bin/file'
12577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12578 ;;
12579 sni)
12580 lt_cv_file_magic_cmd='/bin/file'
12581 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12582 lt_cv_file_magic_test_file=/lib/libc.so
12583 ;;
12584 siemens)
12585 lt_cv_deplibs_check_method=pass_all
12586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012587 pc)
12588 lt_cv_deplibs_check_method=pass_all
12589 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012590 esac
12591 ;;
12592
Reid Spencera773bd52006-08-04 18:18:08 +000012593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 lt_cv_deplibs_check_method=pass_all
12595 ;;
12596esac
12597
12598fi
Reid Spencera773bd52006-08-04 18:18:08 +000012599{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12600echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012601file_magic_cmd=$lt_cv_file_magic_cmd
12602deplibs_check_method=$lt_cv_deplibs_check_method
12603test -z "$deplibs_check_method" && deplibs_check_method=unknown
12604
12605
12606
12607# If no C compiler was specified, use CC.
12608LTCC=${LTCC-"$CC"}
12609
Reid Spencera773bd52006-08-04 18:18:08 +000012610# If no C compiler flags were specified, use CFLAGS.
12611LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12612
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012613# Allow CC to be a program name with arguments.
12614compiler=$CC
12615
Reid Spencera773bd52006-08-04 18:18:08 +000012616# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012617if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012618 enableval=$enable_libtool_lock;
12619fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012620
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12622
12623# Some flags need to be propagated to the compiler or linker for good
12624# libtool support.
12625case $host in
12626ia64-*-hpux*)
12627 # Find out which ABI we are using.
12628 echo 'int i;' > conftest.$ac_ext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; then
12634 case `/usr/bin/file conftest.$ac_objext` in
12635 *ELF-32*)
12636 HPUX_IA64_MODE="32"
12637 ;;
12638 *ELF-64*)
12639 HPUX_IA64_MODE="64"
12640 ;;
12641 esac
12642 fi
12643 rm -rf conftest*
12644 ;;
12645*-*-irix6*)
12646 # Find out which ABI we are using.
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000012647 echo '#line 12647 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; then
12653 if test "$lt_cv_prog_gnu_ld" = yes; then
12654 case `/usr/bin/file conftest.$ac_objext` in
12655 *32-bit*)
12656 LD="${LD-ld} -melf32bsmip"
12657 ;;
12658 *N32*)
12659 LD="${LD-ld} -melf32bmipn32"
12660 ;;
12661 *64-bit*)
12662 LD="${LD-ld} -melf64bmip"
12663 ;;
12664 esac
12665 else
12666 case `/usr/bin/file conftest.$ac_objext` in
12667 *32-bit*)
12668 LD="${LD-ld} -32"
12669 ;;
12670 *N32*)
12671 LD="${LD-ld} -n32"
12672 ;;
12673 *64-bit*)
12674 LD="${LD-ld} -64"
12675 ;;
12676 esac
12677 fi
12678 fi
12679 rm -rf conftest*
12680 ;;
12681
12682x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12683 # Find out which ABI we are using.
12684 echo 'int i;' > conftest.$ac_ext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012690 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012691 *32-bit*)
12692 case $host in
12693 x86_64-*linux*)
12694 LD="${LD-ld} -m elf_i386"
12695 ;;
12696 ppc64-*linux*|powerpc64-*linux*)
12697 LD="${LD-ld} -m elf32ppclinux"
12698 ;;
12699 s390x-*linux*)
12700 LD="${LD-ld} -m elf_s390"
12701 ;;
12702 sparc64-*linux*)
12703 LD="${LD-ld} -m elf32_sparc"
12704 ;;
12705 esac
12706 ;;
12707 *64-bit*)
12708 case $host in
12709 x86_64-*linux*)
12710 LD="${LD-ld} -m elf_x86_64"
12711 ;;
12712 ppc*-*linux*|powerpc*-*linux*)
12713 LD="${LD-ld} -m elf64ppc"
12714 ;;
12715 s390*-*linux*)
12716 LD="${LD-ld} -m elf64_s390"
12717 ;;
12718 sparc*-*linux*)
12719 LD="${LD-ld} -m elf64_sparc"
12720 ;;
12721 esac
12722 ;;
12723 esac
12724 fi
12725 rm -rf conftest*
12726 ;;
12727
12728*-*-sco3.2v5*)
12729 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12730 SAVE_CFLAGS="$CFLAGS"
12731 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012732 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12733echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012734if test "${lt_cv_cc_needs_belf+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736else
12737 ac_ext=c
12738ac_cpp='$CPP $CPPFLAGS'
12739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742
12743 cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */
12749
Reid Spencera773bd52006-08-04 18:18:08 +000012750int
12751main ()
12752{
12753
12754 ;
12755 return 0;
12756}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757_ACEOF
12758rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012759if { (ac_try="$ac_link"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 lt_cv_cc_needs_belf=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
Reid Spencera773bd52006-08-04 18:18:08 +000012797 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012798fi
Reid Spencera773bd52006-08-04 18:18:08 +000012799
12800rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012801 conftest$ac_exeext conftest.$ac_ext
12802 ac_ext=c
12803ac_cpp='$CPP $CPPFLAGS'
12804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806ac_compiler_gnu=$ac_cv_c_compiler_gnu
12807
12808fi
Reid Spencera773bd52006-08-04 18:18:08 +000012809{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12810echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012811 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12813 CFLAGS="$SAVE_CFLAGS"
12814 fi
12815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012816sparc*-*solaris*)
12817 # Find out which ABI we are using.
12818 echo 'int i;' > conftest.$ac_ext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; then
12824 case `/usr/bin/file conftest.o` in
12825 *64-bit*)
12826 case $lt_cv_prog_gnu_ld in
12827 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12828 *) LD="${LD-ld} -64" ;;
12829 esac
12830 ;;
12831 esac
12832 fi
12833 rm -rf conftest*
12834 ;;
12835
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012836
12837esac
12838
12839need_locks="$enable_libtool_lock"
12840
12841
Reid Spencer2706f8c2004-09-19 23:53:36 +000012842
12843
12844if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12845 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12846 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012847 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012848ac_cpp='$CXXCPP $CPPFLAGS'
12849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012852{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12853echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012854if test -z "$CXXCPP"; then
12855 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012856 echo $ECHO_N "(cached) $ECHO_C" >&6
12857else
John Criswell47fdd832003-07-14 16:52:07 +000012858 # Double quotes because CXXCPP needs to be expanded
12859 for CXXCPP in "$CXX -E" "/lib/cpp"
12860 do
12861 ac_preproc_ok=false
12862for ac_cxx_preproc_warn_flag in '' yes
12863do
12864 # Use a header file that comes with gcc, so configuring glibc
12865 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012868 # On the NeXT, cc -E runs the code through the compiler's parser,
12869 # not just through cpp. "Syntax error" is here to catch this case.
12870 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012871/* confdefs.h. */
12872_ACEOF
12873cat confdefs.h >>conftest.$ac_ext
12874cat >>conftest.$ac_ext <<_ACEOF
12875/* end confdefs.h. */
12876#ifdef __STDC__
12877# include <limits.h>
12878#else
12879# include <assert.h>
12880#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012881 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012882_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012883if { (ac_try="$ac_cpp conftest.$ac_ext"
12884case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012890 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012891 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } >/dev/null; then
12896 if test -s conftest.err; then
12897 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012899 else
John Criswell47fdd832003-07-14 16:52:07 +000012900 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012901 fi
John Criswell47fdd832003-07-14 16:52:07 +000012902else
12903 ac_cpp_err=yes
12904fi
12905if test -z "$ac_cpp_err"; then
12906 :
12907else
12908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012909sed 's/^/| /' conftest.$ac_ext >&5
12910
John Criswell47fdd832003-07-14 16:52:07 +000012911 # Broken: fails on valid input.
12912continue
12913fi
Reid Spencera773bd52006-08-04 18:18:08 +000012914
John Criswell47fdd832003-07-14 16:52:07 +000012915rm -f conftest.err conftest.$ac_ext
12916
Reid Spencera773bd52006-08-04 18:18:08 +000012917 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012918 # can be detected and how.
12919 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
12924/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012925#include <ac_nonexistent.h>
12926_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012927if { (ac_try="$ac_cpp conftest.$ac_ext"
12928case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931esac
12932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012934 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012935 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } >/dev/null; then
12940 if test -s conftest.err; then
12941 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012943 else
12944 ac_cpp_err=
12945 fi
12946else
12947 ac_cpp_err=yes
12948fi
12949if test -z "$ac_cpp_err"; then
12950 # Broken: success on invalid input.
12951continue
12952else
12953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012954sed 's/^/| /' conftest.$ac_ext >&5
12955
John Criswell47fdd832003-07-14 16:52:07 +000012956 # Passes both tests.
12957ac_preproc_ok=:
12958break
12959fi
Reid Spencera773bd52006-08-04 18:18:08 +000012960
John Criswell47fdd832003-07-14 16:52:07 +000012961rm -f conftest.err conftest.$ac_ext
12962
12963done
12964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12965rm -f conftest.err conftest.$ac_ext
12966if $ac_preproc_ok; then
12967 break
John Criswell7a73b802003-06-30 21:59:07 +000012968fi
12969
John Criswell47fdd832003-07-14 16:52:07 +000012970 done
12971 ac_cv_prog_CXXCPP=$CXXCPP
12972
12973fi
12974 CXXCPP=$ac_cv_prog_CXXCPP
12975else
12976 ac_cv_prog_CXXCPP=$CXXCPP
12977fi
Reid Spencera773bd52006-08-04 18:18:08 +000012978{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12979echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012980ac_preproc_ok=false
12981for ac_cxx_preproc_warn_flag in '' yes
12982do
12983 # Use a header file that comes with gcc, so configuring glibc
12984 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12986 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012987 # On the NeXT, cc -E runs the code through the compiler's parser,
12988 # not just through cpp. "Syntax error" is here to catch this case.
12989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995#ifdef __STDC__
12996# include <limits.h>
12997#else
12998# include <assert.h>
12999#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013000 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013001_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013002if { (ac_try="$ac_cpp conftest.$ac_ext"
13003case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013009 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013010 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } >/dev/null; then
13015 if test -s conftest.err; then
13016 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013018 else
13019 ac_cpp_err=
13020 fi
13021else
13022 ac_cpp_err=yes
13023fi
13024if test -z "$ac_cpp_err"; then
13025 :
13026else
13027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013028sed 's/^/| /' conftest.$ac_ext >&5
13029
John Criswell47fdd832003-07-14 16:52:07 +000013030 # Broken: fails on valid input.
13031continue
13032fi
Reid Spencera773bd52006-08-04 18:18:08 +000013033
John Criswell47fdd832003-07-14 16:52:07 +000013034rm -f conftest.err conftest.$ac_ext
13035
Reid Spencera773bd52006-08-04 18:18:08 +000013036 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013037 # can be detected and how.
13038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013044#include <ac_nonexistent.h>
13045_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013046if { (ac_try="$ac_cpp conftest.$ac_ext"
13047case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013053 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013054 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null; then
13059 if test -s conftest.err; then
13060 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013062 else
13063 ac_cpp_err=
13064 fi
13065else
13066 ac_cpp_err=yes
13067fi
13068if test -z "$ac_cpp_err"; then
13069 # Broken: success on invalid input.
13070continue
13071else
13072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013073sed 's/^/| /' conftest.$ac_ext >&5
13074
John Criswell47fdd832003-07-14 16:52:07 +000013075 # Passes both tests.
13076ac_preproc_ok=:
13077break
13078fi
Reid Spencera773bd52006-08-04 18:18:08 +000013079
John Criswell47fdd832003-07-14 16:52:07 +000013080rm -f conftest.err conftest.$ac_ext
13081
13082done
13083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13084rm -f conftest.err conftest.$ac_ext
13085if $ac_preproc_ok; then
13086 :
13087else
John Criswell0c38eaf2003-09-10 15:17:25 +000013088 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13089See \`config.log' for more details." >&5
13090echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13091See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013092 { (exit 1); exit 1; }; }
13093fi
13094
Reid Spencera773bd52006-08-04 18:18:08 +000013095ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013096ac_cpp='$CXXCPP $CPPFLAGS'
13097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13100
Reid Spencer2706f8c2004-09-19 23:53:36 +000013101fi
13102
John Criswell47fdd832003-07-14 16:52:07 +000013103
13104ac_ext=f
13105ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13106ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13107ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13108if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013109 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 +000013110 do
13111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013115if test "${ac_cv_prog_F77+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117else
13118 if test -n "$F77"; then
13119 ac_cv_prog_F77="$F77" # Let the user override the test.
13120else
13121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $PATH
13123do
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013127 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 +000013128 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13130 break 2
13131 fi
13132done
13133done
Reid Spencera773bd52006-08-04 18:18:08 +000013134IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013135
13136fi
13137fi
13138F77=$ac_cv_prog_F77
13139if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013140 { echo "$as_me:$LINENO: result: $F77" >&5
13141echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013142else
Reid Spencera773bd52006-08-04 18:18:08 +000013143 { echo "$as_me:$LINENO: result: no" >&5
13144echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013145fi
13146
Reid Spencera773bd52006-08-04 18:18:08 +000013147
John Criswell47fdd832003-07-14 16:52:07 +000013148 test -n "$F77" && break
13149 done
13150fi
13151if test -z "$F77"; then
13152 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013153 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 +000013154do
13155 # Extract the first word of "$ac_prog", so it can be a program name with args.
13156set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013159if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162 if test -n "$ac_ct_F77"; then
13163 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013171 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 +000013172 ac_cv_prog_ac_ct_F77="$ac_prog"
13173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177done
Reid Spencera773bd52006-08-04 18:18:08 +000013178IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013179
13180fi
13181fi
13182ac_ct_F77=$ac_cv_prog_ac_ct_F77
13183if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013184 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13185echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013186else
Reid Spencera773bd52006-08-04 18:18:08 +000013187 { echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013189fi
13190
Reid Spencera773bd52006-08-04 18:18:08 +000013191
John Criswell47fdd832003-07-14 16:52:07 +000013192 test -n "$ac_ct_F77" && break
13193done
13194
Reid Spencera773bd52006-08-04 18:18:08 +000013195 if test "x$ac_ct_F77" = x; then
13196 F77=""
13197 else
13198 case $cross_compiling:$ac_tool_warned in
13199yes:)
13200{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13201whose name does not start with the host triplet. If you think this
13202configuration is useful to you, please write to autoconf@gnu.org." >&5
13203echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13204whose name does not start with the host triplet. If you think this
13205configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13206ac_tool_warned=yes ;;
13207esac
13208 F77=$ac_ct_F77
13209 fi
John Criswell47fdd832003-07-14 16:52:07 +000013210fi
13211
13212
13213# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013214echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013215ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013216{ (ac_try="$ac_compiler --version >&5"
13217case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220esac
13221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013226{ (ac_try="$ac_compiler -v >&5"
13227case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013236{ (ac_try="$ac_compiler -V >&5"
13237case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240esac
13241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013246rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013247
13248# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013249# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013250ac_save_ext=$ac_ext
13251ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013252{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13253echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013254if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
13257 cat >conftest.$ac_ext <<_ACEOF
13258 program main
13259#ifndef __GNUC__
13260 choke me
13261#endif
13262
13263 end
13264_ACEOF
13265rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013266if { (ac_try="$ac_compile"
13267case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013279 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_compiler_gnu=yes
13300else
13301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013302sed 's/^/| /' conftest.$ac_ext >&5
13303
Reid Spencera773bd52006-08-04 18:18:08 +000013304 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013305fi
Reid Spencera773bd52006-08-04 18:18:08 +000013306
13307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013308ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13309
13310fi
Reid Spencera773bd52006-08-04 18:18:08 +000013311{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13312echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013313ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013314ac_test_FFLAGS=${FFLAGS+set}
13315ac_save_FFLAGS=$FFLAGS
13316FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013317{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13318echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013319if test "${ac_cv_prog_f77_g+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
13322 FFLAGS=-g
13323cat >conftest.$ac_ext <<_ACEOF
13324 program main
13325
13326 end
13327_ACEOF
13328rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013329if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013336 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013342 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356esac
13357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_prog_f77_g=yes
13363else
13364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013365sed 's/^/| /' conftest.$ac_ext >&5
13366
Reid Spencera773bd52006-08-04 18:18:08 +000013367 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013368fi
Reid Spencera773bd52006-08-04 18:18:08 +000013369
13370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013371
13372fi
Reid Spencera773bd52006-08-04 18:18:08 +000013373{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13374echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013375if test "$ac_test_FFLAGS" = set; then
13376 FFLAGS=$ac_save_FFLAGS
13377elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013378 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013379 FFLAGS="-g -O2"
13380 else
13381 FFLAGS="-g"
13382 fi
13383else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013385 FFLAGS="-O2"
13386 else
13387 FFLAGS=
13388 fi
13389fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013390
13391G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013392ac_ext=c
13393ac_cpp='$CPP $CPPFLAGS'
13394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13396ac_compiler_gnu=$ac_cv_c_compiler_gnu
13397
13398
13399
13400# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13401
13402# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013403{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13404echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013405if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407else
13408 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013409 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013410
13411 case $build_os in
13412 msdosdjgpp*)
13413 # On DJGPP, this test can blow up pretty badly due to problems in libc
13414 # (any single argument exceeding 2000 bytes causes a buffer overrun
13415 # during glob expansion). Even if it were fixed, the result of this
13416 # check would be larger than it should be.
13417 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13418 ;;
13419
13420 gnu*)
13421 # Under GNU Hurd, this test is not required because there is
13422 # no limit to the length of command line arguments.
13423 # Libtool will interpret -1 as no limit whatsoever
13424 lt_cv_sys_max_cmd_len=-1;
13425 ;;
13426
13427 cygwin* | mingw*)
13428 # On Win9x/ME, this test blows up -- it succeeds, but takes
13429 # about 5 minutes as the teststring grows exponentially.
13430 # Worse, since 9x/ME are not pre-emptively multitasking,
13431 # you end up with a "frozen" computer, even though with patience
13432 # the test eventually succeeds (with a max line length of 256k).
13433 # Instead, let's just punt: use the minimum linelength reported by
13434 # all of the supported platforms: 8192 (on NT/2K/XP).
13435 lt_cv_sys_max_cmd_len=8192;
13436 ;;
13437
Reid Spencer2706f8c2004-09-19 23:53:36 +000013438 amigaos*)
13439 # On AmigaOS with pdksh, this test takes hours, literally.
13440 # So we just punt and use a minimum line length of 8192.
13441 lt_cv_sys_max_cmd_len=8192;
13442 ;;
13443
Reid Spencera773bd52006-08-04 18:18:08 +000013444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013445 # This has been around since 386BSD, at least. Likely further.
13446 if test -x /sbin/sysctl; then
13447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13448 elif test -x /usr/sbin/sysctl; then
13449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13450 else
Reid Spencera773bd52006-08-04 18:18:08 +000013451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013452 fi
13453 # And add a safety zone
13454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013456 ;;
13457
Reid Spencera773bd52006-08-04 18:18:08 +000013458 interix*)
13459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13460 lt_cv_sys_max_cmd_len=196608
13461 ;;
13462
13463 osf*)
13464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13466 # nice to cause kernel panics so lets avoid the loop below.
13467 # First set a reasonable default.
13468 lt_cv_sys_max_cmd_len=16384
13469 #
13470 if test -x /sbin/sysconfig; then
13471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13472 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13473 esac
13474 fi
13475 ;;
13476 sco3.2v5*)
13477 lt_cv_sys_max_cmd_len=102400
13478 ;;
13479 sysv5* | sco5v6* | sysv4.2uw2*)
13480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13481 if test -n "$kargmax"; then
13482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13483 else
13484 lt_cv_sys_max_cmd_len=32768
13485 fi
13486 ;;
13487 *)
John Criswell47fdd832003-07-14 16:52:07 +000013488 # If test is not a shell built-in, we'll probably end up computing a
13489 # maximum length that is only half of the actual maximum length, but
13490 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013491 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13492 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13493 = "XX$teststring") >/dev/null 2>&1 &&
13494 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013495 lt_cv_sys_max_cmd_len=$new_result &&
13496 test $i != 17 # 1/2 MB should be enough
13497 do
13498 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013499 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013500 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013501 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013502 # Add a significant safety factor because C++ compilers can tack on massive
13503 # amounts of additional arguments before passing them to the linker.
13504 # It appears as though 1/2 is a usable value.
13505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13506 ;;
13507 esac
13508
13509fi
13510
13511if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013512 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13513echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013514else
Reid Spencera773bd52006-08-04 18:18:08 +000013515 { echo "$as_me:$LINENO: result: none" >&5
13516echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013517fi
13518
13519
13520
13521
13522# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013523{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13524echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013525if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527else
13528
13529# These are sane defaults that work on at least a few old systems.
13530# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13531
13532# Character class describing NM global symbol codes.
13533symcode='[BCDEGRST]'
13534
13535# Regexp to match symbols that can be accessed directly from C.
13536sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13537
John Criswell47fdd832003-07-14 16:52:07 +000013538# Transform an extracted symbol line into a proper C declaration
13539lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13540
13541# Transform an extracted symbol line into symbol name and symbol address
13542lt_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'"
13543
13544# Define system-specific variables.
13545case $host_os in
13546aix*)
13547 symcode='[BCDT]'
13548 ;;
13549cygwin* | mingw* | pw32*)
13550 symcode='[ABCDGISTW]'
13551 ;;
13552hpux*) # Its linker distinguishes data from code symbols
13553 if test "$host_cpu" = ia64; then
13554 symcode='[ABCDEGRST]'
13555 fi
13556 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13557 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'"
13558 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013559linux*)
13560 if test "$host_cpu" = ia64; then
13561 symcode='[ABCDGIRSTW]'
13562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13563 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'"
13564 fi
13565 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013566irix* | nonstopux*)
13567 symcode='[BCDEGRST]'
13568 ;;
13569osf*)
13570 symcode='[BCDEGQRST]'
13571 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013572solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013573 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013574 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013575sco3.2v5*)
13576 symcode='[DT]'
13577 ;;
13578sysv4.2uw2*)
13579 symcode='[DT]'
13580 ;;
13581sysv5* | sco5v6* | unixware* | OpenUNIX*)
13582 symcode='[ABDT]'
13583 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013584sysv4)
13585 symcode='[DFNSTU]'
13586 ;;
13587esac
13588
13589# Handle CRLF in mingw tool chain
13590opt_cr=
13591case $build_os in
13592mingw*)
13593 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13594 ;;
13595esac
13596
13597# If we're using GNU nm, then use its standard symbol codes.
13598case `$NM -V 2>&1` in
13599*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013600 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013601esac
13602
13603# Try without a prefix undercore, then with it.
13604for ac_symprfx in "" "_"; do
13605
Reid Spencera773bd52006-08-04 18:18:08 +000013606 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13607 symxfrm="\\1 $ac_symprfx\\2 \\2"
13608
John Criswell47fdd832003-07-14 16:52:07 +000013609 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013610 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 +000013611
13612 # Check to see that the pipe works correctly.
13613 pipe_works=no
13614
13615 rm -f conftest*
13616 cat > conftest.$ac_ext <<EOF
13617#ifdef __cplusplus
13618extern "C" {
13619#endif
13620char nm_test_var;
13621void nm_test_func(){}
13622#ifdef __cplusplus
13623}
13624#endif
13625int main(){nm_test_var='a';nm_test_func();return(0);}
13626EOF
13627
13628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; then
13633 # Now try to grab the symbols.
13634 nlist=conftest.nm
13635 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && test -s "$nlist"; then
13640 # Try sorting and uniquifying the output.
13641 if sort "$nlist" | uniq > "$nlist"T; then
13642 mv -f "$nlist"T "$nlist"
13643 else
13644 rm -f "$nlist"T
13645 fi
13646
13647 # Make sure that we snagged all the symbols we need.
13648 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13649 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13650 cat <<EOF > conftest.$ac_ext
13651#ifdef __cplusplus
13652extern "C" {
13653#endif
13654
13655EOF
13656 # Now generate the symbol file.
13657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13658
13659 cat <<EOF >> conftest.$ac_ext
13660#if defined (__STDC__) && __STDC__
13661# define lt_ptr_t void *
13662#else
13663# define lt_ptr_t char *
13664# define const
13665#endif
13666
13667/* The mapping between symbol names and symbols. */
13668const struct {
13669 const char *name;
13670 lt_ptr_t address;
13671}
13672lt_preloaded_symbols[] =
13673{
13674EOF
13675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13676 cat <<\EOF >> conftest.$ac_ext
13677 {0, (lt_ptr_t) 0}
13678};
13679
13680#ifdef __cplusplus
13681}
13682#endif
13683EOF
13684 # Now try linking the two files.
13685 mv conftest.$ac_objext conftstm.$ac_objext
13686 lt_save_LIBS="$LIBS"
13687 lt_save_CFLAGS="$CFLAGS"
13688 LIBS="conftstm.$ac_objext"
13689 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13695 pipe_works=yes
13696 fi
13697 LIBS="$lt_save_LIBS"
13698 CFLAGS="$lt_save_CFLAGS"
13699 else
13700 echo "cannot find nm_test_func in $nlist" >&5
13701 fi
13702 else
13703 echo "cannot find nm_test_var in $nlist" >&5
13704 fi
13705 else
13706 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13707 fi
13708 else
13709 echo "$progname: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 fi
13712 rm -f conftest* conftst*
13713
13714 # Do not use the global_symbol_pipe unless it works.
13715 if test "$pipe_works" = yes; then
13716 break
13717 else
13718 lt_cv_sys_global_symbol_pipe=
13719 fi
13720done
13721
13722fi
13723
13724if test -z "$lt_cv_sys_global_symbol_pipe"; then
13725 lt_cv_sys_global_symbol_to_cdecl=
13726fi
13727if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013728 { echo "$as_me:$LINENO: result: failed" >&5
13729echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013730else
Reid Spencera773bd52006-08-04 18:18:08 +000013731 { echo "$as_me:$LINENO: result: ok" >&5
13732echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013733fi
13734
Reid Spencera773bd52006-08-04 18:18:08 +000013735{ echo "$as_me:$LINENO: checking for objdir" >&5
13736echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013737if test "${lt_cv_objdir+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740 rm -f .libs 2>/dev/null
13741mkdir .libs 2>/dev/null
13742if test -d .libs; then
13743 lt_cv_objdir=.libs
13744else
13745 # MS-DOS does not allow filenames that begin with a dot.
13746 lt_cv_objdir=_libs
13747fi
13748rmdir .libs 2>/dev/null
13749fi
Reid Spencera773bd52006-08-04 18:18:08 +000013750{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13751echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013752objdir=$lt_cv_objdir
13753
13754
13755
13756
13757
13758case $host_os in
13759aix3*)
13760 # AIX sometimes has problems with the GCC collect2 program. For some
13761 # reason, if we set the COLLECT_NAMES environment variable, the problems
13762 # vanish in a puff of smoke.
13763 if test "X${COLLECT_NAMES+set}" != Xset; then
13764 COLLECT_NAMES=
13765 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013766 fi
13767 ;;
13768esac
13769
John Criswell47fdd832003-07-14 16:52:07 +000013770# Sed substitution that helps us do robust quoting. It backslashifies
13771# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013772Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013773sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13774
13775# Same as above, but do not quote variable references.
13776double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13777
13778# Sed substitution to delay expansion of an escaped shell variable in a
13779# double_quote_subst'ed string.
13780delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13781
13782# Sed substitution to avoid accidental globbing in evaled expressions
13783no_glob_subst='s/\*/\\\*/g'
13784
13785# Constants:
13786rm="rm -f"
13787
13788# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013789default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013790can_build_shared=yes
13791
Reid Spencera773bd52006-08-04 18:18:08 +000013792# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013793# which needs '.lib').
13794libext=a
13795ltmain="$ac_aux_dir/ltmain.sh"
13796ofile="$default_ofile"
13797with_gnu_ld="$lt_cv_prog_gnu_ld"
13798
13799if test -n "$ac_tool_prefix"; then
13800 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13801set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013804if test "${ac_cv_prog_AR+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 if test -n "$AR"; then
13808 ac_cv_prog_AR="$AR" # Let the user override the test.
13809else
13810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811for as_dir in $PATH
13812do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013816 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 +000013817 ac_cv_prog_AR="${ac_tool_prefix}ar"
13818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 break 2
13820 fi
13821done
13822done
Reid Spencera773bd52006-08-04 18:18:08 +000013823IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013824
13825fi
13826fi
13827AR=$ac_cv_prog_AR
13828if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013829 { echo "$as_me:$LINENO: result: $AR" >&5
13830echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013831else
Reid Spencera773bd52006-08-04 18:18:08 +000013832 { echo "$as_me:$LINENO: result: no" >&5
13833echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013834fi
13835
Reid Spencera773bd52006-08-04 18:18:08 +000013836
John Criswell47fdd832003-07-14 16:52:07 +000013837fi
13838if test -z "$ac_cv_prog_AR"; then
13839 ac_ct_AR=$AR
13840 # Extract the first word of "ar", so it can be a program name with args.
13841set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013844if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847 if test -n "$ac_ct_AR"; then
13848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13849else
13850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851for as_dir in $PATH
13852do
13853 IFS=$as_save_IFS
13854 test -z "$as_dir" && as_dir=.
13855 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013856 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 +000013857 ac_cv_prog_ac_ct_AR="ar"
13858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13859 break 2
13860 fi
13861done
13862done
Reid Spencera773bd52006-08-04 18:18:08 +000013863IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013864
John Criswell47fdd832003-07-14 16:52:07 +000013865fi
13866fi
13867ac_ct_AR=$ac_cv_prog_ac_ct_AR
13868if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013869 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13870echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013871else
Reid Spencera773bd52006-08-04 18:18:08 +000013872 { echo "$as_me:$LINENO: result: no" >&5
13873echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013874fi
13875
Reid Spencera773bd52006-08-04 18:18:08 +000013876 if test "x$ac_ct_AR" = x; then
13877 AR="false"
13878 else
13879 case $cross_compiling:$ac_tool_warned in
13880yes:)
13881{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13882whose name does not start with the host triplet. If you think this
13883configuration is useful to you, please write to autoconf@gnu.org." >&5
13884echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13885whose name does not start with the host triplet. If you think this
13886configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13887ac_tool_warned=yes ;;
13888esac
13889 AR=$ac_ct_AR
13890 fi
John Criswell47fdd832003-07-14 16:52:07 +000013891else
13892 AR="$ac_cv_prog_AR"
13893fi
13894
John Criswell7a73b802003-06-30 21:59:07 +000013895if test -n "$ac_tool_prefix"; then
13896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013900if test "${ac_cv_prog_RANLIB+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 if test -n "$RANLIB"; then
13904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13905else
13906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907for as_dir in $PATH
13908do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013912 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 +000013913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917done
13918done
Reid Spencera773bd52006-08-04 18:18:08 +000013919IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013920
13921fi
13922fi
13923RANLIB=$ac_cv_prog_RANLIB
13924if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013925 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13926echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013927else
Reid Spencera773bd52006-08-04 18:18:08 +000013928 { echo "$as_me:$LINENO: result: no" >&5
13929echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013930fi
13931
Reid Spencera773bd52006-08-04 18:18:08 +000013932
John Criswell7a73b802003-06-30 21:59:07 +000013933fi
13934if test -z "$ac_cv_prog_RANLIB"; then
13935 ac_ct_RANLIB=$RANLIB
13936 # Extract the first word of "ranlib", so it can be a program name with args.
13937set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013940if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942else
13943 if test -n "$ac_ct_RANLIB"; then
13944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13945else
13946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947for as_dir in $PATH
13948do
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013952 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 +000013953 ac_cv_prog_ac_ct_RANLIB="ranlib"
13954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13956 fi
13957done
13958done
Reid Spencera773bd52006-08-04 18:18:08 +000013959IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013960
John Criswell7a73b802003-06-30 21:59:07 +000013961fi
13962fi
13963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13964if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013965 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13966echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013967else
Reid Spencera773bd52006-08-04 18:18:08 +000013968 { echo "$as_me:$LINENO: result: no" >&5
13969echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013970fi
13971
Reid Spencera773bd52006-08-04 18:18:08 +000013972 if test "x$ac_ct_RANLIB" = x; then
13973 RANLIB=":"
13974 else
13975 case $cross_compiling:$ac_tool_warned in
13976yes:)
13977{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13978whose name does not start with the host triplet. If you think this
13979configuration is useful to you, please write to autoconf@gnu.org." >&5
13980echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13981whose name does not start with the host triplet. If you think this
13982configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13983ac_tool_warned=yes ;;
13984esac
13985 RANLIB=$ac_ct_RANLIB
13986 fi
John Criswell7a73b802003-06-30 21:59:07 +000013987else
13988 RANLIB="$ac_cv_prog_RANLIB"
13989fi
13990
13991if test -n "$ac_tool_prefix"; then
13992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13993set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013996if test "${ac_cv_prog_STRIP+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998else
13999 if test -n "$STRIP"; then
14000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14001else
14002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003for as_dir in $PATH
14004do
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014008 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 +000014009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14012 fi
14013done
14014done
Reid Spencera773bd52006-08-04 18:18:08 +000014015IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014016
14017fi
14018fi
14019STRIP=$ac_cv_prog_STRIP
14020if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014021 { echo "$as_me:$LINENO: result: $STRIP" >&5
14022echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014023else
Reid Spencera773bd52006-08-04 18:18:08 +000014024 { echo "$as_me:$LINENO: result: no" >&5
14025echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014026fi
14027
Reid Spencera773bd52006-08-04 18:18:08 +000014028
John Criswell7a73b802003-06-30 21:59:07 +000014029fi
14030if test -z "$ac_cv_prog_STRIP"; then
14031 ac_ct_STRIP=$STRIP
14032 # Extract the first word of "strip", so it can be a program name with args.
14033set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038else
14039 if test -n "$ac_ct_STRIP"; then
14040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14041else
14042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043for as_dir in $PATH
14044do
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014048 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 +000014049 ac_cv_prog_ac_ct_STRIP="strip"
14050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 break 2
14052 fi
14053done
14054done
Reid Spencera773bd52006-08-04 18:18:08 +000014055IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014056
John Criswell7a73b802003-06-30 21:59:07 +000014057fi
14058fi
14059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14060if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014061 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14062echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014063else
Reid Spencera773bd52006-08-04 18:18:08 +000014064 { echo "$as_me:$LINENO: result: no" >&5
14065echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014066fi
14067
Reid Spencera773bd52006-08-04 18:18:08 +000014068 if test "x$ac_ct_STRIP" = x; then
14069 STRIP=":"
14070 else
14071 case $cross_compiling:$ac_tool_warned in
14072yes:)
14073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14074whose name does not start with the host triplet. If you think this
14075configuration is useful to you, please write to autoconf@gnu.org." >&5
14076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14077whose name does not start with the host triplet. If you think this
14078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14079ac_tool_warned=yes ;;
14080esac
14081 STRIP=$ac_ct_STRIP
14082 fi
John Criswell7a73b802003-06-30 21:59:07 +000014083else
14084 STRIP="$ac_cv_prog_STRIP"
14085fi
14086
14087
John Criswell7a73b802003-06-30 21:59:07 +000014088old_CC="$CC"
14089old_CFLAGS="$CFLAGS"
14090
14091# Set sane defaults for various variables
14092test -z "$AR" && AR=ar
14093test -z "$AR_FLAGS" && AR_FLAGS=cru
14094test -z "$AS" && AS=as
14095test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014096test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014097test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014098test -z "$DLLTOOL" && DLLTOOL=dlltool
14099test -z "$LD" && LD=ld
14100test -z "$LN_S" && LN_S="ln -s"
14101test -z "$MAGIC_CMD" && MAGIC_CMD=file
14102test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014103test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014104test -z "$OBJDUMP" && OBJDUMP=objdump
14105test -z "$RANLIB" && RANLIB=:
14106test -z "$STRIP" && STRIP=:
14107test -z "$ac_objext" && ac_objext=o
14108
John Criswell7a73b802003-06-30 21:59:07 +000014109# Determine commands to create old-style static archives.
14110old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14111old_postinstall_cmds='chmod 644 $oldlib'
14112old_postuninstall_cmds=
14113
14114if test -n "$RANLIB"; then
14115 case $host_os in
14116 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014118 ;;
14119 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014121 ;;
14122 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014124fi
14125
Reid Spencera773bd52006-08-04 18:18:08 +000014126for cc_temp in $compiler""; do
14127 case $cc_temp in
14128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14130 \-*) ;;
14131 *) break;;
14132 esac
14133done
14134cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14135
Reid Spencer2706f8c2004-09-19 23:53:36 +000014136
John Criswell47fdd832003-07-14 16:52:07 +000014137# Only perform the check for file, if the check method requires it
14138case $deplibs_check_method in
14139file_magic*)
14140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014141 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14142echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014143if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014145else
John Criswell47fdd832003-07-14 16:52:07 +000014146 case $MAGIC_CMD in
14147[\\/*] | ?:[\\/]*)
14148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14149 ;;
14150*)
14151 lt_save_MAGIC_CMD="$MAGIC_CMD"
14152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14154 for ac_dir in $ac_dummy; do
14155 IFS="$lt_save_ifs"
14156 test -z "$ac_dir" && ac_dir=.
14157 if test -f $ac_dir/${ac_tool_prefix}file; then
14158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14159 if test -n "$file_magic_test_file"; then
14160 case $deplibs_check_method in
14161 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14165 $EGREP "$file_magic_regex" > /dev/null; then
14166 :
14167 else
14168 cat <<EOF 1>&2
14169
14170*** Warning: the command libtool uses to detect shared libraries,
14171*** $file_magic_cmd, produces output that libtool cannot recognize.
14172*** The result is that libtool may fail to recognize shared libraries
14173*** as such. This will affect the creation of libtool libraries that
14174*** depend on shared libraries, but programs linked with such libtool
14175*** libraries will work regardless of this problem. Nevertheless, you
14176*** may want to report the problem to your system manager and/or to
14177*** bug-libtool@gnu.org
14178
14179EOF
14180 fi ;;
14181 esac
14182 fi
14183 break
14184 fi
14185 done
14186 IFS="$lt_save_ifs"
14187 MAGIC_CMD="$lt_save_MAGIC_CMD"
14188 ;;
14189esac
John Criswell7a73b802003-06-30 21:59:07 +000014190fi
John Criswell7a73b802003-06-30 21:59:07 +000014191
John Criswell47fdd832003-07-14 16:52:07 +000014192MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14193if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014194 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14195echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014196else
Reid Spencera773bd52006-08-04 18:18:08 +000014197 { echo "$as_me:$LINENO: result: no" >&5
14198echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014199fi
John Criswell7a73b802003-06-30 21:59:07 +000014200
John Criswell47fdd832003-07-14 16:52:07 +000014201if test -z "$lt_cv_path_MAGIC_CMD"; then
14202 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014203 { echo "$as_me:$LINENO: checking for file" >&5
14204echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014205if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207else
14208 case $MAGIC_CMD in
14209[\\/*] | ?:[\\/]*)
14210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14211 ;;
14212*)
14213 lt_save_MAGIC_CMD="$MAGIC_CMD"
14214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14216 for ac_dir in $ac_dummy; do
14217 IFS="$lt_save_ifs"
14218 test -z "$ac_dir" && ac_dir=.
14219 if test -f $ac_dir/file; then
14220 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14221 if test -n "$file_magic_test_file"; then
14222 case $deplibs_check_method in
14223 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14227 $EGREP "$file_magic_regex" > /dev/null; then
14228 :
14229 else
14230 cat <<EOF 1>&2
14231
14232*** Warning: the command libtool uses to detect shared libraries,
14233*** $file_magic_cmd, produces output that libtool cannot recognize.
14234*** The result is that libtool may fail to recognize shared libraries
14235*** as such. This will affect the creation of libtool libraries that
14236*** depend on shared libraries, but programs linked with such libtool
14237*** libraries will work regardless of this problem. Nevertheless, you
14238*** may want to report the problem to your system manager and/or to
14239*** bug-libtool@gnu.org
14240
14241EOF
14242 fi ;;
14243 esac
14244 fi
14245 break
14246 fi
14247 done
14248 IFS="$lt_save_ifs"
14249 MAGIC_CMD="$lt_save_MAGIC_CMD"
14250 ;;
14251esac
14252fi
14253
14254MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14255if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014256 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14257echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014258else
Reid Spencera773bd52006-08-04 18:18:08 +000014259 { echo "$as_me:$LINENO: result: no" >&5
14260echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014261fi
14262
14263 else
14264 MAGIC_CMD=:
14265 fi
14266fi
14267
14268 fi
14269 ;;
14270esac
14271
Reid Spencer17795972004-11-18 09:47:37 +000014272enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014273enable_win32_dll=no
14274
Reid Spencera773bd52006-08-04 18:18:08 +000014275# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014276if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014277 enableval=$enable_libtool_lock;
14278fi
John Criswell47fdd832003-07-14 16:52:07 +000014279
John Criswell47fdd832003-07-14 16:52:07 +000014280test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14281
John Criswell7a73b802003-06-30 21:59:07 +000014282
Reid Spencera773bd52006-08-04 18:18:08 +000014283# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014284if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014285 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014286else
14287 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014288fi
14289
John Criswell7a73b802003-06-30 21:59:07 +000014290test -z "$pic_mode" && pic_mode=default
14291
John Criswell47fdd832003-07-14 16:52:07 +000014292# Use C for the default configuration in the libtool script
14293tagname=
14294lt_save_CC="$CC"
14295ac_ext=c
14296ac_cpp='$CPP $CPPFLAGS'
14297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300
14301
14302# Source file extension for C test sources.
14303ac_ext=c
14304
14305# Object file extension for compiled C test sources.
14306objext=o
14307objext=$objext
14308
14309# Code to be used in simple compile tests
14310lt_simple_compile_test_code="int some_variable = 0;\n"
14311
14312# Code to be used in simple link tests
14313lt_simple_link_test_code='int main(){return(0);}\n'
14314
14315
14316# If no C compiler was specified, use CC.
14317LTCC=${LTCC-"$CC"}
14318
Reid Spencera773bd52006-08-04 18:18:08 +000014319# If no C compiler flags were specified, use CFLAGS.
14320LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14321
John Criswell47fdd832003-07-14 16:52:07 +000014322# Allow CC to be a program name with arguments.
14323compiler=$CC
14324
14325
Reid Spencera773bd52006-08-04 18:18:08 +000014326# save warnings/boilerplate of simple test code
14327ac_outfile=conftest.$ac_objext
14328printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330_lt_compiler_boilerplate=`cat conftest.err`
14331$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014332
Reid Spencera773bd52006-08-04 18:18:08 +000014333ac_outfile=conftest.$ac_objext
14334printf "$lt_simple_link_test_code" >conftest.$ac_ext
14335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14336_lt_linker_boilerplate=`cat conftest.err`
14337$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014338
14339
John Criswell47fdd832003-07-14 16:52:07 +000014340
14341lt_prog_compiler_no_builtin_flag=
14342
14343if test "$GCC" = yes; then
14344 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14345
Reid Spencer2706f8c2004-09-19 23:53:36 +000014346
Reid Spencera773bd52006-08-04 18:18:08 +000014347{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14348echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014349if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351else
14352 lt_cv_prog_compiler_rtti_exceptions=no
14353 ac_outfile=conftest.$ac_objext
14354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14355 lt_compiler_flag="-fno-rtti -fno-exceptions"
14356 # Insert the option either (1) after the last *FLAGS variable, or
14357 # (2) before a word containing "conftest.", or (3) at the end.
14358 # Note that $ac_compile itself does not contain backslashes and begins
14359 # with a dollar sign (not a hyphen), so the echo should work correctly.
14360 # The option is referenced via a variable to avoid confusing sed.
14361 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14364 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000014365 (eval echo "\"\$as_me:14365: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014366 (eval "$lt_compile" 2>conftest.err)
14367 ac_status=$?
14368 cat conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000014369 echo "$as_me:14369: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014370 if (exit $ac_status) && test -s "$ac_outfile"; then
14371 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014372 # So say no if there are warnings other than the usual output.
14373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014376 lt_cv_prog_compiler_rtti_exceptions=yes
14377 fi
14378 fi
14379 $rm conftest*
14380
14381fi
Reid Spencera773bd52006-08-04 18:18:08 +000014382{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14383echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014384
14385if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14386 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14387else
14388 :
14389fi
14390
14391fi
14392
14393lt_prog_compiler_wl=
14394lt_prog_compiler_pic=
14395lt_prog_compiler_static=
14396
Reid Spencera773bd52006-08-04 18:18:08 +000014397{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014399
14400 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014401 lt_prog_compiler_wl='-Wl,'
14402 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014403
14404 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014405 aix*)
14406 # All AIX code is PIC.
14407 if test "$host_cpu" = ia64; then
14408 # AIX 5 now supports IA64 processor
14409 lt_prog_compiler_static='-Bstatic'
14410 fi
John Criswell7a73b802003-06-30 21:59:07 +000014411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014412
John Criswell7a73b802003-06-30 21:59:07 +000014413 amigaos*)
14414 # FIXME: we need at least 68020 code to build shared libraries, but
14415 # adding the `-m68020' flag to GCC prevents building anything better,
14416 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014417 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014418 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014419
14420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014421 # PIC is the default for these OSes.
14422 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014423
14424 mingw* | pw32* | os2*)
14425 # This hack is so that the source file can tell whether it is being
14426 # built for inclusion in a dll (and should export symbols for example).
14427 lt_prog_compiler_pic='-DDLL_EXPORT'
14428 ;;
14429
John Criswell7a73b802003-06-30 21:59:07 +000014430 darwin* | rhapsody*)
14431 # PIC is the default on this platform
14432 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014433 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014434 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014435
Reid Spencera773bd52006-08-04 18:18:08 +000014436 interix3*)
14437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14438 # Instead, we relocate shared libraries at runtime.
14439 ;;
14440
John Criswell47fdd832003-07-14 16:52:07 +000014441 msdosdjgpp*)
14442 # Just because we use GCC doesn't mean we suddenly get shared libraries
14443 # on systems that don't support them.
14444 lt_prog_compiler_can_build_shared=no
14445 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014446 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014447
John Criswell7a73b802003-06-30 21:59:07 +000014448 sysv4*MP*)
14449 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014450 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014451 fi
14452 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014453
14454 hpux*)
14455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14456 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014457 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014458 hppa*64*|ia64*)
14459 # +Z the default
14460 ;;
14461 *)
14462 lt_prog_compiler_pic='-fPIC'
14463 ;;
14464 esac
14465 ;;
14466
John Criswell7a73b802003-06-30 21:59:07 +000014467 *)
John Criswell47fdd832003-07-14 16:52:07 +000014468 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014469 ;;
14470 esac
14471 else
John Criswell47fdd832003-07-14 16:52:07 +000014472 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014473 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014474 aix*)
14475 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014476 if test "$host_cpu" = ia64; then
14477 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014478 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014479 else
John Criswell47fdd832003-07-14 16:52:07 +000014480 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014481 fi
14482 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014483 darwin*)
14484 # PIC is the default on this platform
14485 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014486 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014487 xlc*)
14488 lt_prog_compiler_pic='-qnocommon'
14489 lt_prog_compiler_wl='-Wl,'
14490 ;;
14491 esac
14492 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014493
John Criswell47fdd832003-07-14 16:52:07 +000014494 mingw* | pw32* | os2*)
14495 # This hack is so that the source file can tell whether it is being
14496 # built for inclusion in a dll (and should export symbols for example).
14497 lt_prog_compiler_pic='-DDLL_EXPORT'
14498 ;;
14499
John Criswell7a73b802003-06-30 21:59:07 +000014500 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014501 lt_prog_compiler_wl='-Wl,'
14502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14503 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014504 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014505 hppa*64*|ia64*)
14506 # +Z the default
14507 ;;
14508 *)
14509 lt_prog_compiler_pic='+Z'
14510 ;;
14511 esac
14512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14513 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014514 ;;
14515
John Criswell47fdd832003-07-14 16:52:07 +000014516 irix5* | irix6* | nonstopux*)
14517 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014518 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014519 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014520 ;;
14521
14522 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014523 lt_prog_compiler_pic='-KPIC'
14524 lt_prog_compiler_static='-Bstatic'
14525 ;;
14526
14527 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014528 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014529 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014530 lt_prog_compiler_wl='-Wl,'
14531 lt_prog_compiler_pic='-KPIC'
14532 lt_prog_compiler_static='-static'
14533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014534 pgcc* | pgf77* | pgf90* | pgf95*)
14535 # Portland Group compilers (*not* the Pentium gcc compiler,
14536 # which looks to be a dead project)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-fpic'
14539 lt_prog_compiler_static='-Bstatic'
14540 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014541 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014542 lt_prog_compiler_wl='-Wl,'
14543 # All Alpha code is PIC.
14544 lt_prog_compiler_static='-non_shared'
14545 ;;
14546 esac
John Criswell7a73b802003-06-30 21:59:07 +000014547 ;;
14548
14549 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014550 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014551 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014552 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014553 ;;
14554
John Criswell7a73b802003-06-30 21:59:07 +000014555 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014556 lt_prog_compiler_pic='-KPIC'
14557 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014558 case $cc_basename in
14559 f77* | f90* | f95*)
14560 lt_prog_compiler_wl='-Qoption ld ';;
14561 *)
14562 lt_prog_compiler_wl='-Wl,';;
14563 esac
John Criswell7a73b802003-06-30 21:59:07 +000014564 ;;
14565
14566 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014567 lt_prog_compiler_wl='-Qoption ld '
14568 lt_prog_compiler_pic='-PIC'
14569 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014570 ;;
14571
Reid Spencera773bd52006-08-04 18:18:08 +000014572 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014576 ;;
14577
14578 sysv4*MP*)
14579 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014580 lt_prog_compiler_pic='-Kconform_pic'
14581 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014582 fi
14583 ;;
14584
Reid Spencera773bd52006-08-04 18:18:08 +000014585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14586 lt_prog_compiler_wl='-Wl,'
14587 lt_prog_compiler_pic='-KPIC'
14588 lt_prog_compiler_static='-Bstatic'
14589 ;;
14590
14591 unicos*)
14592 lt_prog_compiler_wl='-Wl,'
14593 lt_prog_compiler_can_build_shared=no
14594 ;;
14595
John Criswell47fdd832003-07-14 16:52:07 +000014596 uts4*)
14597 lt_prog_compiler_pic='-pic'
14598 lt_prog_compiler_static='-Bstatic'
14599 ;;
14600
John Criswell7a73b802003-06-30 21:59:07 +000014601 *)
John Criswell47fdd832003-07-14 16:52:07 +000014602 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014603 ;;
14604 esac
14605 fi
14606
Reid Spencera773bd52006-08-04 18:18:08 +000014607{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14608echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014609
John Criswell47fdd832003-07-14 16:52:07 +000014610#
14611# Check to make sure the PIC flag actually works.
14612#
14613if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014614
Reid Spencera773bd52006-08-04 18:18:08 +000014615{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14616echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014617if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619else
John Criswell47fdd832003-07-14 16:52:07 +000014620 lt_prog_compiler_pic_works=no
14621 ac_outfile=conftest.$ac_objext
14622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 # The option is referenced via a variable to avoid confusing sed.
14629 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000014633 (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014634 (eval "$lt_compile" 2>conftest.err)
14635 ac_status=$?
14636 cat conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000014637 echo "$as_me:14637: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014638 if (exit $ac_status) && test -s "$ac_outfile"; then
14639 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014640 # So say no if there are warnings other than the usual output.
14641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014644 lt_prog_compiler_pic_works=yes
14645 fi
14646 fi
14647 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014648
John Criswell47fdd832003-07-14 16:52:07 +000014649fi
Reid Spencera773bd52006-08-04 18:18:08 +000014650{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14651echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014652
John Criswell47fdd832003-07-14 16:52:07 +000014653if test x"$lt_prog_compiler_pic_works" = xyes; then
14654 case $lt_prog_compiler_pic in
14655 "" | " "*) ;;
14656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14657 esac
John Criswell7a73b802003-06-30 21:59:07 +000014658else
John Criswell47fdd832003-07-14 16:52:07 +000014659 lt_prog_compiler_pic=
14660 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014661fi
14662
John Criswell7a73b802003-06-30 21:59:07 +000014663fi
Reid Spencera773bd52006-08-04 18:18:08 +000014664case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014665 # For platforms which do not support PIC, -DPIC is meaningless:
14666 *djgpp*)
14667 lt_prog_compiler_pic=
14668 ;;
14669 *)
14670 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14671 ;;
14672esac
John Criswell7a73b802003-06-30 21:59:07 +000014673
Reid Spencera773bd52006-08-04 18:18:08 +000014674#
14675# Check to make sure the static flag actually works.
14676#
14677wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14678{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14679echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14680if test "${lt_prog_compiler_static_works+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 lt_prog_compiler_static_works=no
14684 save_LDFLAGS="$LDFLAGS"
14685 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14686 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14688 # The linker can only warn and ignore the option if not recognized
14689 # So say no if there are warnings
14690 if test -s conftest.err; then
14691 # Append any errors to the config.log.
14692 cat conftest.err 1>&5
14693 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14695 if diff conftest.exp conftest.er2 >/dev/null; then
14696 lt_prog_compiler_static_works=yes
14697 fi
14698 else
14699 lt_prog_compiler_static_works=yes
14700 fi
14701 fi
14702 $rm conftest*
14703 LDFLAGS="$save_LDFLAGS"
14704
14705fi
14706{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14707echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14708
14709if test x"$lt_prog_compiler_static_works" = xyes; then
14710 :
14711else
14712 lt_prog_compiler_static=
14713fi
14714
14715
14716{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14717echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014718if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
John Criswell47fdd832003-07-14 16:52:07 +000014721 lt_cv_prog_compiler_c_o=no
14722 $rm -r conftest 2>/dev/null
14723 mkdir conftest
14724 cd conftest
14725 mkdir out
14726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014727
John Criswell47fdd832003-07-14 16:52:07 +000014728 lt_compiler_flag="-o out/conftest2.$ac_objext"
14729 # Insert the option either (1) after the last *FLAGS variable, or
14730 # (2) before a word containing "conftest.", or (3) at the end.
14731 # Note that $ac_compile itself does not contain backslashes and begins
14732 # with a dollar sign (not a hyphen), so the echo should work correctly.
14733 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000014737 (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014738 (eval "$lt_compile" 2>out/conftest.err)
14739 ac_status=$?
14740 cat out/conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000014741 echo "$as_me:14741: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14743 then
14744 # The compiler can only warn and ignore the option if not recognized
14745 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014749 lt_cv_prog_compiler_c_o=yes
14750 fi
14751 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014752 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014753 $rm conftest*
14754 # SGI C++ compiler will create directory out/ii_files/ for
14755 # template instantiation
14756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14757 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014758 cd ..
14759 rmdir conftest
14760 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014761
14762fi
Reid Spencera773bd52006-08-04 18:18:08 +000014763{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14764echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014765
John Criswell7a73b802003-06-30 21:59:07 +000014766
John Criswell7a73b802003-06-30 21:59:07 +000014767hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014768if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014769 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014770 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14771echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014772 hard_links=yes
14773 $rm conftest*
14774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14775 touch conftest.a
14776 ln conftest.a conftest.b 2>&5 || hard_links=no
14777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014778 { echo "$as_me:$LINENO: result: $hard_links" >&5
14779echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014780 if test "$hard_links" = no; then
14781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14782echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14783 need_locks=warn
14784 fi
14785else
14786 need_locks=no
14787fi
John Criswell7a73b802003-06-30 21:59:07 +000014788
Reid Spencera773bd52006-08-04 18:18:08 +000014789{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14790echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014791
14792 runpath_var=
14793 allow_undefined_flag=
14794 enable_shared_with_static_runtimes=no
14795 archive_cmds=
14796 archive_expsym_cmds=
14797 old_archive_From_new_cmds=
14798 old_archive_from_expsyms_cmds=
14799 export_dynamic_flag_spec=
14800 whole_archive_flag_spec=
14801 thread_safe_flag_spec=
14802 hardcode_libdir_flag_spec=
14803 hardcode_libdir_flag_spec_ld=
14804 hardcode_libdir_separator=
14805 hardcode_direct=no
14806 hardcode_minus_L=no
14807 hardcode_shlibpath_var=unsupported
14808 link_all_deplibs=unknown
14809 hardcode_automatic=no
14810 module_cmds=
14811 module_expsym_cmds=
14812 always_export_symbols=no
14813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14814 # include_expsyms should be a list of space-separated symbols to be *always*
14815 # included in the symbol list
14816 include_expsyms=
14817 # exclude_expsyms can be an extended regexp of symbols to exclude
14818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14820 # as well as any symbol that contains `d'.
14821 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14823 # platforms (ab)use it in PIC code, but their linkers get confused if
14824 # the symbol is explicitly referenced. Since portable code cannot
14825 # rely on this symbol name, it's probably fine to never include it in
14826 # preloaded symbol tables.
14827 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014828 # Just being paranoid about ensuring that cc_basename is set.
14829 for cc_temp in $compiler""; do
14830 case $cc_temp in
14831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14833 \-*) ;;
14834 *) break;;
14835 esac
14836done
14837cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014838
14839 case $host_os in
14840 cygwin* | mingw* | pw32*)
14841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14842 # When not using gcc, we currently assume that we are using
14843 # Microsoft Visual C++.
14844 if test "$GCC" != yes; then
14845 with_gnu_ld=no
14846 fi
14847 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014848 interix*)
14849 # we just hope/assume this is gcc and not c89 (= MSVC++)
14850 with_gnu_ld=yes
14851 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014852 openbsd*)
14853 with_gnu_ld=no
14854 ;;
14855 esac
14856
14857 ld_shlibs=yes
14858 if test "$with_gnu_ld" = yes; then
14859 # If archive_cmds runs LD, not CC, wlarc should be empty
14860 wlarc='${wl}'
14861
Reid Spencera773bd52006-08-04 18:18:08 +000014862 # Set some defaults for GNU ld with shared library support. These
14863 # are reset later if shared libraries are not supported. Putting them
14864 # here allows them to be overridden if necessary.
14865 runpath_var=LD_RUN_PATH
14866 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14867 export_dynamic_flag_spec='${wl}--export-dynamic'
14868 # ancient GNU ld didn't support --whole-archive et. al.
14869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14871 else
14872 whole_archive_flag_spec=
14873 fi
14874 supports_anon_versioning=no
14875 case `$LD -v 2>/dev/null` in
14876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14879 *\ 2.11.*) ;; # other 2.11 versions
14880 *) supports_anon_versioning=yes ;;
14881 esac
14882
John Criswell47fdd832003-07-14 16:52:07 +000014883 # See if GNU ld supports shared libraries.
14884 case $host_os in
14885 aix3* | aix4* | aix5*)
14886 # On AIX/PPC, the GNU linker is very broken
14887 if test "$host_cpu" != ia64; then
14888 ld_shlibs=no
14889 cat <<EOF 1>&2
14890
14891*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14892*** to be unable to reliably create shared libraries on AIX.
14893*** Therefore, libtool is disabling shared libraries support. If you
14894*** really care for shared libraries, you may want to modify your PATH
14895*** so that a non-GNU linker is found, and then restart.
14896
14897EOF
14898 fi
14899 ;;
14900
14901 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014902 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 +000014903 hardcode_libdir_flag_spec='-L$libdir'
14904 hardcode_minus_L=yes
14905
14906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14907 # that the semantics of dynamic libraries on AmigaOS, at least up
14908 # to version 4, is to share data among multiple programs linked
14909 # with the same dynamic library. Since this doesn't match the
14910 # behavior of shared libraries on other platforms, we can't use
14911 # them.
14912 ld_shlibs=no
14913 ;;
14914
14915 beos*)
14916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14917 allow_undefined_flag=unsupported
14918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14919 # support --undefined. This deserves some investigation. FIXME
14920 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14921 else
14922 ld_shlibs=no
14923 fi
14924 ;;
14925
14926 cygwin* | mingw* | pw32*)
14927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14928 # as there is no search path for DLLs.
14929 hardcode_libdir_flag_spec='-L$libdir'
14930 allow_undefined_flag=unsupported
14931 always_export_symbols=no
14932 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014933 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 +000014934
14935 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014936 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 +000014937 # If the export-symbols file already is a .def file (1st line
14938 # is EXPORTS), use it as is; otherwise, prepend...
14939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14940 cp $export_symbols $output_objdir/$soname.def;
14941 else
14942 echo EXPORTS > $output_objdir/$soname.def;
14943 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014944 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14946 else
14947 ld_shlibs=no
14948 fi
14949 ;;
14950
14951 interix3*)
14952 hardcode_direct=no
14953 hardcode_shlibpath_var=no
14954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14955 export_dynamic_flag_spec='${wl}-E'
14956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14957 # Instead, shared libraries are loaded at an image base (0x10000000 by
14958 # default) and relocated if they conflict, which is a slow very memory
14959 # consuming and fragmenting process. To avoid this, we pick a random,
14960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14963 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'
14964 ;;
14965
14966 linux*)
14967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14968 tmp_addflag=
14969 case $cc_basename,$host_cpu in
14970 pgcc*) # Portland Group C compiler
14971 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'
14972 tmp_addflag=' $pic_flag'
14973 ;;
14974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14975 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'
14976 tmp_addflag=' $pic_flag -Mnomain' ;;
14977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14978 tmp_addflag=' -i_dynamic' ;;
14979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14980 tmp_addflag=' -i_dynamic -nofor_main' ;;
14981 ifc* | ifort*) # Intel Fortran compiler
14982 tmp_addflag=' -nofor_main' ;;
14983 esac
14984 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14985
14986 if test $supports_anon_versioning = yes; then
14987 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14989 $echo "local: *; };" >> $output_objdir/$libname.ver~
14990 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14991 fi
John Criswell47fdd832003-07-14 16:52:07 +000014992 else
14993 ld_shlibs=no
14994 fi
14995 ;;
14996
14997 netbsd*)
14998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15000 wlarc=
15001 else
15002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15004 fi
15005 ;;
15006
Reid Spencera773bd52006-08-04 18:18:08 +000015007 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015008 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15009 ld_shlibs=no
15010 cat <<EOF 1>&2
15011
15012*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15013*** create shared libraries on Solaris systems. Therefore, libtool
15014*** is disabling shared libraries support. We urge you to upgrade GNU
15015*** binutils to release 2.9.1 or newer. Another option is to modify
15016*** your PATH or compiler configuration so that the native linker is
15017*** used, and then restart.
15018
15019EOF
15020 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023 else
15024 ld_shlibs=no
15025 fi
15026 ;;
15027
Reid Spencera773bd52006-08-04 18:18:08 +000015028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15029 case `$LD -v 2>&1` in
15030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15031 ld_shlibs=no
15032 cat <<_LT_EOF 1>&2
15033
15034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15035*** reliably create shared libraries on SCO systems. Therefore, libtool
15036*** is disabling shared libraries support. We urge you to upgrade GNU
15037*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15038*** your PATH or compiler configuration so that the native linker is
15039*** used, and then restart.
15040
15041_LT_EOF
15042 ;;
15043 *)
15044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15048 else
15049 ld_shlibs=no
15050 fi
15051 ;;
15052 esac
15053 ;;
15054
John Criswell47fdd832003-07-14 16:52:07 +000015055 sunos4*)
15056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15057 wlarc=
15058 hardcode_direct=yes
15059 hardcode_shlibpath_var=no
15060 ;;
15061
15062 *)
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066 else
15067 ld_shlibs=no
15068 fi
15069 ;;
15070 esac
15071
Reid Spencera773bd52006-08-04 18:18:08 +000015072 if test "$ld_shlibs" = no; then
15073 runpath_var=
15074 hardcode_libdir_flag_spec=
15075 export_dynamic_flag_spec=
15076 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015077 fi
15078 else
15079 # PORTME fill in a description of your system's linker (not GNU ld)
15080 case $host_os in
15081 aix3*)
15082 allow_undefined_flag=unsupported
15083 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015084 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 +000015085 # Note: this linker hardcodes the directories in LIBPATH if there
15086 # are no directories specified by -L.
15087 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015088 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015089 # Neither direct hardcoding nor static linking is supported with a
15090 # broken collect2.
15091 hardcode_direct=unsupported
15092 fi
15093 ;;
15094
15095 aix4* | aix5*)
15096 if test "$host_cpu" = ia64; then
15097 # On IA64, the linker does run time linking by default, so we don't
15098 # have to do anything special.
15099 aix_use_runtimelinking=no
15100 exp_sym_flag='-Bexport'
15101 no_entry_flag=""
15102 else
15103 # If we're using GNU nm, then we don't want the "-C" option.
15104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15105 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15106 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'
15107 else
15108 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'
15109 fi
15110 aix_use_runtimelinking=no
15111
15112 # Test if we are trying to use run time linking or normal
15113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15114 # need to do runtime linking.
15115 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15116 for ld_flag in $LDFLAGS; do
15117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15118 aix_use_runtimelinking=yes
15119 break
15120 fi
15121 done
Reid Spencera773bd52006-08-04 18:18:08 +000015122 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015123 esac
15124
15125 exp_sym_flag='-bexport'
15126 no_entry_flag='-bnoentry'
15127 fi
15128
15129 # When large executables or shared objects are built, AIX ld can
15130 # have problems creating the table of contents. If linking a library
15131 # or program results in "error TOC overflow" add -mminimal-toc to
15132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15134
15135 archive_cmds=''
15136 hardcode_direct=yes
15137 hardcode_libdir_separator=':'
15138 link_all_deplibs=yes
15139
15140 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015141 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015142 # We only want to do this on AIX 4.2 and lower, the check
15143 # below for broken collect2 doesn't work under 4.3+
15144 collect2name=`${CC} -print-prog-name=collect2`
15145 if test -f "$collect2name" && \
15146 strings "$collect2name" | grep resolve_lib_name >/dev/null
15147 then
15148 # We have reworked collect2
15149 hardcode_direct=yes
15150 else
15151 # We have old collect2
15152 hardcode_direct=unsupported
15153 # It fails to find uninstalled libraries when the uninstalled
15154 # path is not listed in the libpath. Setting hardcode_minus_L
15155 # to unsupported forces relinking
15156 hardcode_minus_L=yes
15157 hardcode_libdir_flag_spec='-L$libdir'
15158 hardcode_libdir_separator=
15159 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015160 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015161 esac
15162 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015163 if test "$aix_use_runtimelinking" = yes; then
15164 shared_flag="$shared_flag "'${wl}-G'
15165 fi
John Criswell47fdd832003-07-14 16:52:07 +000015166 else
15167 # not using gcc
15168 if test "$host_cpu" = ia64; then
15169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170 # chokes on -Wl,-G. The following line is correct:
15171 shared_flag='-G'
15172 else
Reid Spencera773bd52006-08-04 18:18:08 +000015173 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015174 shared_flag='${wl}-G'
15175 else
15176 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015177 fi
John Criswell47fdd832003-07-14 16:52:07 +000015178 fi
15179 fi
15180
15181 # It seems that -bexpall does not export symbols beginning with
15182 # underscore (_), so it is better to generate a list of symbols to export.
15183 always_export_symbols=yes
15184 if test "$aix_use_runtimelinking" = yes; then
15185 # Warning - without using the other runtime loading flags (-brtl),
15186 # -berok will link without error, but may produce a broken library.
15187 allow_undefined_flag='-berok'
15188 # Determine the default libpath from the value encoded in an empty executable.
15189 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015190/* confdefs.h. */
15191_ACEOF
15192cat confdefs.h >>conftest.$ac_ext
15193cat >>conftest.$ac_ext <<_ACEOF
15194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015195
John Criswell7a73b802003-06-30 21:59:07 +000015196int
15197main ()
15198{
John Criswell47fdd832003-07-14 16:52:07 +000015199
John Criswell7a73b802003-06-30 21:59:07 +000015200 ;
15201 return 0;
15202}
15203_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015204rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015205if { (ac_try="$ac_link"
15206case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15209esac
15210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015213 grep -v '^ *+' conftest.er1 >conftest.err
15214 rm -f conftest.er1
15215 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015229 { (case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232esac
15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015238
John Criswell47fdd832003-07-14 16:52:07 +000015239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15240}'`
15241# Check for a 64-bit object if we didn't find anything.
15242if 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; }
15243}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015244else
15245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015246sed 's/^/| /' conftest.$ac_ext >&5
15247
Reid Spencera773bd52006-08-04 18:18:08 +000015248
John Criswell7a73b802003-06-30 21:59:07 +000015249fi
Reid Spencera773bd52006-08-04 18:18:08 +000015250
15251rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015252 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015254
John Criswell47fdd832003-07-14 16:52:07 +000015255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015256 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 +000015257 else
15258 if test "$host_cpu" = ia64; then
15259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15260 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015261 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 +000015262 else
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015270
John Criswell47fdd832003-07-14 16:52:07 +000015271int
15272main ()
15273{
John Criswell7a73b802003-06-30 21:59:07 +000015274
John Criswell47fdd832003-07-14 16:52:07 +000015275 ;
15276 return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015280if { (ac_try="$ac_link"
15281case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297esac
15298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015313
John Criswell47fdd832003-07-14 16:52:07 +000015314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15315}'`
15316# Check for a 64-bit object if we didn't find anything.
15317if 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; }
15318}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015319else
John Criswell47fdd832003-07-14 16:52:07 +000015320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015321sed 's/^/| /' conftest.$ac_ext >&5
15322
Reid Spencera773bd52006-08-04 18:18:08 +000015323
John Criswell47fdd832003-07-14 16:52:07 +000015324fi
Reid Spencera773bd52006-08-04 18:18:08 +000015325
15326rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015327 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015329
John Criswell47fdd832003-07-14 16:52:07 +000015330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15331 # Warning - without using the other run time loading flags,
15332 # -berok will link without error, but may produce a broken library.
15333 no_undefined_flag=' ${wl}-bernotok'
15334 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015335 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015336 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015337 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015338 # This is similar to how AIX traditionally builds its shared libraries.
15339 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 +000015340 fi
15341 fi
John Criswell7a73b802003-06-30 21:59:07 +000015342 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015343
15344 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015345 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 +000015346 hardcode_libdir_flag_spec='-L$libdir'
15347 hardcode_minus_L=yes
15348 # see comment about different semantics on the GNU ld section
15349 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015350 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015351
Reid Spencer2706f8c2004-09-19 23:53:36 +000015352 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015353 export_dynamic_flag_spec=-rdynamic
15354 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015355
John Criswell47fdd832003-07-14 16:52:07 +000015356 cygwin* | mingw* | pw32*)
15357 # When not using gcc, we currently assume that we are using
15358 # Microsoft Visual C++.
15359 # hardcode_libdir_flag_spec is actually meaningless, as there is
15360 # no search path for DLLs.
15361 hardcode_libdir_flag_spec=' '
15362 allow_undefined_flag=unsupported
15363 # Tell ltmain to make .lib files, not .a files.
15364 libext=lib
15365 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015366 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015367 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015369 # The linker will automatically build a .lib file if we build a DLL.
15370 old_archive_From_new_cmds='true'
15371 # FIXME: Should let the user specify the lib program.
15372 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15373 fix_srcfile_path='`cygpath -w "$srcfile"`'
15374 enable_shared_with_static_runtimes=yes
15375 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015376
John Criswell47fdd832003-07-14 16:52:07 +000015377 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015378 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015379 rhapsody* | darwin1.[012])
15380 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15381 ;;
15382 *) # Darwin 1.3 on
15383 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15384 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15385 else
15386 case ${MACOSX_DEPLOYMENT_TARGET} in
15387 10.[012])
15388 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15389 ;;
15390 10.*)
15391 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15392 ;;
15393 esac
15394 fi
15395 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015396 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015397 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015398 hardcode_direct=no
15399 hardcode_automatic=yes
15400 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015401 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015402 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015403 if test "$GCC" = yes ; then
15404 output_verbose_link_cmd='echo'
15405 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15406 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015407 # 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 +000015408 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}'
15409 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 +000015410 else
Reid Spencera773bd52006-08-04 18:18:08 +000015411 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015412 xlc*)
15413 output_verbose_link_cmd='echo'
15414 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15415 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015416 # 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 +000015417 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}'
15418 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 +000015419 ;;
15420 *)
15421 ld_shlibs=no
15422 ;;
15423 esac
John Criswell7a73b802003-06-30 21:59:07 +000015424 fi
John Criswell47fdd832003-07-14 16:52:07 +000015425 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015426
John Criswell47fdd832003-07-14 16:52:07 +000015427 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015429 hardcode_libdir_flag_spec='-L$libdir'
15430 hardcode_shlibpath_var=no
15431 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015432
John Criswell47fdd832003-07-14 16:52:07 +000015433 freebsd1*)
15434 ld_shlibs=no
15435 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015436
John Criswell47fdd832003-07-14 16:52:07 +000015437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15438 # support. Future versions do this automatically, but an explicit c++rt0.o
15439 # does not break anything, and helps significantly (at the cost of a little
15440 # extra space).
15441 freebsd2.2*)
15442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15443 hardcode_libdir_flag_spec='-R$libdir'
15444 hardcode_direct=yes
15445 hardcode_shlibpath_var=no
15446 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015447
John Criswell47fdd832003-07-14 16:52:07 +000015448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15449 freebsd2*)
15450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15451 hardcode_direct=yes
15452 hardcode_minus_L=yes
15453 hardcode_shlibpath_var=no
15454 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015455
John Criswell47fdd832003-07-14 16:52:07 +000015456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015457 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015458 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15459 hardcode_libdir_flag_spec='-R$libdir'
15460 hardcode_direct=yes
15461 hardcode_shlibpath_var=no
15462 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015463
John Criswell47fdd832003-07-14 16:52:07 +000015464 hpux9*)
15465 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015466 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 +000015467 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015468 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 +000015469 fi
15470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15471 hardcode_libdir_separator=:
15472 hardcode_direct=yes
15473
15474 # hardcode_minus_L: Not really in the search PATH,
15475 # but as the default location of the library.
15476 hardcode_minus_L=yes
15477 export_dynamic_flag_spec='${wl}-E'
15478 ;;
15479
Reid Spencera773bd52006-08-04 18:18:08 +000015480 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015482 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15483 else
15484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15485 fi
15486 if test "$with_gnu_ld" = no; then
15487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15488 hardcode_libdir_separator=:
15489
15490 hardcode_direct=yes
15491 export_dynamic_flag_spec='${wl}-E'
15492
15493 # hardcode_minus_L: Not really in the search PATH,
15494 # but as the default location of the library.
15495 hardcode_minus_L=yes
15496 fi
15497 ;;
15498
15499 hpux11*)
15500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15501 case $host_cpu in
15502 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015505 ia64*)
15506 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15507 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015508 *)
15509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15510 ;;
15511 esac
15512 else
Reid Spencera773bd52006-08-04 18:18:08 +000015513 case $host_cpu in
15514 hppa*64*)
15515 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516 ;;
15517 ia64*)
15518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015519 ;;
15520 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015521 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 +000015522 ;;
15523 esac
15524 fi
15525 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15527 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015528
Reid Spencera773bd52006-08-04 18:18:08 +000015529 case $host_cpu in
15530 hppa*64*|ia64*)
15531 hardcode_libdir_flag_spec_ld='+b $libdir'
15532 hardcode_direct=no
15533 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015534 ;;
15535 *)
John Criswell47fdd832003-07-14 16:52:07 +000015536 hardcode_direct=yes
15537 export_dynamic_flag_spec='${wl}-E'
15538
15539 # hardcode_minus_L: Not really in the search PATH,
15540 # but as the default location of the library.
15541 hardcode_minus_L=yes
15542 ;;
15543 esac
15544 fi
15545 ;;
15546
15547 irix5* | irix6* | nonstopux*)
15548 if test "$GCC" = yes; then
15549 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'
15550 else
15551 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'
15552 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15553 fi
15554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15555 hardcode_libdir_separator=:
15556 link_all_deplibs=yes
15557 ;;
15558
15559 netbsd*)
15560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15562 else
15563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15564 fi
15565 hardcode_libdir_flag_spec='-R$libdir'
15566 hardcode_direct=yes
15567 hardcode_shlibpath_var=no
15568 ;;
15569
15570 newsos6)
15571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct=yes
15573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15574 hardcode_libdir_separator=:
15575 hardcode_shlibpath_var=no
15576 ;;
15577
15578 openbsd*)
15579 hardcode_direct=yes
15580 hardcode_shlibpath_var=no
15581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015583 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 +000015584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15585 export_dynamic_flag_spec='${wl}-E'
15586 else
15587 case $host_os in
15588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590 hardcode_libdir_flag_spec='-R$libdir'
15591 ;;
15592 *)
15593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15595 ;;
15596 esac
15597 fi
15598 ;;
15599
15600 os2*)
15601 hardcode_libdir_flag_spec='-L$libdir'
15602 hardcode_minus_L=yes
15603 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015604 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 +000015605 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15606 ;;
15607
15608 osf3*)
15609 if test "$GCC" = yes; then
15610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15611 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'
15612 else
15613 allow_undefined_flag=' -expect_unresolved \*'
15614 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'
15615 fi
15616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator=:
15618 ;;
15619
15620 osf4* | osf5*) # as osf3* with the addition of -msym flag
15621 if test "$GCC" = yes; then
15622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15623 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'
15624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625 else
15626 allow_undefined_flag=' -expect_unresolved \*'
15627 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 +000015628 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 +000015629 $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 +000015630
John Criswell47fdd832003-07-14 16:52:07 +000015631 # Both c and cxx compiler support -rpath directly
15632 hardcode_libdir_flag_spec='-rpath $libdir'
15633 fi
15634 hardcode_libdir_separator=:
15635 ;;
15636
John Criswell47fdd832003-07-14 16:52:07 +000015637 solaris*)
15638 no_undefined_flag=' -z text'
15639 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015640 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015641 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015642 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643 $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 +000015644 else
Reid Spencera773bd52006-08-04 18:18:08 +000015645 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015646 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015647 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648 $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 +000015649 fi
15650 hardcode_libdir_flag_spec='-R$libdir'
15651 hardcode_shlibpath_var=no
15652 case $host_os in
15653 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015654 *)
15655 # The compiler driver will combine linker options so we
15656 # cannot just pass the convience library names through
15657 # without $wl, iff we do not link with $LD.
15658 # Luckily, gcc supports the same syntax we need for Sun Studio.
15659 # Supported since Solaris 2.6 (maybe 2.5.1?)
15660 case $wlarc in
15661 '')
15662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15663 *)
15664 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' ;;
15665 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015666 esac
15667 link_all_deplibs=yes
15668 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015669
John Criswell47fdd832003-07-14 16:52:07 +000015670 sunos4*)
15671 if test "x$host_vendor" = xsequent; then
15672 # Use $CC to link under sequent, because it throws in some extra .o
15673 # files that make .init and .fini sections work.
15674 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15675 else
15676 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15677 fi
15678 hardcode_libdir_flag_spec='-L$libdir'
15679 hardcode_direct=yes
15680 hardcode_minus_L=yes
15681 hardcode_shlibpath_var=no
15682 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015683
John Criswell47fdd832003-07-14 16:52:07 +000015684 sysv4)
15685 case $host_vendor in
15686 sni)
15687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_direct=yes # is this really true???
15689 ;;
15690 siemens)
15691 ## LD is ld it makes a PLAMLIB
15692 ## CC just makes a GrossModule.
15693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15694 reload_cmds='$CC -r -o $output$reload_objs'
15695 hardcode_direct=no
15696 ;;
15697 motorola)
15698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15700 ;;
15701 esac
15702 runpath_var='LD_RUN_PATH'
15703 hardcode_shlibpath_var=no
15704 ;;
15705
15706 sysv4.3*)
15707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_shlibpath_var=no
15709 export_dynamic_flag_spec='-Bexport'
15710 ;;
15711
15712 sysv4*MP*)
15713 if test -d /usr/nec; then
15714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_shlibpath_var=no
15716 runpath_var=LD_RUN_PATH
15717 hardcode_runpath_var=yes
15718 ld_shlibs=yes
15719 fi
15720 ;;
15721
Reid Spencera773bd52006-08-04 18:18:08 +000015722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15723 no_undefined_flag='${wl}-z,text'
15724 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015725 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015726 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015727
John Criswell47fdd832003-07-14 16:52:07 +000015728 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015729 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730 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 +000015731 else
Reid Spencera773bd52006-08-04 18:18:08 +000015732 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733 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 +000015734 fi
John Criswell47fdd832003-07-14 16:52:07 +000015735 ;;
15736
Reid Spencera773bd52006-08-04 18:18:08 +000015737 sysv5* | sco3.2v5* | sco5v6*)
15738 # Note: We can NOT use -z defs as we might desire, because we do not
15739 # link with -lc, and that would cause any symbols used from libc to
15740 # always be unresolved, which means just about no library would
15741 # ever link correctly. If we're not using GNU ld we use -z text
15742 # though, which does catch some bad symbols but isn't as heavy-handed
15743 # as -z defs.
15744 no_undefined_flag='${wl}-z,text'
15745 allow_undefined_flag='${wl}-z,nodefs'
15746 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015747 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015748 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15749 hardcode_libdir_separator=':'
15750 link_all_deplibs=yes
15751 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015752 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015753
15754 if test "$GCC" = yes; then
15755 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 else
15758 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15760 fi
John Criswell47fdd832003-07-14 16:52:07 +000015761 ;;
15762
15763 uts4*)
15764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_libdir_flag_spec='-L$libdir'
15766 hardcode_shlibpath_var=no
15767 ;;
15768
15769 *)
15770 ld_shlibs=no
15771 ;;
15772 esac
15773 fi
15774
Reid Spencera773bd52006-08-04 18:18:08 +000015775{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15776echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015777test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015778
John Criswell47fdd832003-07-14 16:52:07 +000015779#
15780# Do we need to explicitly link libc?
15781#
15782case "x$archive_cmds_need_lc" in
15783x|xyes)
15784 # Assume -lc should be added
15785 archive_cmds_need_lc=yes
15786
15787 if test "$enable_shared" = yes && test "$GCC" = yes; then
15788 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015789 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015790 # FIXME: we may have to deal with multi-command sequences.
15791 ;;
15792 '$CC '*)
15793 # Test whether the compiler implicitly links with -lc since on some
15794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15795 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015796 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15797echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015798 $rm conftest*
15799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15800
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } 2>conftest.err; then
15806 soname=conftest
15807 lib=conftest
15808 libobjs=conftest.$ac_objext
15809 deplibs=
15810 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015811 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015812 compiler_flags=-v
15813 linker_flags=-v
15814 verstring=
15815 output_objdir=.
15816 libname=conftest
15817 lt_save_allow_undefined_flag=$allow_undefined_flag
15818 allow_undefined_flag=
15819 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15820 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }
15824 then
15825 archive_cmds_need_lc=no
15826 else
15827 archive_cmds_need_lc=yes
15828 fi
15829 allow_undefined_flag=$lt_save_allow_undefined_flag
15830 else
15831 cat conftest.err 1>&5
15832 fi
15833 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015834 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15835echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015836 ;;
15837 esac
15838 fi
15839 ;;
15840esac
15841
Reid Spencera773bd52006-08-04 18:18:08 +000015842{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15843echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015844library_names_spec=
15845libname_spec='lib$name'
15846soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015847shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015848postinstall_cmds=
15849postuninstall_cmds=
15850finish_cmds=
15851finish_eval=
15852shlibpath_var=
15853shlibpath_overrides_runpath=unknown
15854version_type=none
15855dynamic_linker="$host_os ld.so"
15856sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015857if test "$GCC" = yes; then
15858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15859 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15860 # if the path contains ";" then we assume it to be the separator
15861 # otherwise default to the standard path separator (i.e. ":") - it is
15862 # assumed that no part of a normal pathname contains ";" but that should
15863 # okay in the real world where ";" in dirpaths is itself problematic.
15864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15865 else
15866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15867 fi
15868else
15869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15870fi
15871need_lib_prefix=unknown
15872hardcode_into_libs=no
15873
15874# when you set need_version to no, make sure it does not cause -set_version
15875# flags to be left without arguments
15876need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015877
15878case $host_os in
15879aix3*)
15880 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015882 shlibpath_var=LIBPATH
15883
John Criswell47fdd832003-07-14 16:52:07 +000015884 # AIX 3 has no versioning support, so we append a major version to the name.
15885 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015886 ;;
15887
15888aix4* | aix5*)
15889 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015890 need_lib_prefix=no
15891 need_version=no
15892 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015893 if test "$host_cpu" = ia64; then
15894 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015896 shlibpath_var=LD_LIBRARY_PATH
15897 else
15898 # With GCC up to 2.95.x, collect2 would create an import file
15899 # for dependence libraries. The import file would start with
15900 # the line `#! .'. This would cause the generated library to
15901 # depend on `.', always an invalid library. This was fixed in
15902 # development snapshots of GCC prior to 3.0.
15903 case $host_os in
15904 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15906 echo ' yes '
15907 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15908 :
15909 else
15910 can_build_shared=no
15911 fi
15912 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015913 esac
John Criswell47fdd832003-07-14 16:52:07 +000015914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15915 # soname into executable. Probably we can add versioning support to
15916 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015917 if test "$aix_use_runtimelinking" = yes; then
15918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15919 # instead of lib<name>.a to let people know that these are not
15920 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015922 else
15923 # We preserve .a as extension for shared libraries through AIX4.2
15924 # and later when we are not doing run time linking.
15925 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015926 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015927 fi
15928 shlibpath_var=LIBPATH
15929 fi
15930 ;;
15931
15932amigaos*)
15933 library_names_spec='$libname.ixlibrary $libname.a'
15934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015935 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 +000015936 ;;
15937
15938beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015939 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015940 dynamic_linker="$host_os ld.so"
15941 shlibpath_var=LIBRARY_PATH
15942 ;;
15943
Reid Spencer2706f8c2004-09-19 23:53:36 +000015944bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015945 version_type=linux
15946 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15950 shlibpath_var=LD_LIBRARY_PATH
15951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015953 # the default ld.so.conf also contains /usr/contrib/lib and
15954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15955 # libtool to hard-code these into programs
15956 ;;
15957
15958cygwin* | mingw* | pw32*)
15959 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015960 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015961 need_version=no
15962 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015963
John Criswell7a73b802003-06-30 21:59:07 +000015964 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015965 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015966 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015968 postinstall_cmds='base_file=`basename \${file}`~
15969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15970 dldir=$destdir/`dirname \$dlpath`~
15971 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015972 $install_prog $dir/$dlname \$dldir/$dlname~
15973 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15975 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015976 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015977 shlibpath_overrides_runpath=yes
15978
15979 case $host_os in
15980 cygwin*)
15981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15982 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 +000015983 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015984 ;;
15985 mingw*)
15986 # MinGW DLLs use traditional 'lib' prefix
15987 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15990 # It is most probably a Windows format PATH printed by
15991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15992 # path with ; separators, and with drive letters. We can handle the
15993 # drive letters (cygwin fileutils understands them), so leave them,
15994 # especially as we might pass files found there to a mingw objdump,
15995 # which wouldn't understand a cygwinified path. Ahh.
15996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15997 else
15998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15999 fi
16000 ;;
16001 pw32*)
16002 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016003 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 +000016004 ;;
16005 esac
John Criswell7a73b802003-06-30 21:59:07 +000016006 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016007
John Criswell7a73b802003-06-30 21:59:07 +000016008 *)
John Criswell47fdd832003-07-14 16:52:07 +000016009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016010 ;;
16011 esac
16012 dynamic_linker='Win32 ld.exe'
16013 # FIXME: first we should search . and the directory the executable is in
16014 shlibpath_var=PATH
16015 ;;
16016
16017darwin* | rhapsody*)
16018 dynamic_linker="$host_os dyld"
16019 version_type=darwin
16020 need_lib_prefix=no
16021 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016022 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016023 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016024 shlibpath_overrides_runpath=yes
16025 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016026 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016027 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016028 if test "$GCC" = yes; then
16029 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"`
16030 else
16031 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016032 fi
16033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16034 ;;
16035
16036dgux*)
16037 version_type=linux
16038 need_lib_prefix=no
16039 need_version=no
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16041 soname_spec='${libname}${release}${shared_ext}$major'
16042 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016043 ;;
16044
16045freebsd1*)
16046 dynamic_linker=no
16047 ;;
16048
Reid Spencer2706f8c2004-09-19 23:53:36 +000016049kfreebsd*-gnu)
16050 version_type=linux
16051 need_lib_prefix=no
16052 need_version=no
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 shlibpath_overrides_runpath=no
16057 hardcode_into_libs=yes
16058 dynamic_linker='GNU ld.so'
16059 ;;
16060
Reid Spencera773bd52006-08-04 18:18:08 +000016061freebsd* | dragonfly*)
16062 # DragonFly does not have aout. When/if they implement a new
16063 # versioning mechanism, adjust this.
16064 if test -x /usr/bin/objformat; then
16065 objformat=`/usr/bin/objformat`
16066 else
16067 case $host_os in
16068 freebsd[123]*) objformat=aout ;;
16069 *) objformat=elf ;;
16070 esac
16071 fi
John Criswell7a73b802003-06-30 21:59:07 +000016072 version_type=freebsd-$objformat
16073 case $version_type in
16074 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016076 need_version=no
16077 need_lib_prefix=no
16078 ;;
16079 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016081 need_version=yes
16082 ;;
16083 esac
16084 shlibpath_var=LD_LIBRARY_PATH
16085 case $host_os in
16086 freebsd2*)
16087 shlibpath_overrides_runpath=yes
16088 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016089 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016090 shlibpath_overrides_runpath=yes
16091 hardcode_into_libs=yes
16092 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016098 freebsd*) # from 4.6 on
16099 shlibpath_overrides_runpath=yes
16100 hardcode_into_libs=yes
16101 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016102 esac
16103 ;;
16104
16105gnu*)
16106 version_type=linux
16107 need_lib_prefix=no
16108 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016111 shlibpath_var=LD_LIBRARY_PATH
16112 hardcode_into_libs=yes
16113 ;;
16114
16115hpux9* | hpux10* | hpux11*)
16116 # Give a soname corresponding to the major version so that dld.sl refuses to
16117 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016118 version_type=sunos
16119 need_lib_prefix=no
16120 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016121 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016122 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016123 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016124 hardcode_into_libs=yes
16125 dynamic_linker="$host_os dld.so"
16126 shlibpath_var=LD_LIBRARY_PATH
16127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 if test "X$HPUX_IA64_MODE" = X32; then
16131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16132 else
16133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16134 fi
16135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16136 ;;
16137 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016138 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016139 hardcode_into_libs=yes
16140 dynamic_linker="$host_os dld.sl"
16141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16147 ;;
16148 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016149 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016150 dynamic_linker="$host_os dld.sl"
16151 shlibpath_var=SHLIB_PATH
16152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 ;;
16156 esac
John Criswell7a73b802003-06-30 21:59:07 +000016157 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16158 postinstall_cmds='chmod 555 $lib'
16159 ;;
16160
Reid Spencera773bd52006-08-04 18:18:08 +000016161interix3*)
16162 version_type=linux
16163 need_lib_prefix=no
16164 need_version=no
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 shlibpath_overrides_runpath=no
16170 hardcode_into_libs=yes
16171 ;;
16172
John Criswell47fdd832003-07-14 16:52:07 +000016173irix5* | irix6* | nonstopux*)
16174 case $host_os in
16175 nonstopux*) version_type=nonstopux ;;
16176 *)
16177 if test "$lt_cv_prog_gnu_ld" = yes; then
16178 version_type=linux
16179 else
16180 version_type=irix
16181 fi ;;
16182 esac
John Criswell7a73b802003-06-30 21:59:07 +000016183 need_lib_prefix=no
16184 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016185 soname_spec='${libname}${release}${shared_ext}$major'
16186 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 +000016187 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016188 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016189 libsuff= shlibsuff=
16190 ;;
16191 *)
16192 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16194 libsuff= shlibsuff= libmagic=32-bit;;
16195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16196 libsuff=32 shlibsuff=N32 libmagic=N32;;
16197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016199 *) libsuff= shlibsuff= libmagic=never-match;;
16200 esac
16201 ;;
16202 esac
16203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16204 shlibpath_overrides_runpath=no
16205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016207 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016208 ;;
16209
16210# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016211linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016212 dynamic_linker=no
16213 ;;
16214
16215# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016216linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016217 version_type=linux
16218 need_lib_prefix=no
16219 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16223 shlibpath_var=LD_LIBRARY_PATH
16224 shlibpath_overrides_runpath=no
16225 # This implies no fast_install, which is unacceptable.
16226 # Some rework will be needed to allow for fast_install
16227 # before this can be enabled.
16228 hardcode_into_libs=yes
16229
Reid Spencer2706f8c2004-09-19 23:53:36 +000016230 # Append ld.so.conf contents to the search path
16231 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016232 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 +000016233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16234 fi
16235
John Criswell7a73b802003-06-30 21:59:07 +000016236 # We used to test for /lib/ld.so.1 and disable shared libraries on
16237 # powerpc, because MkLinux only supported shared libraries with the
16238 # GNU dynamic linker. Since this was broken with cross compilers,
16239 # most powerpc-linux boxes support dynamic linking these days and
16240 # people can always --disable-shared, the test was removed, and we
16241 # assume the GNU/Linux dynamic linker is in use.
16242 dynamic_linker='GNU/Linux ld.so'
16243 ;;
16244
Reid Spencer2706f8c2004-09-19 23:53:36 +000016245knetbsd*-gnu)
16246 version_type=linux
16247 need_lib_prefix=no
16248 need_version=no
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=no
16253 hardcode_into_libs=yes
16254 dynamic_linker='GNU ld.so'
16255 ;;
16256
John Criswell7a73b802003-06-30 21:59:07 +000016257netbsd*)
16258 version_type=sunos
16259 need_lib_prefix=no
16260 need_version=no
16261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16264 dynamic_linker='NetBSD (a.out) ld.so'
16265 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016267 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016268 dynamic_linker='NetBSD ld.elf_so'
16269 fi
16270 shlibpath_var=LD_LIBRARY_PATH
16271 shlibpath_overrides_runpath=yes
16272 hardcode_into_libs=yes
16273 ;;
16274
16275newsos6)
16276 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath=yes
16280 ;;
16281
Reid Spencer2706f8c2004-09-19 23:53:36 +000016282nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016283 version_type=linux
16284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=yes
16290 ;;
16291
16292openbsd*)
16293 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016294 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016295 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16297 case $host_os in
16298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16299 *) need_version=no ;;
16300 esac
John Criswell47fdd832003-07-14 16:52:07 +000016301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16303 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016304 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 +000016305 case $host_os in
16306 openbsd2.[89] | openbsd2.[89].*)
16307 shlibpath_overrides_runpath=no
16308 ;;
16309 *)
16310 shlibpath_overrides_runpath=yes
16311 ;;
16312 esac
John Criswell7a73b802003-06-30 21:59:07 +000016313 else
16314 shlibpath_overrides_runpath=yes
16315 fi
John Criswell7a73b802003-06-30 21:59:07 +000016316 ;;
16317
16318os2*)
16319 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016320 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016321 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016322 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016323 dynamic_linker='OS/2 ld.exe'
16324 shlibpath_var=LIBPATH
16325 ;;
16326
16327osf3* | osf4* | osf5*)
16328 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016329 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016330 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016331 soname_spec='${libname}${release}${shared_ext}$major'
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016333 shlibpath_var=LD_LIBRARY_PATH
16334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16336 ;;
16337
John Criswell7a73b802003-06-30 21:59:07 +000016338solaris*)
16339 version_type=linux
16340 need_lib_prefix=no
16341 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=yes
16346 hardcode_into_libs=yes
16347 # ldd complains unless libraries are executable
16348 postinstall_cmds='chmod +x $lib'
16349 ;;
16350
16351sunos4*)
16352 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=yes
16357 if test "$with_gnu_ld" = yes; then
16358 need_lib_prefix=no
16359 fi
16360 need_version=yes
16361 ;;
16362
Reid Spencera773bd52006-08-04 18:18:08 +000016363sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016364 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016367 shlibpath_var=LD_LIBRARY_PATH
16368 case $host_vendor in
16369 sni)
16370 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016371 need_lib_prefix=no
16372 export_dynamic_flag_spec='${wl}-Blargedynsym'
16373 runpath_var=LD_RUN_PATH
16374 ;;
16375 siemens)
16376 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016377 ;;
16378 motorola)
16379 need_lib_prefix=no
16380 need_version=no
16381 shlibpath_overrides_runpath=no
16382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16383 ;;
16384 esac
16385 ;;
16386
John Criswell7a73b802003-06-30 21:59:07 +000016387sysv4*MP*)
16388 if test -d /usr/nec ;then
16389 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16391 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016392 shlibpath_var=LD_LIBRARY_PATH
16393 fi
16394 ;;
16395
Reid Spencera773bd52006-08-04 18:18:08 +000016396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16397 version_type=freebsd-elf
16398 need_lib_prefix=no
16399 need_version=no
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 hardcode_into_libs=yes
16404 if test "$with_gnu_ld" = yes; then
16405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16406 shlibpath_overrides_runpath=no
16407 else
16408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16409 shlibpath_overrides_runpath=yes
16410 case $host_os in
16411 sco3.2v5*)
16412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16413 ;;
16414 esac
16415 fi
16416 sys_lib_dlsearch_path_spec='/usr/lib'
16417 ;;
16418
John Criswell47fdd832003-07-14 16:52:07 +000016419uts4*)
16420 version_type=linux
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 ;;
16425
John Criswell7a73b802003-06-30 21:59:07 +000016426*)
16427 dynamic_linker=no
16428 ;;
16429esac
Reid Spencera773bd52006-08-04 18:18:08 +000016430{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16431echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016432test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016433
Reid Spencera773bd52006-08-04 18:18:08 +000016434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16435if test "$GCC" = yes; then
16436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16437fi
16438
16439{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16440echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016441hardcode_action=
16442if test -n "$hardcode_libdir_flag_spec" || \
16443 test -n "$runpath_var" || \
16444 test "X$hardcode_automatic" = "Xyes" ; then
16445
16446 # We can hardcode non-existant directories.
16447 if test "$hardcode_direct" != no &&
16448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16449 # have to relink, otherwise we might link with an installed library
16450 # when we should be linking with a yet-to-be-installed one
16451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16452 test "$hardcode_minus_L" != no; then
16453 # Linking always hardcodes the temporary library directory.
16454 hardcode_action=relink
16455 else
16456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16457 hardcode_action=immediate
16458 fi
16459else
16460 # We cannot hardcode anything, or else we can only hardcode existing
16461 # directories.
16462 hardcode_action=unsupported
16463fi
Reid Spencera773bd52006-08-04 18:18:08 +000016464{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16465echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016466
16467if test "$hardcode_action" = relink; then
16468 # Fast installation is not supported
16469 enable_fast_install=no
16470elif test "$shlibpath_overrides_runpath" = yes ||
16471 test "$enable_shared" = no; then
16472 # Fast installation is not necessary
16473 enable_fast_install=needless
16474fi
16475
16476striplib=
16477old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016478{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16479echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016480if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16481 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16482 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016483 { echo "$as_me:$LINENO: result: yes" >&5
16484echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016485else
16486# FIXME - insert some real tests, host_os isn't really good enough
16487 case $host_os in
16488 darwin*)
16489 if test -n "$STRIP" ; then
16490 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016491 { echo "$as_me:$LINENO: result: yes" >&5
16492echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016493 else
Reid Spencera773bd52006-08-04 18:18:08 +000016494 { echo "$as_me:$LINENO: result: no" >&5
16495echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016496fi
16497 ;;
16498 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016499 { echo "$as_me:$LINENO: result: no" >&5
16500echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016501 ;;
16502 esac
16503fi
16504
John Criswell7a73b802003-06-30 21:59:07 +000016505if test "x$enable_dlopen" != xyes; then
16506 enable_dlopen=unknown
16507 enable_dlopen_self=unknown
16508 enable_dlopen_self_static=unknown
16509else
16510 lt_cv_dlopen=no
16511 lt_cv_dlopen_libs=
16512
16513 case $host_os in
16514 beos*)
16515 lt_cv_dlopen="load_add_on"
16516 lt_cv_dlopen_libs=
16517 lt_cv_dlopen_self=yes
16518 ;;
16519
John Criswell47fdd832003-07-14 16:52:07 +000016520 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016521 lt_cv_dlopen="LoadLibrary"
16522 lt_cv_dlopen_libs=
16523 ;;
16524
John Criswell47fdd832003-07-14 16:52:07 +000016525 cygwin*)
16526 lt_cv_dlopen="dlopen"
16527 lt_cv_dlopen_libs=
16528 ;;
16529
16530 darwin*)
16531 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016532 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16533echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016534if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536else
16537 ac_check_lib_save_LIBS=$LIBS
16538LIBS="-ldl $LIBS"
16539cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016545
Reid Spencera773bd52006-08-04 18:18:08 +000016546/* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016549#ifdef __cplusplus
16550extern "C"
16551#endif
John Criswell47fdd832003-07-14 16:52:07 +000016552char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016553int
16554main ()
16555{
Reid Spencera773bd52006-08-04 18:18:08 +000016556return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016557 ;
16558 return 0;
16559}
16560_ACEOF
16561rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016562if { (ac_try="$ac_link"
16563case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566esac
16567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016569 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016570 grep -v '^ *+' conftest.er1 >conftest.err
16571 rm -f conftest.er1
16572 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579esac
16580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589esac
16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_cv_lib_dl_dlopen=yes
16596else
16597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016598sed 's/^/| /' conftest.$ac_ext >&5
16599
Reid Spencera773bd52006-08-04 18:18:08 +000016600 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016601fi
Reid Spencera773bd52006-08-04 18:18:08 +000016602
16603rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016604 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016605LIBS=$ac_check_lib_save_LIBS
16606fi
Reid Spencera773bd52006-08-04 18:18:08 +000016607{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016609if test $ac_cv_lib_dl_dlopen = yes; then
16610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16611else
16612
16613 lt_cv_dlopen="dyld"
16614 lt_cv_dlopen_libs=
16615 lt_cv_dlopen_self=yes
16616
16617fi
16618
16619 ;;
16620
John Criswell7a73b802003-06-30 21:59:07 +000016621 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016622 { echo "$as_me:$LINENO: checking for shl_load" >&5
16623echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016624if test "${ac_cv_func_shl_load+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626else
16627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016628/* confdefs.h. */
16629_ACEOF
16630cat confdefs.h >>conftest.$ac_ext
16631cat >>conftest.$ac_ext <<_ACEOF
16632/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016633/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16635#define shl_load innocuous_shl_load
16636
John Criswell7a73b802003-06-30 21:59:07 +000016637/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016638 which can conflict with char shl_load (); below.
16639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016641
John Criswell0c38eaf2003-09-10 15:17:25 +000016642#ifdef __STDC__
16643# include <limits.h>
16644#else
16645# include <assert.h>
16646#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647
16648#undef shl_load
16649
Reid Spencera773bd52006-08-04 18:18:08 +000016650/* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016653#ifdef __cplusplus
16654extern "C"
16655#endif
John Criswell7a73b802003-06-30 21:59:07 +000016656char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016657/* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016660#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016661choke me
John Criswell7a73b802003-06-30 21:59:07 +000016662#endif
16663
John Criswell0c38eaf2003-09-10 15:17:25 +000016664int
16665main ()
16666{
Reid Spencera773bd52006-08-04 18:18:08 +000016667return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016668 ;
16669 return 0;
16670}
16671_ACEOF
16672rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016673if { (ac_try="$ac_link"
16674case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677esac
16678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16687 { (case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690esac
16691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; } &&
16696 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_cv_func_shl_load=yes
16707else
16708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016709sed 's/^/| /' conftest.$ac_ext >&5
16710
Reid Spencera773bd52006-08-04 18:18:08 +000016711 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016712fi
Reid Spencera773bd52006-08-04 18:18:08 +000016713
16714rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016715 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016716fi
Reid Spencera773bd52006-08-04 18:18:08 +000016717{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16718echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016719if test $ac_cv_func_shl_load = yes; then
16720 lt_cv_dlopen="shl_load"
16721else
Reid Spencera773bd52006-08-04 18:18:08 +000016722 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16723echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016724if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726else
16727 ac_check_lib_save_LIBS=$LIBS
16728LIBS="-ldld $LIBS"
16729cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016735
Reid Spencera773bd52006-08-04 18:18:08 +000016736/* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016739#ifdef __cplusplus
16740extern "C"
16741#endif
John Criswell7a73b802003-06-30 21:59:07 +000016742char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016743int
16744main ()
16745{
Reid Spencera773bd52006-08-04 18:18:08 +000016746return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016747 ;
16748 return 0;
16749}
16750_ACEOF
16751rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016752if { (ac_try="$ac_link"
16753case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16769esac
16770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016776 { (case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16779esac
16780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_lib_dld_shl_load=yes
16786else
16787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016788sed 's/^/| /' conftest.$ac_ext >&5
16789
Reid Spencera773bd52006-08-04 18:18:08 +000016790 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016791fi
Reid Spencera773bd52006-08-04 18:18:08 +000016792
16793rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016794 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016795LIBS=$ac_check_lib_save_LIBS
16796fi
Reid Spencera773bd52006-08-04 18:18:08 +000016797{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16798echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016799if test $ac_cv_lib_dld_shl_load = yes; then
16800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16801else
Reid Spencera773bd52006-08-04 18:18:08 +000016802 { echo "$as_me:$LINENO: checking for dlopen" >&5
16803echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016804if test "${ac_cv_func_dlopen+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
16807 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016808/* confdefs.h. */
16809_ACEOF
16810cat confdefs.h >>conftest.$ac_ext
16811cat >>conftest.$ac_ext <<_ACEOF
16812/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016813/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16815#define dlopen innocuous_dlopen
16816
John Criswell7a73b802003-06-30 21:59:07 +000016817/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016818 which can conflict with char dlopen (); below.
16819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16820 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016821
John Criswell0c38eaf2003-09-10 15:17:25 +000016822#ifdef __STDC__
16823# include <limits.h>
16824#else
16825# include <assert.h>
16826#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016827
16828#undef dlopen
16829
Reid Spencera773bd52006-08-04 18:18:08 +000016830/* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016833#ifdef __cplusplus
16834extern "C"
16835#endif
John Criswell7a73b802003-06-30 21:59:07 +000016836char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016837/* The GNU C library defines this for functions which it implements
16838 to always fail with ENOSYS. Some functions are actually named
16839 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016840#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016841choke me
John Criswell7a73b802003-06-30 21:59:07 +000016842#endif
16843
John Criswell0c38eaf2003-09-10 15:17:25 +000016844int
16845main ()
16846{
Reid Spencera773bd52006-08-04 18:18:08 +000016847return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016853if { (ac_try="$ac_link"
16854case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16857esac
16858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_func_dlopen=yes
16887else
16888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016889sed 's/^/| /' conftest.$ac_ext >&5
16890
Reid Spencera773bd52006-08-04 18:18:08 +000016891 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016892fi
Reid Spencera773bd52006-08-04 18:18:08 +000016893
16894rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016896fi
Reid Spencera773bd52006-08-04 18:18:08 +000016897{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16898echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016899if test $ac_cv_func_dlopen = yes; then
16900 lt_cv_dlopen="dlopen"
16901else
Reid Spencera773bd52006-08-04 18:18:08 +000016902 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16903echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016904if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906else
16907 ac_check_lib_save_LIBS=$LIBS
16908LIBS="-ldl $LIBS"
16909cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016915
Reid Spencera773bd52006-08-04 18:18:08 +000016916/* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016919#ifdef __cplusplus
16920extern "C"
16921#endif
John Criswell7a73b802003-06-30 21:59:07 +000016922char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016923int
16924main ()
16925{
Reid Spencera773bd52006-08-04 18:18:08 +000016926return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016932if { (ac_try="$ac_link"
16933case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_lib_dl_dlopen=yes
16966else
16967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016968sed 's/^/| /' conftest.$ac_ext >&5
16969
Reid Spencera773bd52006-08-04 18:18:08 +000016970 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016971fi
Reid Spencera773bd52006-08-04 18:18:08 +000016972
16973rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016975LIBS=$ac_check_lib_save_LIBS
16976fi
Reid Spencera773bd52006-08-04 18:18:08 +000016977{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16978echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016979if test $ac_cv_lib_dl_dlopen = yes; then
16980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16981else
Reid Spencera773bd52006-08-04 18:18:08 +000016982 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16983echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016984if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986else
16987 ac_check_lib_save_LIBS=$LIBS
16988LIBS="-lsvld $LIBS"
16989cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016995
Reid Spencera773bd52006-08-04 18:18:08 +000016996/* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016999#ifdef __cplusplus
17000extern "C"
17001#endif
John Criswell7a73b802003-06-30 21:59:07 +000017002char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017003int
17004main ()
17005{
Reid Spencera773bd52006-08-04 18:18:08 +000017006return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017007 ;
17008 return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017012if { (ac_try="$ac_link"
17013case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017019 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_svld_dlopen=yes
17046else
17047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017048sed 's/^/| /' conftest.$ac_ext >&5
17049
Reid Spencera773bd52006-08-04 18:18:08 +000017050 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017051fi
Reid Spencera773bd52006-08-04 18:18:08 +000017052
17053rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017054 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017055LIBS=$ac_check_lib_save_LIBS
17056fi
Reid Spencera773bd52006-08-04 18:18:08 +000017057{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17058echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017059if test $ac_cv_lib_svld_dlopen = yes; then
17060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17061else
Reid Spencera773bd52006-08-04 18:18:08 +000017062 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17063echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017064if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17066else
17067 ac_check_lib_save_LIBS=$LIBS
17068LIBS="-ldld $LIBS"
17069cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017075
Reid Spencera773bd52006-08-04 18:18:08 +000017076/* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017079#ifdef __cplusplus
17080extern "C"
17081#endif
John Criswell7a73b802003-06-30 21:59:07 +000017082char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017083int
17084main ()
17085{
Reid Spencera773bd52006-08-04 18:18:08 +000017086return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017087 ;
17088 return 0;
17089}
17090_ACEOF
17091rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017092if { (ac_try="$ac_link"
17093case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017116 { (case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17119esac
17120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_lib_dld_dld_link=yes
17126else
17127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017128sed 's/^/| /' conftest.$ac_ext >&5
17129
Reid Spencera773bd52006-08-04 18:18:08 +000017130 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017131fi
Reid Spencera773bd52006-08-04 18:18:08 +000017132
17133rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017134 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017135LIBS=$ac_check_lib_save_LIBS
17136fi
Reid Spencera773bd52006-08-04 18:18:08 +000017137{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17138echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017139if test $ac_cv_lib_dld_dld_link = yes; then
17140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17141fi
17142
17143
17144fi
17145
17146
17147fi
17148
17149
17150fi
17151
17152
17153fi
17154
17155
17156fi
17157
17158 ;;
17159 esac
17160
17161 if test "x$lt_cv_dlopen" != xno; then
17162 enable_dlopen=yes
17163 else
17164 enable_dlopen=no
17165 fi
17166
17167 case $lt_cv_dlopen in
17168 dlopen)
17169 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017171
17172 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017174
17175 save_LIBS="$LIBS"
17176 LIBS="$lt_cv_dlopen_libs $LIBS"
17177
Reid Spencera773bd52006-08-04 18:18:08 +000017178 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17179echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017180if test "${lt_cv_dlopen_self+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182else
17183 if test "$cross_compiling" = yes; then :
17184 lt_cv_dlopen_self=cross
17185else
John Criswell47fdd832003-07-14 16:52:07 +000017186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017187 lt_status=$lt_dlunknown
17188 cat > conftest.$ac_ext <<EOF
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000017189#line 17189 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017190#include "confdefs.h"
17191
17192#if HAVE_DLFCN_H
17193#include <dlfcn.h>
17194#endif
17195
17196#include <stdio.h>
17197
17198#ifdef RTLD_GLOBAL
17199# define LT_DLGLOBAL RTLD_GLOBAL
17200#else
17201# ifdef DL_GLOBAL
17202# define LT_DLGLOBAL DL_GLOBAL
17203# else
17204# define LT_DLGLOBAL 0
17205# endif
17206#endif
17207
17208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17209 find out it does not work in some platform. */
17210#ifndef LT_DLLAZY_OR_NOW
17211# ifdef RTLD_LAZY
17212# define LT_DLLAZY_OR_NOW RTLD_LAZY
17213# else
17214# ifdef DL_LAZY
17215# define LT_DLLAZY_OR_NOW DL_LAZY
17216# else
17217# ifdef RTLD_NOW
17218# define LT_DLLAZY_OR_NOW RTLD_NOW
17219# else
17220# ifdef DL_NOW
17221# define LT_DLLAZY_OR_NOW DL_NOW
17222# else
17223# define LT_DLLAZY_OR_NOW 0
17224# endif
17225# endif
17226# endif
17227# endif
17228#endif
17229
17230#ifdef __cplusplus
17231extern "C" void exit (int);
17232#endif
17233
17234void fnord() { int i=42;}
17235int main ()
17236{
17237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17238 int status = $lt_dlunknown;
17239
17240 if (self)
17241 {
17242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17244 /* dlclose (self); */
17245 }
Reid Spencera773bd52006-08-04 18:18:08 +000017246 else
17247 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017248
17249 exit (status);
17250}
17251EOF
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017257 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017258 lt_status=$?
17259 case x$lt_status in
17260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017263 esac
17264 else :
17265 # compilation failed
17266 lt_cv_dlopen_self=no
17267 fi
17268fi
17269rm -fr conftest*
17270
17271
17272fi
Reid Spencera773bd52006-08-04 18:18:08 +000017273{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17274echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017275
17276 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17278 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17279echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017280if test "${lt_cv_dlopen_self_static+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282else
17283 if test "$cross_compiling" = yes; then :
17284 lt_cv_dlopen_self_static=cross
17285else
John Criswell47fdd832003-07-14 16:52:07 +000017286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017287 lt_status=$lt_dlunknown
17288 cat > conftest.$ac_ext <<EOF
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000017289#line 17289 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017290#include "confdefs.h"
17291
17292#if HAVE_DLFCN_H
17293#include <dlfcn.h>
17294#endif
17295
17296#include <stdio.h>
17297
17298#ifdef RTLD_GLOBAL
17299# define LT_DLGLOBAL RTLD_GLOBAL
17300#else
17301# ifdef DL_GLOBAL
17302# define LT_DLGLOBAL DL_GLOBAL
17303# else
17304# define LT_DLGLOBAL 0
17305# endif
17306#endif
17307
17308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17309 find out it does not work in some platform. */
17310#ifndef LT_DLLAZY_OR_NOW
17311# ifdef RTLD_LAZY
17312# define LT_DLLAZY_OR_NOW RTLD_LAZY
17313# else
17314# ifdef DL_LAZY
17315# define LT_DLLAZY_OR_NOW DL_LAZY
17316# else
17317# ifdef RTLD_NOW
17318# define LT_DLLAZY_OR_NOW RTLD_NOW
17319# else
17320# ifdef DL_NOW
17321# define LT_DLLAZY_OR_NOW DL_NOW
17322# else
17323# define LT_DLLAZY_OR_NOW 0
17324# endif
17325# endif
17326# endif
17327# endif
17328#endif
17329
17330#ifdef __cplusplus
17331extern "C" void exit (int);
17332#endif
17333
17334void fnord() { int i=42;}
17335int main ()
17336{
17337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17338 int status = $lt_dlunknown;
17339
17340 if (self)
17341 {
17342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17344 /* dlclose (self); */
17345 }
Reid Spencera773bd52006-08-04 18:18:08 +000017346 else
17347 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017348
17349 exit (status);
17350}
17351EOF
17352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17353 (eval $ac_link) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017357 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017358 lt_status=$?
17359 case x$lt_status in
17360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017362 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017363 esac
17364 else :
17365 # compilation failed
17366 lt_cv_dlopen_self_static=no
17367 fi
17368fi
17369rm -fr conftest*
17370
17371
17372fi
Reid Spencera773bd52006-08-04 18:18:08 +000017373{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17374echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017375 fi
17376
17377 CPPFLAGS="$save_CPPFLAGS"
17378 LDFLAGS="$save_LDFLAGS"
17379 LIBS="$save_LIBS"
17380 ;;
17381 esac
17382
17383 case $lt_cv_dlopen_self in
17384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17385 *) enable_dlopen_self=unknown ;;
17386 esac
17387
17388 case $lt_cv_dlopen_self_static in
17389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17390 *) enable_dlopen_self_static=unknown ;;
17391 esac
17392fi
17393
17394
Reid Spencera773bd52006-08-04 18:18:08 +000017395# Report which library types will actually be built
17396{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17397echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17398{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17399echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017400
Reid Spencera773bd52006-08-04 18:18:08 +000017401{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17402echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017403test "$can_build_shared" = "no" && enable_shared=no
17404
17405# On AIX, shared libraries and static libraries use the same namespace, and
17406# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017407case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017408aix3*)
17409 test "$enable_shared" = yes && enable_static=no
17410 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017412 postinstall_cmds='$RANLIB $lib'
17413 fi
17414 ;;
17415
Reid Spencer2706f8c2004-09-19 23:53:36 +000017416aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17418 test "$enable_shared" = yes && enable_static=no
17419 fi
John Criswell7a73b802003-06-30 21:59:07 +000017420 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017421esac
Reid Spencera773bd52006-08-04 18:18:08 +000017422{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17423echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017424
Reid Spencera773bd52006-08-04 18:18:08 +000017425{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17426echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017427# Make sure either enable_shared or enable_static is yes.
17428test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017429{ echo "$as_me:$LINENO: result: $enable_static" >&5
17430echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017431
17432# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017433# libtool distribution, otherwise you forgot to ship ltmain.sh
17434# with your package, and you will get complaints that there are
17435# no rules to generate ltmain.sh.
17436if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017437 # See if we are running on zsh, and set the options which allow our commands through
17438 # without removal of \ escapes.
17439 if test -n "${ZSH_VERSION+set}" ; then
17440 setopt NO_GLOB_SUBST
17441 fi
John Criswell7a73b802003-06-30 21:59:07 +000017442 # Now quote all the things that may contain metacharacters while being
17443 # careful not to overquote the AC_SUBSTed values. We take copies of the
17444 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017445 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 +000017446 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17449 deplibs_check_method reload_flag reload_cmds need_locks \
17450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17451 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017453 old_postinstall_cmds old_postuninstall_cmds \
17454 compiler \
17455 CC \
17456 LD \
17457 lt_prog_compiler_wl \
17458 lt_prog_compiler_pic \
17459 lt_prog_compiler_static \
17460 lt_prog_compiler_no_builtin_flag \
17461 export_dynamic_flag_spec \
17462 thread_safe_flag_spec \
17463 whole_archive_flag_spec \
17464 enable_shared_with_static_runtimes \
17465 old_archive_cmds \
17466 old_archive_from_new_cmds \
17467 predep_objects \
17468 postdep_objects \
17469 predeps \
17470 postdeps \
17471 compiler_lib_search_path \
17472 archive_cmds \
17473 archive_expsym_cmds \
17474 postinstall_cmds \
17475 postuninstall_cmds \
17476 old_archive_from_expsyms_cmds \
17477 allow_undefined_flag \
17478 no_undefined_flag \
17479 export_symbols_cmds \
17480 hardcode_libdir_flag_spec \
17481 hardcode_libdir_flag_spec_ld \
17482 hardcode_libdir_separator \
17483 hardcode_automatic \
17484 module_cmds \
17485 module_expsym_cmds \
17486 lt_cv_prog_compiler_c_o \
17487 exclude_expsyms \
17488 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017489
17490 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017491 old_archive_cmds | \
17492 old_archive_from_new_cmds | \
17493 archive_cmds | \
17494 archive_expsym_cmds | \
17495 module_cmds | \
17496 module_expsym_cmds | \
17497 old_archive_from_expsyms_cmds | \
17498 export_symbols_cmds | \
17499 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017500 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017501 old_postinstall_cmds | old_postuninstall_cmds | \
17502 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017503 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017504 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 +000017505 ;;
17506 *)
17507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17508 ;;
17509 esac
17510 done
17511
John Criswell47fdd832003-07-14 16:52:07 +000017512 case $lt_echo in
17513 *'\$0 --fallback-echo"')
17514 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17515 ;;
17516 esac
17517
17518cfgfile="${ofile}T"
17519 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17520 $rm -f "$cfgfile"
17521 { echo "$as_me:$LINENO: creating $ofile" >&5
17522echo "$as_me: creating $ofile" >&6;}
17523
17524 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017525#! $SHELL
17526
John Criswell47fdd832003-07-14 16:52:07 +000017527# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017528# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17529# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17530#
John Criswell47fdd832003-07-14 16:52:07 +000017531# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17532# Free Software Foundation, Inc.
17533#
17534# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017535# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17536#
17537# This program is free software; you can redistribute it and/or modify
17538# it under the terms of the GNU General Public License as published by
17539# the Free Software Foundation; either version 2 of the License, or
17540# (at your option) any later version.
17541#
17542# This program is distributed in the hope that it will be useful, but
17543# WITHOUT ANY WARRANTY; without even the implied warranty of
17544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17545# General Public License for more details.
17546#
17547# You should have received a copy of the GNU General Public License
17548# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017549# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017550#
17551# As a special exception to the GNU General Public License, if you
17552# distribute this file as part of a program that contains a
17553# configuration script generated by Autoconf, you may include it under
17554# the same distribution terms that you use for the rest of that program.
17555
John Criswell47fdd832003-07-14 16:52:07 +000017556# A sed program that does not truncate output.
17557SED=$lt_SED
17558
John Criswell7a73b802003-06-30 21:59:07 +000017559# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017560Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017561
17562# The HP-UX ksh and POSIX shell print the target directory to stdout
17563# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017565
John Criswell47fdd832003-07-14 16:52:07 +000017566# The names of the tagged configurations supported by this script.
17567available_tags=
17568
John Criswell7a73b802003-06-30 21:59:07 +000017569# ### BEGIN LIBTOOL CONFIG
17570
17571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17572
17573# Shell to use when invoking shell scripts.
17574SHELL=$lt_SHELL
17575
17576# Whether or not to build shared libraries.
17577build_libtool_libs=$enable_shared
17578
17579# Whether or not to build static libraries.
17580build_old_libs=$enable_static
17581
17582# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017583build_libtool_need_lc=$archive_cmds_need_lc
17584
17585# Whether or not to disallow shared libs when runtime libs are static
17586allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017587
17588# Whether or not to optimize for fast installation.
17589fast_install=$enable_fast_install
17590
17591# The host system.
17592host_alias=$host_alias
17593host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017594host_os=$host_os
17595
17596# The build system.
17597build_alias=$build_alias
17598build=$build
17599build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017600
17601# An echo program that does not interpret backslashes.
17602echo=$lt_echo
17603
17604# The archiver.
17605AR=$lt_AR
17606AR_FLAGS=$lt_AR_FLAGS
17607
John Criswell47fdd832003-07-14 16:52:07 +000017608# A C compiler.
17609LTCC=$lt_LTCC
17610
Reid Spencera773bd52006-08-04 18:18:08 +000017611# LTCC compiler flags.
17612LTCFLAGS=$lt_LTCFLAGS
17613
John Criswell47fdd832003-07-14 16:52:07 +000017614# A language-specific compiler.
17615CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017616
17617# Is the compiler the GNU C compiler?
17618with_gcc=$GCC
17619
John Criswell47fdd832003-07-14 16:52:07 +000017620# An ERE matcher.
17621EGREP=$lt_EGREP
17622
John Criswell7a73b802003-06-30 21:59:07 +000017623# The linker used to build libraries.
17624LD=$lt_LD
17625
17626# Whether we need hard or soft links.
17627LN_S=$lt_LN_S
17628
17629# A BSD-compatible nm program.
17630NM=$lt_NM
17631
17632# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017633STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017634
17635# Used to examine libraries when file_magic_cmd begins "file"
17636MAGIC_CMD=$MAGIC_CMD
17637
17638# Used on cygwin: DLL creation program.
17639DLLTOOL="$DLLTOOL"
17640
17641# Used on cygwin: object dumper.
17642OBJDUMP="$OBJDUMP"
17643
17644# Used on cygwin: assembler.
17645AS="$AS"
17646
17647# The name of the directory that contains temporary libtool files.
17648objdir=$objdir
17649
17650# How to create reloadable object files.
17651reload_flag=$lt_reload_flag
17652reload_cmds=$lt_reload_cmds
17653
17654# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017655wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017656
17657# Object file suffix (normally "o").
17658objext="$ac_objext"
17659
17660# Old archive suffix (normally "a").
17661libext="$libext"
17662
John Criswell47fdd832003-07-14 16:52:07 +000017663# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017664shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017665
John Criswell7a73b802003-06-30 21:59:07 +000017666# Executable file suffix (normally "").
17667exeext="$exeext"
17668
17669# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017670pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017671pic_mode=$pic_mode
17672
John Criswell47fdd832003-07-14 16:52:07 +000017673# What is the maximum length of a command?
17674max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017675
John Criswell47fdd832003-07-14 16:52:07 +000017676# Does compiler simultaneously support -c and -o options?
17677compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017678
Reid Spencera773bd52006-08-04 18:18:08 +000017679# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017680need_locks=$lt_need_locks
17681
17682# Do we need the lib prefix for modules?
17683need_lib_prefix=$need_lib_prefix
17684
17685# Do we need a version for libraries?
17686need_version=$need_version
17687
17688# Whether dlopen is supported.
17689dlopen_support=$enable_dlopen
17690
17691# Whether dlopen of programs is supported.
17692dlopen_self=$enable_dlopen_self
17693
17694# Whether dlopen of statically linked programs is supported.
17695dlopen_self_static=$enable_dlopen_self_static
17696
17697# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017698link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017699
17700# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017702
17703# Compiler flag to allow reflexive dlopens.
17704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17705
17706# Compiler flag to generate shared objects directly from archives.
17707whole_archive_flag_spec=$lt_whole_archive_flag_spec
17708
17709# Compiler flag to generate thread-safe objects.
17710thread_safe_flag_spec=$lt_thread_safe_flag_spec
17711
17712# Library versioning type.
17713version_type=$version_type
17714
17715# Format of library name prefix.
17716libname_spec=$lt_libname_spec
17717
17718# List of archive names. First name is the real one, the rest are links.
17719# The last name is the one that the linker finds with -lNAME.
17720library_names_spec=$lt_library_names_spec
17721
17722# The coded name of the library, if different from the real name.
17723soname_spec=$lt_soname_spec
17724
17725# Commands used to build and install an old-style archive.
17726RANLIB=$lt_RANLIB
17727old_archive_cmds=$lt_old_archive_cmds
17728old_postinstall_cmds=$lt_old_postinstall_cmds
17729old_postuninstall_cmds=$lt_old_postuninstall_cmds
17730
17731# Create an old-style archive from a shared archive.
17732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17733
17734# Create a temporary old-style archive to link instead of a shared archive.
17735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17736
17737# Commands used to build and install a shared archive.
17738archive_cmds=$lt_archive_cmds
17739archive_expsym_cmds=$lt_archive_expsym_cmds
17740postinstall_cmds=$lt_postinstall_cmds
17741postuninstall_cmds=$lt_postuninstall_cmds
17742
John Criswell47fdd832003-07-14 16:52:07 +000017743# Commands used to build a loadable module (assumed same as above if empty)
17744module_cmds=$lt_module_cmds
17745module_expsym_cmds=$lt_module_expsym_cmds
17746
John Criswell7a73b802003-06-30 21:59:07 +000017747# Commands to strip libraries.
17748old_striplib=$lt_old_striplib
17749striplib=$lt_striplib
17750
John Criswell47fdd832003-07-14 16:52:07 +000017751# Dependencies to place before the objects being linked to create a
17752# shared library.
17753predep_objects=$lt_predep_objects
17754
17755# Dependencies to place after the objects being linked to create a
17756# shared library.
17757postdep_objects=$lt_postdep_objects
17758
17759# Dependencies to place before the objects being linked to create a
17760# shared library.
17761predeps=$lt_predeps
17762
17763# Dependencies to place after the objects being linked to create a
17764# shared library.
17765postdeps=$lt_postdeps
17766
17767# The library search path used internally by the compiler when linking
17768# a shared library.
17769compiler_lib_search_path=$lt_compiler_lib_search_path
17770
John Criswell7a73b802003-06-30 21:59:07 +000017771# Method to check whether dependent libraries are shared objects.
17772deplibs_check_method=$lt_deplibs_check_method
17773
17774# Command to use when deplibs_check_method == file_magic.
17775file_magic_cmd=$lt_file_magic_cmd
17776
17777# Flag that allows shared libraries with undefined symbols to be built.
17778allow_undefined_flag=$lt_allow_undefined_flag
17779
17780# Flag that forces no undefined symbols.
17781no_undefined_flag=$lt_no_undefined_flag
17782
17783# Commands used to finish a libtool library installation in a directory.
17784finish_cmds=$lt_finish_cmds
17785
17786# Same as above, but a single script fragment to be evaled but not shown.
17787finish_eval=$lt_finish_eval
17788
17789# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017791
17792# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017794
17795# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017797
17798# This is the shared library runtime path variable.
17799runpath_var=$runpath_var
17800
17801# This is the shared library path variable.
17802shlibpath_var=$shlibpath_var
17803
17804# Is shlibpath searched before the hard-coded library search path?
17805shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17806
17807# How to hardcode a shared library path into an executable.
17808hardcode_action=$hardcode_action
17809
17810# Whether we should hardcode library paths into libraries.
17811hardcode_into_libs=$hardcode_into_libs
17812
17813# Flag to hardcode \$libdir into a binary during linking.
17814# This must work even if \$libdir does not exist.
17815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17816
John Criswell47fdd832003-07-14 16:52:07 +000017817# If ld is used when linking, flag to hardcode \$libdir into
17818# a binary during linking. This must work even if \$libdir does
17819# not exist.
17820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17821
John Criswell7a73b802003-06-30 21:59:07 +000017822# Whether we need a single -rpath flag with a separated argument.
17823hardcode_libdir_separator=$lt_hardcode_libdir_separator
17824
John Criswell47fdd832003-07-14 16:52:07 +000017825# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017826# resulting binary.
17827hardcode_direct=$hardcode_direct
17828
17829# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17830# resulting binary.
17831hardcode_minus_L=$hardcode_minus_L
17832
17833# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17834# the resulting binary.
17835hardcode_shlibpath_var=$hardcode_shlibpath_var
17836
John Criswell47fdd832003-07-14 16:52:07 +000017837# Set to yes if building a shared library automatically hardcodes DIR into the library
17838# and all subsequent libraries and executables linked against it.
17839hardcode_automatic=$hardcode_automatic
17840
John Criswell7a73b802003-06-30 21:59:07 +000017841# Variables whose values should be saved in libtool wrapper scripts and
17842# restored at relink time.
17843variables_saved_for_relink="$variables_saved_for_relink"
17844
17845# Whether libtool must link a program against all its dependency libraries.
17846link_all_deplibs=$link_all_deplibs
17847
17848# Compile-time system search path for libraries
17849sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17850
17851# Run-time system search path for libraries
17852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17853
17854# Fix the shell variable \$srcfile for the compiler.
17855fix_srcfile_path="$fix_srcfile_path"
17856
17857# Set to yes if exported symbols are required.
17858always_export_symbols=$always_export_symbols
17859
17860# The commands to list exported symbols.
17861export_symbols_cmds=$lt_export_symbols_cmds
17862
17863# The commands to extract the exported symbol list from a shared archive.
17864extract_expsyms_cmds=$lt_extract_expsyms_cmds
17865
17866# Symbols that should not be listed in the preloaded symbols.
17867exclude_expsyms=$lt_exclude_expsyms
17868
17869# Symbols that must always be exported.
17870include_expsyms=$lt_include_expsyms
17871
17872# ### END LIBTOOL CONFIG
17873
17874__EOF__
17875
John Criswell47fdd832003-07-14 16:52:07 +000017876
John Criswell7a73b802003-06-30 21:59:07 +000017877 case $host_os in
17878 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017879 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017880
17881# AIX sometimes has problems with the GCC collect2 program. For some
17882# reason, if we set the COLLECT_NAMES environment variable, the problems
17883# vanish in a puff of smoke.
17884if test "X${COLLECT_NAMES+set}" != Xset; then
17885 COLLECT_NAMES=
17886 export COLLECT_NAMES
17887fi
17888EOF
17889 ;;
17890 esac
17891
John Criswell7a73b802003-06-30 21:59:07 +000017892 # We use sed instead of cat because bash on DJGPP gets confused if
17893 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17894 # text mode, it properly converts lines to CR/LF. This bash problem
17895 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017896 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017897
John Criswell47fdd832003-07-14 16:52:07 +000017898 mv -f "$cfgfile" "$ofile" || \
17899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017900 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017901
17902else
17903 # If there is no Makefile yet, we rely on a make rule to execute
17904 # `config.status --recheck' to rerun these tests and create the
17905 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17907 if test -f "$ltmain_in"; then
17908 test -f Makefile && make "$ltmain"
17909 fi
John Criswell7a73b802003-06-30 21:59:07 +000017910fi
John Criswell7a73b802003-06-30 21:59:07 +000017911
17912
John Criswell47fdd832003-07-14 16:52:07 +000017913ac_ext=c
17914ac_cpp='$CPP $CPPFLAGS'
17915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917ac_compiler_gnu=$ac_cv_c_compiler_gnu
17918
17919CC="$lt_save_CC"
17920
17921
Reid Spencera773bd52006-08-04 18:18:08 +000017922# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017923if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017924 withval=$with_tags; tagnames="$withval"
17925fi
17926
John Criswell47fdd832003-07-14 16:52:07 +000017927
17928if test -f "$ltmain" && test -n "$tagnames"; then
17929 if test ! -f "${ofile}"; then
17930 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17931echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17932 fi
17933
17934 if test -z "$LTCC"; then
17935 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17936 if test -z "$LTCC"; then
17937 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17938echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17939 else
17940 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17941echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17942 fi
17943 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017944 if test -z "$LTCFLAGS"; then
17945 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17946 fi
John Criswell47fdd832003-07-14 16:52:07 +000017947
17948 # Extract list of available tagged configurations in $ofile.
17949 # Note that this assumes the entire list is on one line.
17950 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17951
17952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17953 for tagname in $tagnames; do
17954 IFS="$lt_save_ifs"
17955 # Check whether tagname contains only valid characters
17956 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17957 "") ;;
17958 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17959echo "$as_me: error: invalid tag name: $tagname" >&2;}
17960 { (exit 1); exit 1; }; }
17961 ;;
17962 esac
17963
17964 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17965 then
17966 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17967echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17968 { (exit 1); exit 1; }; }
17969 fi
17970
17971 # Update the list of available tags.
17972 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017973 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017974
17975 case $tagname in
17976 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17979 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017980 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017981ac_cpp='$CXXCPP $CPPFLAGS'
17982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17985
17986
17987
17988
17989archive_cmds_need_lc_CXX=no
17990allow_undefined_flag_CXX=
17991always_export_symbols_CXX=no
17992archive_expsym_cmds_CXX=
17993export_dynamic_flag_spec_CXX=
17994hardcode_direct_CXX=no
17995hardcode_libdir_flag_spec_CXX=
17996hardcode_libdir_flag_spec_ld_CXX=
17997hardcode_libdir_separator_CXX=
17998hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017999hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018000hardcode_automatic_CXX=no
18001module_cmds_CXX=
18002module_expsym_cmds_CXX=
18003link_all_deplibs_CXX=unknown
18004old_archive_cmds_CXX=$old_archive_cmds
18005no_undefined_flag_CXX=
18006whole_archive_flag_spec_CXX=
18007enable_shared_with_static_runtimes_CXX=no
18008
18009# Dependencies to place before and after the object being linked:
18010predep_objects_CXX=
18011postdep_objects_CXX=
18012predeps_CXX=
18013postdeps_CXX=
18014compiler_lib_search_path_CXX=
18015
18016# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018017ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018018
18019# Object file extension for compiled C++ test sources.
18020objext=o
18021objext_CXX=$objext
18022
18023# Code to be used in simple compile tests
18024lt_simple_compile_test_code="int some_variable = 0;\n"
18025
18026# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018027lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018028
18029# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030
18031# If no C compiler was specified, use CC.
18032LTCC=${LTCC-"$CC"}
18033
Reid Spencera773bd52006-08-04 18:18:08 +000018034# If no C compiler flags were specified, use CFLAGS.
18035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18036
John Criswell47fdd832003-07-14 16:52:07 +000018037# Allow CC to be a program name with arguments.
18038compiler=$CC
18039
18040
Reid Spencera773bd52006-08-04 18:18:08 +000018041# save warnings/boilerplate of simple test code
18042ac_outfile=conftest.$ac_objext
18043printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18045_lt_compiler_boilerplate=`cat conftest.err`
18046$rm conftest*
18047
18048ac_outfile=conftest.$ac_objext
18049printf "$lt_simple_link_test_code" >conftest.$ac_ext
18050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18051_lt_linker_boilerplate=`cat conftest.err`
18052$rm conftest*
18053
18054
John Criswell47fdd832003-07-14 16:52:07 +000018055# Allow CC to be a program name with arguments.
18056lt_save_CC=$CC
18057lt_save_LD=$LD
18058lt_save_GCC=$GCC
18059GCC=$GXX
18060lt_save_with_gnu_ld=$with_gnu_ld
18061lt_save_path_LD=$lt_cv_path_LD
18062if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18064else
Reid Spencera773bd52006-08-04 18:18:08 +000018065 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018066fi
18067if test -n "${lt_cv_path_LDCXX+set}"; then
18068 lt_cv_path_LD=$lt_cv_path_LDCXX
18069else
Reid Spencera773bd52006-08-04 18:18:08 +000018070 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018071fi
18072test -z "${LDCXX+set}" || LD=$LDCXX
18073CC=${CXX-"c++"}
18074compiler=$CC
18075compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018076for cc_temp in $compiler""; do
18077 case $cc_temp in
18078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18080 \-*) ;;
18081 *) break;;
18082 esac
18083done
18084cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18085
John Criswell47fdd832003-07-14 16:52:07 +000018086
18087# We don't want -fno-exception wen compiling C++ code, so set the
18088# no_builtin_flag separately
18089if test "$GXX" = yes; then
18090 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18091else
18092 lt_prog_compiler_no_builtin_flag_CXX=
18093fi
18094
18095if test "$GXX" = yes; then
18096 # Set up default GNU C++ configuration
18097
18098
Reid Spencera773bd52006-08-04 18:18:08 +000018099# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018100if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018101 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018102else
18103 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018104fi
18105
John Criswell47fdd832003-07-14 16:52:07 +000018106ac_prog=ld
18107if test "$GCC" = yes; then
18108 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018109 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18110echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018111 case $host in
18112 *-*-mingw*)
18113 # gcc leaves a trailing carriage return which upsets mingw
18114 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18115 *)
18116 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18117 esac
18118 case $ac_prog in
18119 # Accept absolute paths.
18120 [\\/]* | ?:[\\/]*)
18121 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018122 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018123 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18124 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18125 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18126 done
18127 test -z "$LD" && LD="$ac_prog"
18128 ;;
18129 "")
18130 # If it fails, then pretend we aren't using GCC.
18131 ac_prog=ld
18132 ;;
18133 *)
18134 # If it is relative, then search for the first ld in PATH.
18135 with_gnu_ld=unknown
18136 ;;
18137 esac
18138elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018139 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18140echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018141else
Reid Spencera773bd52006-08-04 18:18:08 +000018142 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18143echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018144fi
18145if test "${lt_cv_path_LD+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 if test -z "$LD"; then
18149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18150 for ac_dir in $PATH; do
18151 IFS="$lt_save_ifs"
18152 test -z "$ac_dir" && ac_dir=.
18153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18154 lt_cv_path_LD="$ac_dir/$ac_prog"
18155 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018156 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018157 # Break only if it was the GNU/non-GNU ld that we prefer.
18158 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18159 *GNU* | *'with BFD'*)
18160 test "$with_gnu_ld" != no && break
18161 ;;
18162 *)
18163 test "$with_gnu_ld" != yes && break
18164 ;;
18165 esac
18166 fi
18167 done
18168 IFS="$lt_save_ifs"
18169else
18170 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18171fi
18172fi
18173
18174LD="$lt_cv_path_LD"
18175if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018176 { echo "$as_me:$LINENO: result: $LD" >&5
18177echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018178else
Reid Spencera773bd52006-08-04 18:18:08 +000018179 { echo "$as_me:$LINENO: result: no" >&5
18180echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018181fi
18182test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18183echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018185{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18186echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018187if test "${lt_cv_prog_gnu_ld+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189else
Reid Spencera773bd52006-08-04 18:18:08 +000018190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018191case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018192*GNU* | *'with BFD'*)
18193 lt_cv_prog_gnu_ld=yes
18194 ;;
18195*)
18196 lt_cv_prog_gnu_ld=no
18197 ;;
18198esac
18199fi
Reid Spencera773bd52006-08-04 18:18:08 +000018200{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18201echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018202with_gnu_ld=$lt_cv_prog_gnu_ld
18203
18204
18205
18206 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18207 # archiving commands below assume that GNU ld is being used.
18208 if test "$with_gnu_ld" = yes; then
18209 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210 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'
18211
18212 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18214
18215 # If archive_cmds runs LD, not CC, wlarc should be empty
18216 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18217 # investigate it a little bit more. (MM)
18218 wlarc='${wl}'
18219
18220 # ancient GNU ld didn't support --whole-archive et. al.
18221 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18222 grep 'no-whole-archive' > /dev/null; then
18223 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18224 else
18225 whole_archive_flag_spec_CXX=
18226 fi
18227 else
18228 with_gnu_ld=no
18229 wlarc=
18230
18231 # A generic and very simple default shared library creation
18232 # command for GNU C++ for the case where it uses the native
18233 # linker, instead of GNU ld. If possible, this setting should
18234 # overridden to take advantage of the native linker features on
18235 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018236 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018237 fi
18238
18239 # Commands to make compiler produce verbose output that lists
18240 # what "hidden" libraries, object files and flags are used when
18241 # linking a shared library.
18242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18243
18244else
18245 GXX=no
18246 with_gnu_ld=no
18247 wlarc=
18248fi
18249
18250# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018251{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18252echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018253ld_shlibs_CXX=yes
18254case $host_os in
18255 aix3*)
18256 # FIXME: insert proper C++ library support
18257 ld_shlibs_CXX=no
18258 ;;
18259 aix4* | aix5*)
18260 if test "$host_cpu" = ia64; then
18261 # On IA64, the linker does run time linking by default, so we don't
18262 # have to do anything special.
18263 aix_use_runtimelinking=no
18264 exp_sym_flag='-Bexport'
18265 no_entry_flag=""
18266 else
18267 aix_use_runtimelinking=no
18268
18269 # Test if we are trying to use run time linking or normal
18270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18271 # need to do runtime linking.
18272 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18273 for ld_flag in $LDFLAGS; do
18274 case $ld_flag in
18275 *-brtl*)
18276 aix_use_runtimelinking=yes
18277 break
18278 ;;
18279 esac
18280 done
Reid Spencera773bd52006-08-04 18:18:08 +000018281 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018282 esac
18283
18284 exp_sym_flag='-bexport'
18285 no_entry_flag='-bnoentry'
18286 fi
18287
18288 # When large executables or shared objects are built, AIX ld can
18289 # have problems creating the table of contents. If linking a library
18290 # or program results in "error TOC overflow" add -mminimal-toc to
18291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18293
18294 archive_cmds_CXX=''
18295 hardcode_direct_CXX=yes
18296 hardcode_libdir_separator_CXX=':'
18297 link_all_deplibs_CXX=yes
18298
18299 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018300 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018301 # We only want to do this on AIX 4.2 and lower, the check
18302 # below for broken collect2 doesn't work under 4.3+
18303 collect2name=`${CC} -print-prog-name=collect2`
18304 if test -f "$collect2name" && \
18305 strings "$collect2name" | grep resolve_lib_name >/dev/null
18306 then
18307 # We have reworked collect2
18308 hardcode_direct_CXX=yes
18309 else
18310 # We have old collect2
18311 hardcode_direct_CXX=unsupported
18312 # It fails to find uninstalled libraries when the uninstalled
18313 # path is not listed in the libpath. Setting hardcode_minus_L
18314 # to unsupported forces relinking
18315 hardcode_minus_L_CXX=yes
18316 hardcode_libdir_flag_spec_CXX='-L$libdir'
18317 hardcode_libdir_separator_CXX=
18318 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018319 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018320 esac
18321 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018322 if test "$aix_use_runtimelinking" = yes; then
18323 shared_flag="$shared_flag "'${wl}-G'
18324 fi
John Criswell47fdd832003-07-14 16:52:07 +000018325 else
18326 # not using gcc
18327 if test "$host_cpu" = ia64; then
18328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18329 # chokes on -Wl,-G. The following line is correct:
18330 shared_flag='-G'
18331 else
18332 if test "$aix_use_runtimelinking" = yes; then
18333 shared_flag='${wl}-G'
18334 else
18335 shared_flag='${wl}-bM:SRE'
18336 fi
18337 fi
18338 fi
18339
18340 # It seems that -bexpall does not export symbols beginning with
18341 # underscore (_), so it is better to generate a list of symbols to export.
18342 always_export_symbols_CXX=yes
18343 if test "$aix_use_runtimelinking" = yes; then
18344 # Warning - without using the other runtime loading flags (-brtl),
18345 # -berok will link without error, but may produce a broken library.
18346 allow_undefined_flag_CXX='-berok'
18347 # Determine the default libpath from the value encoded in an empty executable.
18348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
18353/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018354
John Criswell47fdd832003-07-14 16:52:07 +000018355int
18356main ()
18357{
18358
18359 ;
18360 return 0;
18361}
18362_ACEOF
18363rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018364if { (ac_try="$ac_link"
18365case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018372 grep -v '^ *+' conftest.er1 >conftest.err
18373 rm -f conftest.er1
18374 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381esac
18382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391esac
18392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397
18398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18399}'`
18400# Check for a 64-bit object if we didn't find anything.
18401if 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; }
18402}'`; fi
18403else
18404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018405sed 's/^/| /' conftest.$ac_ext >&5
18406
Reid Spencera773bd52006-08-04 18:18:08 +000018407
John Criswell47fdd832003-07-14 16:52:07 +000018408fi
Reid Spencera773bd52006-08-04 18:18:08 +000018409
18410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018411 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18413
18414 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18415
Reid Spencera773bd52006-08-04 18:18:08 +000018416 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 +000018417 else
18418 if test "$host_cpu" = ia64; then
18419 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18420 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018421 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 +000018422 else
18423 # Determine the default libpath from the value encoded in an empty executable.
18424 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018430
John Criswell47fdd832003-07-14 16:52:07 +000018431int
18432main ()
18433{
18434
18435 ;
18436 return 0;
18437}
18438_ACEOF
18439rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018440if { (ac_try="$ac_link"
18441case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444esac
18445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18454 { (case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18457esac
18458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467esac
18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473
18474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18475}'`
18476# Check for a 64-bit object if we didn't find anything.
18477if 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; }
18478}'`; fi
18479else
18480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018481sed 's/^/| /' conftest.$ac_ext >&5
18482
Reid Spencera773bd52006-08-04 18:18:08 +000018483
John Criswell47fdd832003-07-14 16:52:07 +000018484fi
Reid Spencera773bd52006-08-04 18:18:08 +000018485
18486rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018487 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018488if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18489
18490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18491 # Warning - without using the other run time loading flags,
18492 # -berok will link without error, but may produce a broken library.
18493 no_undefined_flag_CXX=' ${wl}-bernotok'
18494 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018495 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018496 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018497 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018498 # This is similar to how AIX traditionally builds its shared libraries.
18499 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 +000018500 fi
18501 fi
18502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018503
18504 beos*)
18505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18506 allow_undefined_flag_CXX=unsupported
18507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18508 # support --undefined. This deserves some investigation. FIXME
18509 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18510 else
18511 ld_shlibs_CXX=no
18512 fi
18513 ;;
18514
John Criswell47fdd832003-07-14 16:52:07 +000018515 chorus*)
18516 case $cc_basename in
18517 *)
18518 # FIXME: insert proper C++ library support
18519 ld_shlibs_CXX=no
18520 ;;
18521 esac
18522 ;;
18523
18524 cygwin* | mingw* | pw32*)
18525 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18526 # as there is no search path for DLLs.
18527 hardcode_libdir_flag_spec_CXX='-L$libdir'
18528 allow_undefined_flag_CXX=unsupported
18529 always_export_symbols_CXX=no
18530 enable_shared_with_static_runtimes_CXX=yes
18531
18532 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018533 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 +000018534 # If the export-symbols file already is a .def file (1st line
18535 # is EXPORTS), use it as is; otherwise, prepend...
18536 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18537 cp $export_symbols $output_objdir/$soname.def;
18538 else
18539 echo EXPORTS > $output_objdir/$soname.def;
18540 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018541 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018542 $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 +000018543 else
18544 ld_shlibs_CXX=no
18545 fi
18546 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018547 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018548 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018549 rhapsody* | darwin1.[012])
18550 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18551 ;;
18552 *) # Darwin 1.3 on
18553 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18554 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18555 else
18556 case ${MACOSX_DEPLOYMENT_TARGET} in
18557 10.[012])
18558 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18559 ;;
18560 10.*)
18561 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18562 ;;
18563 esac
18564 fi
18565 ;;
18566 esac
18567 archive_cmds_need_lc_CXX=no
18568 hardcode_direct_CXX=no
18569 hardcode_automatic_CXX=yes
18570 hardcode_shlibpath_var_CXX=unsupported
18571 whole_archive_flag_spec_CXX=''
18572 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018573
Reid Spencer2706f8c2004-09-19 23:53:36 +000018574 if test "$GXX" = yes ; then
18575 lt_int_apple_cc_single_mod=no
18576 output_verbose_link_cmd='echo'
18577 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18578 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018579 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018580 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018581 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 +000018582 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018583 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 +000018584 fi
18585 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018586 # 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 +000018587 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018588 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 +000018589 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018590 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 +000018591 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018592 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 +000018593 else
Reid Spencera773bd52006-08-04 18:18:08 +000018594 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018595 xlc*)
18596 output_verbose_link_cmd='echo'
18597 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'
18598 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018599 # 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 +000018600 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}'
18601 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 +000018602 ;;
18603 *)
18604 ld_shlibs_CXX=no
18605 ;;
18606 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018607 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018608 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018609
18610 dgux*)
18611 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018612 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018613 # FIXME: insert proper C++ library support
18614 ld_shlibs_CXX=no
18615 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018616 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018617 # Green Hills C++ Compiler
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621 *)
18622 # FIXME: insert proper C++ library support
18623 ld_shlibs_CXX=no
18624 ;;
18625 esac
18626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018627 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018628 # C++ shared libraries reported to be fairly broken before switch to ELF
18629 ld_shlibs_CXX=no
18630 ;;
18631 freebsd-elf*)
18632 archive_cmds_need_lc_CXX=no
18633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018634 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018635 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18636 # conventions
18637 ld_shlibs_CXX=yes
18638 ;;
18639 gnu*)
18640 ;;
18641 hpux9*)
18642 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18643 hardcode_libdir_separator_CXX=:
18644 export_dynamic_flag_spec_CXX='${wl}-E'
18645 hardcode_direct_CXX=yes
18646 hardcode_minus_L_CXX=yes # Not in the search PATH,
18647 # but as the default
18648 # location of the library.
18649
18650 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018651 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018652 # FIXME: insert proper C++ library support
18653 ld_shlibs_CXX=no
18654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018655 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018656 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 +000018657 # Commands to make compiler produce verbose output that lists
18658 # what "hidden" libraries, object files and flags are used when
18659 # linking a shared library.
18660 #
18661 # There doesn't appear to be a way to prevent this compiler from
18662 # explicitly linking system object files so we need to strip them
18663 # from the output so that they don't get included in the library
18664 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018665 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 +000018666 ;;
18667 *)
18668 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018669 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 +000018670 else
18671 # FIXME: insert proper C++ library support
18672 ld_shlibs_CXX=no
18673 fi
18674 ;;
18675 esac
18676 ;;
18677 hpux10*|hpux11*)
18678 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018679 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18680 hardcode_libdir_separator_CXX=:
18681
18682 case $host_cpu in
18683 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018684 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018685 ;;
18686 *)
John Criswell47fdd832003-07-14 16:52:07 +000018687 export_dynamic_flag_spec_CXX='${wl}-E'
18688 ;;
18689 esac
18690 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018691 case $host_cpu in
18692 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018693 hardcode_direct_CXX=no
18694 hardcode_shlibpath_var_CXX=no
18695 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018696 *)
18697 hardcode_direct_CXX=yes
18698 hardcode_minus_L_CXX=yes # Not in the search PATH,
18699 # but as the default
18700 # location of the library.
18701 ;;
18702 esac
18703
18704 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018705 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018706 # FIXME: insert proper C++ library support
18707 ld_shlibs_CXX=no
18708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018709 aCC*)
18710 case $host_cpu in
18711 hppa*64*)
18712 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18713 ;;
18714 ia64*)
18715 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 +000018716 ;;
18717 *)
18718 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18719 ;;
18720 esac
18721 # Commands to make compiler produce verbose output that lists
18722 # what "hidden" libraries, object files and flags are used when
18723 # linking a shared library.
18724 #
18725 # There doesn't appear to be a way to prevent this compiler from
18726 # explicitly linking system object files so we need to strip them
18727 # from the output so that they don't get included in the library
18728 # dependencies.
18729 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'
18730 ;;
18731 *)
18732 if test "$GXX" = yes; then
18733 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018734 case $host_cpu in
18735 hppa*64*)
18736 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18737 ;;
18738 ia64*)
18739 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 +000018740 ;;
18741 *)
18742 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'
18743 ;;
18744 esac
18745 fi
18746 else
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 fi
18750 ;;
18751 esac
18752 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018753 interix3*)
18754 hardcode_direct_CXX=no
18755 hardcode_shlibpath_var_CXX=no
18756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18757 export_dynamic_flag_spec_CXX='${wl}-E'
18758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18759 # Instead, shared libraries are loaded at an image base (0x10000000 by
18760 # default) and relocated if they conflict, which is a slow very memory
18761 # consuming and fragmenting process. To avoid this, we pick a random,
18762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18763 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18764 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'
18765 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'
18766 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018767 irix5* | irix6*)
18768 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018769 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018770 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018771 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 +000018772
18773 # Archives containing C++ object files must be created using
18774 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18775 # necessary to make sure instantiated templates are included
18776 # in the archive.
18777 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18778 ;;
18779 *)
18780 if test "$GXX" = yes; then
18781 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018782 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 +000018783 else
18784 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'
18785 fi
18786 fi
18787 link_all_deplibs_CXX=yes
18788 ;;
18789 esac
18790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18791 hardcode_libdir_separator_CXX=:
18792 ;;
18793 linux*)
18794 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018795 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018796 # Kuck and Associates, Inc. (KAI) C++ Compiler
18797
18798 # KCC will only create a shared library if the output file
18799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18800 # to its proper name (with version) after linking.
18801 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'
18802 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'
18803 # Commands to make compiler produce verbose output that lists
18804 # what "hidden" libraries, object files and flags are used when
18805 # linking a shared library.
18806 #
18807 # There doesn't appear to be a way to prevent this compiler from
18808 # explicitly linking system object files so we need to strip them
18809 # from the output so that they don't get included in the library
18810 # dependencies.
18811 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'
18812
18813 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18815
18816 # Archives containing C++ object files must be created using
18817 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18818 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18819 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018820 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018821 # Intel C++
18822 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018823 # version 8.0 and above of icpc choke on multiply defined symbols
18824 # if we add $predep_objects and $postdep_objects, however 7.1 and
18825 # earlier do not add the objects themselves.
18826 case `$CC -V 2>&1` in
18827 *"Version 7."*)
18828 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18829 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'
18830 ;;
18831 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018832 tmp_idyn=
18833 case $host_cpu in
18834 ia64*) tmp_idyn=' -i_dynamic';;
18835 esac
18836 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 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 +000018838 ;;
18839 esac
John Criswell47fdd832003-07-14 16:52:07 +000018840 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18842 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18843 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18844 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018845 pgCC*)
18846 # Portland Group C++ compiler
18847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18848 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'
18849
18850 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18851 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18852 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'
18853 ;;
18854 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018855 # Compaq C++
18856 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18857 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'
18858
18859 runpath_var=LD_RUN_PATH
18860 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18861 hardcode_libdir_separator_CXX=:
18862
18863 # Commands to make compiler produce verbose output that lists
18864 # what "hidden" libraries, object files and flags are used when
18865 # linking a shared library.
18866 #
18867 # There doesn't appear to be a way to prevent this compiler from
18868 # explicitly linking system object files so we need to strip them
18869 # from the output so that they don't get included in the library
18870 # dependencies.
18871 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'
18872 ;;
18873 esac
18874 ;;
18875 lynxos*)
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18878 ;;
18879 m88k*)
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 ;;
18883 mvs*)
18884 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018885 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018886 # FIXME: insert proper C++ library support
18887 ld_shlibs_CXX=no
18888 ;;
18889 *)
18890 # FIXME: insert proper C++ library support
18891 ld_shlibs_CXX=no
18892 ;;
18893 esac
18894 ;;
18895 netbsd*)
18896 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18897 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18898 wlarc=
18899 hardcode_libdir_flag_spec_CXX='-R$libdir'
18900 hardcode_direct_CXX=yes
18901 hardcode_shlibpath_var_CXX=no
18902 fi
18903 # Workaround some broken pre-1.5 toolchains
18904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18905 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018906 openbsd2*)
18907 # C++ shared libraries are fairly broken
18908 ld_shlibs_CXX=no
18909 ;;
18910 openbsd*)
18911 hardcode_direct_CXX=yes
18912 hardcode_shlibpath_var_CXX=no
18913 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18916 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18917 export_dynamic_flag_spec_CXX='${wl}-E'
18918 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18919 fi
18920 output_verbose_link_cmd='echo'
18921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018922 osf3*)
18923 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018924 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018925 # Kuck and Associates, Inc. (KAI) C++ Compiler
18926
18927 # KCC will only create a shared library if the output file
18928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18929 # to its proper name (with version) after linking.
18930 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'
18931
18932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18933 hardcode_libdir_separator_CXX=:
18934
18935 # Archives containing C++ object files must be created using
18936 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18937 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18938
18939 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018940 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018941 # Rational C++ 2.4.1
18942 # FIXME: insert proper C++ library support
18943 ld_shlibs_CXX=no
18944 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018945 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018947 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 +000018948
18949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18950 hardcode_libdir_separator_CXX=:
18951
18952 # Commands to make compiler produce verbose output that lists
18953 # what "hidden" libraries, object files and flags are used when
18954 # linking a shared library.
18955 #
18956 # There doesn't appear to be a way to prevent this compiler from
18957 # explicitly linking system object files so we need to strip them
18958 # from the output so that they don't get included in the library
18959 # dependencies.
18960 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'
18961 ;;
18962 *)
18963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018965 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 +000018966
18967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18968 hardcode_libdir_separator_CXX=:
18969
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18974
18975 else
18976 # FIXME: insert proper C++ library support
18977 ld_shlibs_CXX=no
18978 fi
18979 ;;
18980 esac
18981 ;;
18982 osf4* | osf5*)
18983 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018984 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018985 # Kuck and Associates, Inc. (KAI) C++ Compiler
18986
18987 # KCC will only create a shared library if the output file
18988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18989 # to its proper name (with version) after linking.
18990 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'
18991
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18993 hardcode_libdir_separator_CXX=:
18994
18995 # Archives containing C++ object files must be created using
18996 # the KAI C++ compiler.
18997 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018999 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019000 # Rational C++ 2.4.1
19001 # FIXME: insert proper C++ library support
19002 ld_shlibs_CXX=no
19003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019004 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019005 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019006 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 +000019007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19008 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019009 $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 +000019010 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019011
19012 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19013 hardcode_libdir_separator_CXX=:
19014
19015 # Commands to make compiler produce verbose output that lists
19016 # what "hidden" libraries, object files and flags are used when
19017 # linking a shared library.
19018 #
19019 # There doesn't appear to be a way to prevent this compiler from
19020 # explicitly linking system object files so we need to strip them
19021 # from the output so that they don't get included in the library
19022 # dependencies.
19023 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'
19024 ;;
19025 *)
19026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19027 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019028 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 +000019029
19030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19031 hardcode_libdir_separator_CXX=:
19032
19033 # Commands to make compiler produce verbose output that lists
19034 # what "hidden" libraries, object files and flags are used when
19035 # linking a shared library.
19036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19037
19038 else
19039 # FIXME: insert proper C++ library support
19040 ld_shlibs_CXX=no
19041 fi
19042 ;;
19043 esac
19044 ;;
19045 psos*)
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019049 sunos4*)
19050 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019051 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019052 # Sun C++ 4.x
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19055 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019056 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019057 # Lucid
19058 # FIXME: insert proper C++ library support
19059 ld_shlibs_CXX=no
19060 ;;
19061 *)
19062 # FIXME: insert proper C++ library support
19063 ld_shlibs_CXX=no
19064 ;;
19065 esac
19066 ;;
19067 solaris*)
19068 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019069 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019070 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019071 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019072 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019073 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 +000019074 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 +000019075 $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 +000019076
19077 hardcode_libdir_flag_spec_CXX='-R$libdir'
19078 hardcode_shlibpath_var_CXX=no
19079 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019080 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019081 *)
19082 # The C++ compiler is used as linker so we must use $wl
19083 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019084 # linker. We must also pass each convience library through
19085 # to the system linker between allextract/defaultextract.
19086 # The C++ compiler will combine linker options so we
19087 # cannot just pass the convience library names through
19088 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019089 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019090 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 +000019091 ;;
19092 esac
19093 link_all_deplibs_CXX=yes
19094
Reid Spencera773bd52006-08-04 18:18:08 +000019095 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019096
19097 # Archives containing C++ object files must be created using
19098 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19099 # necessary to make sure instantiated templates are included
19100 # in the archive.
19101 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019103 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019104 # Green Hills C++ Compiler
19105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19106
19107 # The C++ compiler must be used to create the archive.
19108 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19109 ;;
19110 *)
19111 # GNU C++ compiler with Solaris linker
19112 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19113 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19114 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019115 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 +000019116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19117 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19118
John Criswell47fdd832003-07-14 16:52:07 +000019119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019122 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019123 else
19124 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19125 # platform.
19126 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 +000019127 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19128 $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 +000019129
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 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19134 fi
19135
19136 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19137 fi
19138 ;;
19139 esac
19140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19142 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019143 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019144 hardcode_shlibpath_var_CXX=no
19145 runpath_var='LD_RUN_PATH'
19146
19147 case $cc_basename in
19148 CC*)
19149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19151 ;;
19152 *)
19153 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19155 ;;
19156 esac
19157 ;;
19158 sysv5* | sco3.2v5* | sco5v6*)
19159 # Note: We can NOT use -z defs as we might desire, because we do not
19160 # link with -lc, and that would cause any symbols used from libc to
19161 # always be unresolved, which means just about no library would
19162 # ever link correctly. If we're not using GNU ld we use -z text
19163 # though, which does catch some bad symbols but isn't as heavy-handed
19164 # as -z defs.
19165 # For security reasons, it is highly recommended that you always
19166 # use absolute paths for naming shared libraries, and exclude the
19167 # DT_RUNPATH tag from executables and libraries. But doing so
19168 # requires that you compile everything twice, which is a pain.
19169 # So that behaviour is only enabled if SCOABSPATH is set to a
19170 # non-empty value in the environment. Most likely only useful for
19171 # creating official distributions of packages.
19172 # This is a hack until libtool officially supports absolute path
19173 # names for shared libraries.
19174 no_undefined_flag_CXX='${wl}-z,text'
19175 allow_undefined_flag_CXX='${wl}-z,nodefs'
19176 archive_cmds_need_lc_CXX=no
19177 hardcode_shlibpath_var_CXX=no
19178 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19179 hardcode_libdir_separator_CXX=':'
19180 link_all_deplibs_CXX=yes
19181 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19182 runpath_var='LD_RUN_PATH'
19183
19184 case $cc_basename in
19185 CC*)
19186 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19187 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19188 ;;
19189 *)
19190 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19191 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19192 ;;
19193 esac
John Criswell47fdd832003-07-14 16:52:07 +000019194 ;;
19195 tandem*)
19196 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019197 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019198 # NonStop-UX NCC 3.20
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
19202 *)
19203 # FIXME: insert proper C++ library support
19204 ld_shlibs_CXX=no
19205 ;;
19206 esac
19207 ;;
19208 vxworks*)
19209 # FIXME: insert proper C++ library support
19210 ld_shlibs_CXX=no
19211 ;;
19212 *)
19213 # FIXME: insert proper C++ library support
19214 ld_shlibs_CXX=no
19215 ;;
19216esac
Reid Spencera773bd52006-08-04 18:18:08 +000019217{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19218echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019219test "$ld_shlibs_CXX" = no && can_build_shared=no
19220
19221GCC_CXX="$GXX"
19222LD_CXX="$LD"
19223
John Criswell47fdd832003-07-14 16:52:07 +000019224
19225cat > conftest.$ac_ext <<EOF
19226class Foo
19227{
19228public:
19229 Foo (void) { a = 0; }
19230private:
19231 int a;
19232};
19233EOF
19234
19235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; then
19240 # Parse the compiler output and extract the necessary
19241 # objects, libraries and library flags.
19242
19243 # Sentinel used to keep track of whether or not we are before
19244 # the conftest object file.
19245 pre_test_object_deps_done=no
19246
19247 # The `*' in the case matches for architectures that use `case' in
19248 # $output_verbose_cmd can trigger glob expansion during the loop
19249 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019250 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019251
19252 for p in `eval $output_verbose_link_cmd`; do
19253 case $p in
19254
19255 -L* | -R* | -l*)
19256 # Some compilers place space between "-{L,R}" and the path.
19257 # Remove the space.
19258 if test $p = "-L" \
19259 || test $p = "-R"; then
19260 prev=$p
19261 continue
19262 else
19263 prev=
19264 fi
19265
19266 if test "$pre_test_object_deps_done" = no; then
19267 case $p in
19268 -L* | -R*)
19269 # Internal compiler library paths should come after those
19270 # provided the user. The postdeps already come after the
19271 # user supplied libs so there is no need to process them.
19272 if test -z "$compiler_lib_search_path_CXX"; then
19273 compiler_lib_search_path_CXX="${prev}${p}"
19274 else
19275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19276 fi
19277 ;;
19278 # The "-l" case would never come before the object being
19279 # linked, so don't bother handling this case.
19280 esac
19281 else
19282 if test -z "$postdeps_CXX"; then
19283 postdeps_CXX="${prev}${p}"
19284 else
19285 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19286 fi
19287 fi
19288 ;;
19289
19290 *.$objext)
19291 # This assumes that the test object file only shows up
19292 # once in the compiler output.
19293 if test "$p" = "conftest.$objext"; then
19294 pre_test_object_deps_done=yes
19295 continue
19296 fi
19297
19298 if test "$pre_test_object_deps_done" = no; then
19299 if test -z "$predep_objects_CXX"; then
19300 predep_objects_CXX="$p"
19301 else
19302 predep_objects_CXX="$predep_objects_CXX $p"
19303 fi
19304 else
19305 if test -z "$postdep_objects_CXX"; then
19306 postdep_objects_CXX="$p"
19307 else
19308 postdep_objects_CXX="$postdep_objects_CXX $p"
19309 fi
19310 fi
19311 ;;
19312
19313 *) ;; # Ignore the rest.
19314
19315 esac
19316 done
19317
19318 # Clean up.
19319 rm -f a.out a.exe
19320else
19321 echo "libtool.m4: error: problem compiling CXX test program"
19322fi
19323
19324$rm -f confest.$objext
19325
Reid Spencera773bd52006-08-04 18:18:08 +000019326# PORTME: override above test on systems where it is broken
19327case $host_os in
19328interix3*)
19329 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19330 # hack all around it, let's just trust "g++" to DTRT.
19331 predep_objects_CXX=
19332 postdep_objects_CXX=
19333 postdeps_CXX=
19334 ;;
19335
19336solaris*)
19337 case $cc_basename in
19338 CC*)
19339 # Adding this requires a known-good setup of shared libraries for
19340 # Sun compiler versions before 5.6, else PIC objects from an old
19341 # archive will be linked into the output, leading to subtle bugs.
19342 postdeps_CXX='-lCstd -lCrun'
19343 ;;
19344 esac
19345 ;;
19346esac
19347
19348
John Criswell47fdd832003-07-14 16:52:07 +000019349case " $postdeps_CXX " in
19350*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19351esac
19352
19353lt_prog_compiler_wl_CXX=
19354lt_prog_compiler_pic_CXX=
19355lt_prog_compiler_static_CXX=
19356
Reid Spencera773bd52006-08-04 18:18:08 +000019357{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19358echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019359
19360 # C++ specific cases for pic, static, wl, etc.
19361 if test "$GXX" = yes; then
19362 lt_prog_compiler_wl_CXX='-Wl,'
19363 lt_prog_compiler_static_CXX='-static'
19364
19365 case $host_os in
19366 aix*)
19367 # All AIX code is PIC.
19368 if test "$host_cpu" = ia64; then
19369 # AIX 5 now supports IA64 processor
19370 lt_prog_compiler_static_CXX='-Bstatic'
19371 fi
19372 ;;
19373 amigaos*)
19374 # FIXME: we need at least 68020 code to build shared libraries, but
19375 # adding the `-m68020' flag to GCC prevents building anything better,
19376 # like `-m68040'.
19377 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19378 ;;
19379 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19380 # PIC is the default for these OSes.
19381 ;;
19382 mingw* | os2* | pw32*)
19383 # This hack is so that the source file can tell whether it is being
19384 # built for inclusion in a dll (and should export symbols for example).
19385 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19386 ;;
19387 darwin* | rhapsody*)
19388 # PIC is the default on this platform
19389 # Common symbols not allowed in MH_DYLIB files
19390 lt_prog_compiler_pic_CXX='-fno-common'
19391 ;;
19392 *djgpp*)
19393 # DJGPP does not support shared libraries at all
19394 lt_prog_compiler_pic_CXX=
19395 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019396 interix3*)
19397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19398 # Instead, we relocate shared libraries at runtime.
19399 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019400 sysv4*MP*)
19401 if test -d /usr/nec; then
19402 lt_prog_compiler_pic_CXX=-Kconform_pic
19403 fi
19404 ;;
19405 hpux*)
19406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19407 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019408 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019409 hppa*64*|ia64*)
19410 ;;
19411 *)
19412 lt_prog_compiler_pic_CXX='-fPIC'
19413 ;;
19414 esac
19415 ;;
19416 *)
19417 lt_prog_compiler_pic_CXX='-fPIC'
19418 ;;
19419 esac
19420 else
19421 case $host_os in
19422 aix4* | aix5*)
19423 # All AIX code is PIC.
19424 if test "$host_cpu" = ia64; then
19425 # AIX 5 now supports IA64 processor
19426 lt_prog_compiler_static_CXX='-Bstatic'
19427 else
19428 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19429 fi
19430 ;;
19431 chorus*)
19432 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019433 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019434 # Green Hills C++ Compiler
19435 # _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"
19436 ;;
19437 esac
19438 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019439 darwin*)
19440 # PIC is the default on this platform
19441 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019442 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019443 xlc*)
19444 lt_prog_compiler_pic_CXX='-qnocommon'
19445 lt_prog_compiler_wl_CXX='-Wl,'
19446 ;;
19447 esac
19448 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019449 dgux*)
19450 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019451 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019452 lt_prog_compiler_pic_CXX='-KPIC'
19453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019454 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019455 # Green Hills C++ Compiler
19456 lt_prog_compiler_pic_CXX='-pic'
19457 ;;
19458 *)
19459 ;;
19460 esac
19461 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019462 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019463 # FreeBSD uses GNU C++
19464 ;;
19465 hpux9* | hpux10* | hpux11*)
19466 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019467 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019468 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019469 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019470 if test "$host_cpu" != ia64; then
19471 lt_prog_compiler_pic_CXX='+Z'
19472 fi
19473 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019474 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019475 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19477 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019478 hppa*64*|ia64*)
19479 # +Z the default
19480 ;;
19481 *)
19482 lt_prog_compiler_pic_CXX='+Z'
19483 ;;
19484 esac
19485 ;;
19486 *)
19487 ;;
19488 esac
19489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019490 interix*)
19491 # This is c89, which is MS Visual C++ (no shared libs)
19492 # Anyone wants to do a port?
19493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019494 irix5* | irix6* | nonstopux*)
19495 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019496 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019497 lt_prog_compiler_wl_CXX='-Wl,'
19498 lt_prog_compiler_static_CXX='-non_shared'
19499 # CC pic flag -KPIC is the default.
19500 ;;
19501 *)
19502 ;;
19503 esac
19504 ;;
19505 linux*)
19506 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019507 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019508 # KAI C++ Compiler
19509 lt_prog_compiler_wl_CXX='--backend -Wl,'
19510 lt_prog_compiler_pic_CXX='-fPIC'
19511 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019512 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019513 # Intel C++
19514 lt_prog_compiler_wl_CXX='-Wl,'
19515 lt_prog_compiler_pic_CXX='-KPIC'
19516 lt_prog_compiler_static_CXX='-static'
19517 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019518 pgCC*)
19519 # Portland Group C++ compiler.
19520 lt_prog_compiler_wl_CXX='-Wl,'
19521 lt_prog_compiler_pic_CXX='-fpic'
19522 lt_prog_compiler_static_CXX='-Bstatic'
19523 ;;
19524 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019525 # Compaq C++
19526 # Make sure the PIC flag is empty. It appears that all Alpha
19527 # Linux and Compaq Tru64 Unix objects are PIC.
19528 lt_prog_compiler_pic_CXX=
19529 lt_prog_compiler_static_CXX='-non_shared'
19530 ;;
19531 *)
19532 ;;
19533 esac
19534 ;;
19535 lynxos*)
19536 ;;
19537 m88k*)
19538 ;;
19539 mvs*)
19540 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019541 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019542 lt_prog_compiler_pic_CXX='-W c,exportall'
19543 ;;
19544 *)
19545 ;;
19546 esac
19547 ;;
19548 netbsd*)
19549 ;;
19550 osf3* | osf4* | osf5*)
19551 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019552 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019553 lt_prog_compiler_wl_CXX='--backend -Wl,'
19554 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019555 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019556 # Rational C++ 2.4.1
19557 lt_prog_compiler_pic_CXX='-pic'
19558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019559 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019560 # Digital/Compaq C++
19561 lt_prog_compiler_wl_CXX='-Wl,'
19562 # Make sure the PIC flag is empty. It appears that all Alpha
19563 # Linux and Compaq Tru64 Unix objects are PIC.
19564 lt_prog_compiler_pic_CXX=
19565 lt_prog_compiler_static_CXX='-non_shared'
19566 ;;
19567 *)
19568 ;;
19569 esac
19570 ;;
19571 psos*)
19572 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019573 solaris*)
19574 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019575 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019576 # Sun C++ 4.2, 5.x and Centerline C++
19577 lt_prog_compiler_pic_CXX='-KPIC'
19578 lt_prog_compiler_static_CXX='-Bstatic'
19579 lt_prog_compiler_wl_CXX='-Qoption ld '
19580 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019581 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019582 # Green Hills C++ Compiler
19583 lt_prog_compiler_pic_CXX='-PIC'
19584 ;;
19585 *)
19586 ;;
19587 esac
19588 ;;
19589 sunos4*)
19590 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019591 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019592 # Sun C++ 4.x
19593 lt_prog_compiler_pic_CXX='-pic'
19594 lt_prog_compiler_static_CXX='-Bstatic'
19595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019596 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019597 # Lucid
19598 lt_prog_compiler_pic_CXX='-pic'
19599 ;;
19600 *)
19601 ;;
19602 esac
19603 ;;
19604 tandem*)
19605 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019606 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019607 # NonStop-UX NCC 3.20
19608 lt_prog_compiler_pic_CXX='-KPIC'
19609 ;;
19610 *)
19611 ;;
19612 esac
19613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19615 case $cc_basename in
19616 CC*)
19617 lt_prog_compiler_wl_CXX='-Wl,'
19618 lt_prog_compiler_pic_CXX='-KPIC'
19619 lt_prog_compiler_static_CXX='-Bstatic'
19620 ;;
19621 esac
John Criswell47fdd832003-07-14 16:52:07 +000019622 ;;
19623 vxworks*)
19624 ;;
19625 *)
19626 lt_prog_compiler_can_build_shared_CXX=no
19627 ;;
19628 esac
19629 fi
19630
Reid Spencera773bd52006-08-04 18:18:08 +000019631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19632echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019633
19634#
19635# Check to make sure the PIC flag actually works.
19636#
19637if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019638
Reid Spencera773bd52006-08-04 18:18:08 +000019639{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19640echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019641if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19643else
19644 lt_prog_compiler_pic_works_CXX=no
19645 ac_outfile=conftest.$ac_objext
19646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19647 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19648 # Insert the option either (1) after the last *FLAGS variable, or
19649 # (2) before a word containing "conftest.", or (3) at the end.
19650 # Note that $ac_compile itself does not contain backslashes and begins
19651 # with a dollar sign (not a hyphen), so the echo should work correctly.
19652 # The option is referenced via a variable to avoid confusing sed.
19653 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19656 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000019657 (eval echo "\"\$as_me:19657: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019658 (eval "$lt_compile" 2>conftest.err)
19659 ac_status=$?
19660 cat conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000019661 echo "$as_me:19661: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019662 if (exit $ac_status) && test -s "$ac_outfile"; then
19663 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019664 # So say no if there are warnings other than the usual output.
19665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019668 lt_prog_compiler_pic_works_CXX=yes
19669 fi
19670 fi
19671 $rm conftest*
19672
19673fi
Reid Spencera773bd52006-08-04 18:18:08 +000019674{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19675echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019676
19677if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19678 case $lt_prog_compiler_pic_CXX in
19679 "" | " "*) ;;
19680 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19681 esac
19682else
19683 lt_prog_compiler_pic_CXX=
19684 lt_prog_compiler_can_build_shared_CXX=no
19685fi
19686
19687fi
Reid Spencera773bd52006-08-04 18:18:08 +000019688case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019689 # For platforms which do not support PIC, -DPIC is meaningless:
19690 *djgpp*)
19691 lt_prog_compiler_pic_CXX=
19692 ;;
19693 *)
19694 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19695 ;;
19696esac
19697
Reid Spencera773bd52006-08-04 18:18:08 +000019698#
19699# Check to make sure the static flag actually works.
19700#
19701wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19702{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19703echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19704if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707 lt_prog_compiler_static_works_CXX=no
19708 save_LDFLAGS="$LDFLAGS"
19709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19710 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19712 # The linker can only warn and ignore the option if not recognized
19713 # So say no if there are warnings
19714 if test -s conftest.err; then
19715 # Append any errors to the config.log.
19716 cat conftest.err 1>&5
19717 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19719 if diff conftest.exp conftest.er2 >/dev/null; then
19720 lt_prog_compiler_static_works_CXX=yes
19721 fi
19722 else
19723 lt_prog_compiler_static_works_CXX=yes
19724 fi
19725 fi
19726 $rm conftest*
19727 LDFLAGS="$save_LDFLAGS"
19728
19729fi
19730{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19731echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19732
19733if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19734 :
19735else
19736 lt_prog_compiler_static_CXX=
19737fi
19738
19739
19740{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19741echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019742if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744else
19745 lt_cv_prog_compiler_c_o_CXX=no
19746 $rm -r conftest 2>/dev/null
19747 mkdir conftest
19748 cd conftest
19749 mkdir out
19750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19751
John Criswell47fdd832003-07-14 16:52:07 +000019752 lt_compiler_flag="-o out/conftest2.$ac_objext"
19753 # Insert the option either (1) after the last *FLAGS variable, or
19754 # (2) before a word containing "conftest.", or (3) at the end.
19755 # Note that $ac_compile itself does not contain backslashes and begins
19756 # with a dollar sign (not a hyphen), so the echo should work correctly.
19757 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19760 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000019761 (eval echo "\"\$as_me:19761: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019762 (eval "$lt_compile" 2>out/conftest.err)
19763 ac_status=$?
19764 cat out/conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000019765 echo "$as_me:19765: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19767 then
19768 # The compiler can only warn and ignore the option if not recognized
19769 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019773 lt_cv_prog_compiler_c_o_CXX=yes
19774 fi
19775 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019776 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019777 $rm conftest*
19778 # SGI C++ compiler will create directory out/ii_files/ for
19779 # template instantiation
19780 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19781 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019782 cd ..
19783 rmdir conftest
19784 $rm conftest*
19785
19786fi
Reid Spencera773bd52006-08-04 18:18:08 +000019787{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19788echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019789
19790
19791hard_links="nottested"
19792if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19793 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019794 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19795echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019796 hard_links=yes
19797 $rm conftest*
19798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19799 touch conftest.a
19800 ln conftest.a conftest.b 2>&5 || hard_links=no
19801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019802 { echo "$as_me:$LINENO: result: $hard_links" >&5
19803echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019804 if test "$hard_links" = no; then
19805 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19806echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19807 need_locks=warn
19808 fi
19809else
19810 need_locks=no
19811fi
19812
Reid Spencera773bd52006-08-04 18:18:08 +000019813{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19814echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019815
19816 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19817 case $host_os in
19818 aix4* | aix5*)
19819 # If we're using GNU nm, then we don't want the "-C" option.
19820 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19821 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19822 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'
19823 else
19824 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'
19825 fi
19826 ;;
19827 pw32*)
19828 export_symbols_cmds_CXX="$ltdll_cmds"
19829 ;;
19830 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019831 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 +000019832 ;;
19833 *)
19834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19835 ;;
19836 esac
19837
Reid Spencera773bd52006-08-04 18:18:08 +000019838{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19839echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019840test "$ld_shlibs_CXX" = no && can_build_shared=no
19841
John Criswell47fdd832003-07-14 16:52:07 +000019842#
19843# Do we need to explicitly link libc?
19844#
19845case "x$archive_cmds_need_lc_CXX" in
19846x|xyes)
19847 # Assume -lc should be added
19848 archive_cmds_need_lc_CXX=yes
19849
19850 if test "$enable_shared" = yes && test "$GCC" = yes; then
19851 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019852 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019853 # FIXME: we may have to deal with multi-command sequences.
19854 ;;
19855 '$CC '*)
19856 # Test whether the compiler implicitly links with -lc since on some
19857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19858 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019859 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19860echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019861 $rm conftest*
19862 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19863
19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865 (eval $ac_compile) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } 2>conftest.err; then
19869 soname=conftest
19870 lib=conftest
19871 libobjs=conftest.$ac_objext
19872 deplibs=
19873 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019874 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019875 compiler_flags=-v
19876 linker_flags=-v
19877 verstring=
19878 output_objdir=.
19879 libname=conftest
19880 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19881 allow_undefined_flag_CXX=
19882 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19883 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }
19887 then
19888 archive_cmds_need_lc_CXX=no
19889 else
19890 archive_cmds_need_lc_CXX=yes
19891 fi
19892 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19893 else
19894 cat conftest.err 1>&5
19895 fi
19896 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019897 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19898echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019899 ;;
19900 esac
19901 fi
19902 ;;
19903esac
19904
Reid Spencera773bd52006-08-04 18:18:08 +000019905{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19906echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019907library_names_spec=
19908libname_spec='lib$name'
19909soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019910shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019911postinstall_cmds=
19912postuninstall_cmds=
19913finish_cmds=
19914finish_eval=
19915shlibpath_var=
19916shlibpath_overrides_runpath=unknown
19917version_type=none
19918dynamic_linker="$host_os ld.so"
19919sys_lib_dlsearch_path_spec="/lib /usr/lib"
19920if test "$GCC" = yes; then
19921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19922 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19923 # if the path contains ";" then we assume it to be the separator
19924 # otherwise default to the standard path separator (i.e. ":") - it is
19925 # assumed that no part of a normal pathname contains ";" but that should
19926 # okay in the real world where ";" in dirpaths is itself problematic.
19927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19928 else
19929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19930 fi
19931else
19932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19933fi
19934need_lib_prefix=unknown
19935hardcode_into_libs=no
19936
19937# when you set need_version to no, make sure it does not cause -set_version
19938# flags to be left without arguments
19939need_version=unknown
19940
19941case $host_os in
19942aix3*)
19943 version_type=linux
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19945 shlibpath_var=LIBPATH
19946
19947 # AIX 3 has no versioning support, so we append a major version to the name.
19948 soname_spec='${libname}${release}${shared_ext}$major'
19949 ;;
19950
19951aix4* | aix5*)
19952 version_type=linux
19953 need_lib_prefix=no
19954 need_version=no
19955 hardcode_into_libs=yes
19956 if test "$host_cpu" = ia64; then
19957 # AIX 5 supports IA64
19958 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19959 shlibpath_var=LD_LIBRARY_PATH
19960 else
19961 # With GCC up to 2.95.x, collect2 would create an import file
19962 # for dependence libraries. The import file would start with
19963 # the line `#! .'. This would cause the generated library to
19964 # depend on `.', always an invalid library. This was fixed in
19965 # development snapshots of GCC prior to 3.0.
19966 case $host_os in
19967 aix4 | aix4.[01] | aix4.[01].*)
19968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19969 echo ' yes '
19970 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19971 :
19972 else
19973 can_build_shared=no
19974 fi
19975 ;;
19976 esac
19977 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19978 # soname into executable. Probably we can add versioning support to
19979 # collect2, so additional links can be useful in future.
19980 if test "$aix_use_runtimelinking" = yes; then
19981 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19982 # instead of lib<name>.a to let people know that these are not
19983 # typical AIX shared libraries.
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 else
19986 # We preserve .a as extension for shared libraries through AIX4.2
19987 # and later when we are not doing run time linking.
19988 library_names_spec='${libname}${release}.a $libname.a'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 fi
19991 shlibpath_var=LIBPATH
19992 fi
19993 ;;
19994
19995amigaos*)
19996 library_names_spec='$libname.ixlibrary $libname.a'
19997 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019998 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 +000019999 ;;
20000
20001beos*)
20002 library_names_spec='${libname}${shared_ext}'
20003 dynamic_linker="$host_os ld.so"
20004 shlibpath_var=LIBRARY_PATH
20005 ;;
20006
Reid Spencer2706f8c2004-09-19 23:53:36 +000020007bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020008 version_type=linux
20009 need_version=no
20010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011 soname_spec='${libname}${release}${shared_ext}$major'
20012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20013 shlibpath_var=LD_LIBRARY_PATH
20014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20016 # the default ld.so.conf also contains /usr/contrib/lib and
20017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20018 # libtool to hard-code these into programs
20019 ;;
20020
20021cygwin* | mingw* | pw32*)
20022 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020023 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020024 need_version=no
20025 need_lib_prefix=no
20026
20027 case $GCC,$host_os in
20028 yes,cygwin* | yes,mingw* | yes,pw32*)
20029 library_names_spec='$libname.dll.a'
20030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020031 postinstall_cmds='base_file=`basename \${file}`~
20032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20033 dldir=$destdir/`dirname \$dlpath`~
20034 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020035 $install_prog $dir/$dlname \$dldir/$dlname~
20036 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20038 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020039 $rm \$dlpath'
20040 shlibpath_overrides_runpath=yes
20041
20042 case $host_os in
20043 cygwin*)
20044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20045 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 +000020046 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020047 ;;
20048 mingw*)
20049 # MinGW DLLs use traditional 'lib' prefix
20050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20053 # It is most probably a Windows format PATH printed by
20054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20055 # path with ; separators, and with drive letters. We can handle the
20056 # drive letters (cygwin fileutils understands them), so leave them,
20057 # especially as we might pass files found there to a mingw objdump,
20058 # which wouldn't understand a cygwinified path. Ahh.
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060 else
20061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20062 fi
20063 ;;
20064 pw32*)
20065 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020066 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 +000020067 ;;
20068 esac
20069 ;;
20070
20071 *)
20072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20073 ;;
20074 esac
20075 dynamic_linker='Win32 ld.exe'
20076 # FIXME: first we should search . and the directory the executable is in
20077 shlibpath_var=PATH
20078 ;;
20079
20080darwin* | rhapsody*)
20081 dynamic_linker="$host_os dyld"
20082 version_type=darwin
20083 need_lib_prefix=no
20084 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020085 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020086 soname_spec='${libname}${release}${major}$shared_ext'
20087 shlibpath_overrides_runpath=yes
20088 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020089 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020090 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020091 if test "$GCC" = yes; then
20092 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"`
20093 else
20094 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020095 fi
20096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20097 ;;
20098
20099dgux*)
20100 version_type=linux
20101 need_lib_prefix=no
20102 need_version=no
20103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20104 soname_spec='${libname}${release}${shared_ext}$major'
20105 shlibpath_var=LD_LIBRARY_PATH
20106 ;;
20107
20108freebsd1*)
20109 dynamic_linker=no
20110 ;;
20111
Reid Spencer2706f8c2004-09-19 23:53:36 +000020112kfreebsd*-gnu)
20113 version_type=linux
20114 need_lib_prefix=no
20115 need_version=no
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=no
20120 hardcode_into_libs=yes
20121 dynamic_linker='GNU ld.so'
20122 ;;
20123
Reid Spencera773bd52006-08-04 18:18:08 +000020124freebsd* | dragonfly*)
20125 # DragonFly does not have aout. When/if they implement a new
20126 # versioning mechanism, adjust this.
20127 if test -x /usr/bin/objformat; then
20128 objformat=`/usr/bin/objformat`
20129 else
20130 case $host_os in
20131 freebsd[123]*) objformat=aout ;;
20132 *) objformat=elf ;;
20133 esac
20134 fi
John Criswell47fdd832003-07-14 16:52:07 +000020135 version_type=freebsd-$objformat
20136 case $version_type in
20137 freebsd-elf*)
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20139 need_version=no
20140 need_lib_prefix=no
20141 ;;
20142 freebsd-*)
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20144 need_version=yes
20145 ;;
20146 esac
20147 shlibpath_var=LD_LIBRARY_PATH
20148 case $host_os in
20149 freebsd2*)
20150 shlibpath_overrides_runpath=yes
20151 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020152 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020153 shlibpath_overrides_runpath=yes
20154 hardcode_into_libs=yes
20155 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020158 shlibpath_overrides_runpath=no
20159 hardcode_into_libs=yes
20160 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020161 freebsd*) # from 4.6 on
20162 shlibpath_overrides_runpath=yes
20163 hardcode_into_libs=yes
20164 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020165 esac
20166 ;;
20167
20168gnu*)
20169 version_type=linux
20170 need_lib_prefix=no
20171 need_version=no
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 hardcode_into_libs=yes
20176 ;;
20177
20178hpux9* | hpux10* | hpux11*)
20179 # Give a soname corresponding to the major version so that dld.sl refuses to
20180 # link against other versions.
20181 version_type=sunos
20182 need_lib_prefix=no
20183 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020184 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020185 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020186 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020187 hardcode_into_libs=yes
20188 dynamic_linker="$host_os dld.so"
20189 shlibpath_var=LD_LIBRARY_PATH
20190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 if test "X$HPUX_IA64_MODE" = X32; then
20194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20195 else
20196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20197 fi
20198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20199 ;;
20200 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020201 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020202 hardcode_into_libs=yes
20203 dynamic_linker="$host_os dld.sl"
20204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 soname_spec='${libname}${release}${shared_ext}$major'
20208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20210 ;;
20211 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020212 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020213 dynamic_linker="$host_os dld.sl"
20214 shlibpath_var=SHLIB_PATH
20215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 ;;
20219 esac
20220 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20221 postinstall_cmds='chmod 555 $lib'
20222 ;;
20223
Reid Spencera773bd52006-08-04 18:18:08 +000020224interix3*)
20225 version_type=linux
20226 need_lib_prefix=no
20227 need_version=no
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20231 shlibpath_var=LD_LIBRARY_PATH
20232 shlibpath_overrides_runpath=no
20233 hardcode_into_libs=yes
20234 ;;
20235
John Criswell47fdd832003-07-14 16:52:07 +000020236irix5* | irix6* | nonstopux*)
20237 case $host_os in
20238 nonstopux*) version_type=nonstopux ;;
20239 *)
20240 if test "$lt_cv_prog_gnu_ld" = yes; then
20241 version_type=linux
20242 else
20243 version_type=irix
20244 fi ;;
20245 esac
20246 need_lib_prefix=no
20247 need_version=no
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20250 case $host_os in
20251 irix5* | nonstopux*)
20252 libsuff= shlibsuff=
20253 ;;
20254 *)
20255 case $LD in # libtool.m4 will add one of these switches to LD
20256 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20257 libsuff= shlibsuff= libmagic=32-bit;;
20258 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20259 libsuff=32 shlibsuff=N32 libmagic=N32;;
20260 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20261 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20262 *) libsuff= shlibsuff= libmagic=never-match;;
20263 esac
20264 ;;
20265 esac
20266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20267 shlibpath_overrides_runpath=no
20268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20270 hardcode_into_libs=yes
20271 ;;
20272
20273# No shared lib support for Linux oldld, aout, or coff.
20274linux*oldld* | linux*aout* | linux*coff*)
20275 dynamic_linker=no
20276 ;;
20277
20278# This must be Linux ELF.
20279linux*)
20280 version_type=linux
20281 need_lib_prefix=no
20282 need_version=no
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20286 shlibpath_var=LD_LIBRARY_PATH
20287 shlibpath_overrides_runpath=no
20288 # This implies no fast_install, which is unacceptable.
20289 # Some rework will be needed to allow for fast_install
20290 # before this can be enabled.
20291 hardcode_into_libs=yes
20292
Reid Spencer2706f8c2004-09-19 23:53:36 +000020293 # Append ld.so.conf contents to the search path
20294 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020295 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 +000020296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20297 fi
20298
John Criswell47fdd832003-07-14 16:52:07 +000020299 # We used to test for /lib/ld.so.1 and disable shared libraries on
20300 # powerpc, because MkLinux only supported shared libraries with the
20301 # GNU dynamic linker. Since this was broken with cross compilers,
20302 # most powerpc-linux boxes support dynamic linking these days and
20303 # people can always --disable-shared, the test was removed, and we
20304 # assume the GNU/Linux dynamic linker is in use.
20305 dynamic_linker='GNU/Linux ld.so'
20306 ;;
20307
Reid Spencer2706f8c2004-09-19 23:53:36 +000020308knetbsd*-gnu)
20309 version_type=linux
20310 need_lib_prefix=no
20311 need_version=no
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 shlibpath_overrides_runpath=no
20316 hardcode_into_libs=yes
20317 dynamic_linker='GNU ld.so'
20318 ;;
20319
John Criswell47fdd832003-07-14 16:52:07 +000020320netbsd*)
20321 version_type=sunos
20322 need_lib_prefix=no
20323 need_version=no
20324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327 dynamic_linker='NetBSD (a.out) ld.so'
20328 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020330 soname_spec='${libname}${release}${shared_ext}$major'
20331 dynamic_linker='NetBSD ld.elf_so'
20332 fi
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=yes
20335 hardcode_into_libs=yes
20336 ;;
20337
20338newsos6)
20339 version_type=linux
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341 shlibpath_var=LD_LIBRARY_PATH
20342 shlibpath_overrides_runpath=yes
20343 ;;
20344
Reid Spencer2706f8c2004-09-19 23:53:36 +000020345nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020346 version_type=linux
20347 need_lib_prefix=no
20348 need_version=no
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 shlibpath_var=LD_LIBRARY_PATH
20352 shlibpath_overrides_runpath=yes
20353 ;;
20354
20355openbsd*)
20356 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020357 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020358 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20360 case $host_os in
20361 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20362 *) need_version=no ;;
20363 esac
John Criswell47fdd832003-07-14 16:52:07 +000020364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20368 case $host_os in
20369 openbsd2.[89] | openbsd2.[89].*)
20370 shlibpath_overrides_runpath=no
20371 ;;
20372 *)
20373 shlibpath_overrides_runpath=yes
20374 ;;
20375 esac
20376 else
20377 shlibpath_overrides_runpath=yes
20378 fi
20379 ;;
20380
20381os2*)
20382 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020383 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020384 need_lib_prefix=no
20385 library_names_spec='$libname${shared_ext} $libname.a'
20386 dynamic_linker='OS/2 ld.exe'
20387 shlibpath_var=LIBPATH
20388 ;;
20389
20390osf3* | osf4* | osf5*)
20391 version_type=osf
20392 need_lib_prefix=no
20393 need_version=no
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20398 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20399 ;;
20400
John Criswell47fdd832003-07-14 16:52:07 +000020401solaris*)
20402 version_type=linux
20403 need_lib_prefix=no
20404 need_version=no
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 hardcode_into_libs=yes
20410 # ldd complains unless libraries are executable
20411 postinstall_cmds='chmod +x $lib'
20412 ;;
20413
20414sunos4*)
20415 version_type=sunos
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes
20420 if test "$with_gnu_ld" = yes; then
20421 need_lib_prefix=no
20422 fi
20423 need_version=yes
20424 ;;
20425
Reid Spencera773bd52006-08-04 18:18:08 +000020426sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020427 version_type=linux
20428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 case $host_vendor in
20432 sni)
20433 shlibpath_overrides_runpath=no
20434 need_lib_prefix=no
20435 export_dynamic_flag_spec='${wl}-Blargedynsym'
20436 runpath_var=LD_RUN_PATH
20437 ;;
20438 siemens)
20439 need_lib_prefix=no
20440 ;;
20441 motorola)
20442 need_lib_prefix=no
20443 need_version=no
20444 shlibpath_overrides_runpath=no
20445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20446 ;;
20447 esac
20448 ;;
20449
20450sysv4*MP*)
20451 if test -d /usr/nec ;then
20452 version_type=linux
20453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20454 soname_spec='$libname${shared_ext}.$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 fi
20457 ;;
20458
Reid Spencera773bd52006-08-04 18:18:08 +000020459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20460 version_type=freebsd-elf
20461 need_lib_prefix=no
20462 need_version=no
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 shlibpath_var=LD_LIBRARY_PATH
20466 hardcode_into_libs=yes
20467 if test "$with_gnu_ld" = yes; then
20468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20469 shlibpath_overrides_runpath=no
20470 else
20471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20472 shlibpath_overrides_runpath=yes
20473 case $host_os in
20474 sco3.2v5*)
20475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20476 ;;
20477 esac
20478 fi
20479 sys_lib_dlsearch_path_spec='/usr/lib'
20480 ;;
20481
John Criswell47fdd832003-07-14 16:52:07 +000020482uts4*)
20483 version_type=linux
20484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20485 soname_spec='${libname}${release}${shared_ext}$major'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 ;;
20488
20489*)
20490 dynamic_linker=no
20491 ;;
20492esac
Reid Spencera773bd52006-08-04 18:18:08 +000020493{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20494echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020495test "$dynamic_linker" = no && can_build_shared=no
20496
Reid Spencera773bd52006-08-04 18:18:08 +000020497variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20498if test "$GCC" = yes; then
20499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20500fi
20501
20502{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20503echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020504hardcode_action_CXX=
20505if test -n "$hardcode_libdir_flag_spec_CXX" || \
20506 test -n "$runpath_var_CXX" || \
20507 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20508
20509 # We can hardcode non-existant directories.
20510 if test "$hardcode_direct_CXX" != no &&
20511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20512 # have to relink, otherwise we might link with an installed library
20513 # when we should be linking with a yet-to-be-installed one
20514 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20515 test "$hardcode_minus_L_CXX" != no; then
20516 # Linking always hardcodes the temporary library directory.
20517 hardcode_action_CXX=relink
20518 else
20519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20520 hardcode_action_CXX=immediate
20521 fi
20522else
20523 # We cannot hardcode anything, or else we can only hardcode existing
20524 # directories.
20525 hardcode_action_CXX=unsupported
20526fi
Reid Spencera773bd52006-08-04 18:18:08 +000020527{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20528echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020529
20530if test "$hardcode_action_CXX" = relink; then
20531 # Fast installation is not supported
20532 enable_fast_install=no
20533elif test "$shlibpath_overrides_runpath" = yes ||
20534 test "$enable_shared" = no; then
20535 # Fast installation is not necessary
20536 enable_fast_install=needless
20537fi
20538
John Criswell47fdd832003-07-14 16:52:07 +000020539
20540# The else clause should only fire when bootstrapping the
20541# libtool distribution, otherwise you forgot to ship ltmain.sh
20542# with your package, and you will get complaints that there are
20543# no rules to generate ltmain.sh.
20544if test -f "$ltmain"; then
20545 # See if we are running on zsh, and set the options which allow our commands through
20546 # without removal of \ escapes.
20547 if test -n "${ZSH_VERSION+set}" ; then
20548 setopt NO_GLOB_SUBST
20549 fi
20550 # Now quote all the things that may contain metacharacters while being
20551 # careful not to overquote the AC_SUBSTed values. We take copies of the
20552 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020553 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 +000020554 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020555 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20556 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20557 deplibs_check_method reload_flag reload_cmds need_locks \
20558 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20559 lt_cv_sys_global_symbol_to_c_name_address \
20560 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20561 old_postinstall_cmds old_postuninstall_cmds \
20562 compiler_CXX \
20563 CC_CXX \
20564 LD_CXX \
20565 lt_prog_compiler_wl_CXX \
20566 lt_prog_compiler_pic_CXX \
20567 lt_prog_compiler_static_CXX \
20568 lt_prog_compiler_no_builtin_flag_CXX \
20569 export_dynamic_flag_spec_CXX \
20570 thread_safe_flag_spec_CXX \
20571 whole_archive_flag_spec_CXX \
20572 enable_shared_with_static_runtimes_CXX \
20573 old_archive_cmds_CXX \
20574 old_archive_from_new_cmds_CXX \
20575 predep_objects_CXX \
20576 postdep_objects_CXX \
20577 predeps_CXX \
20578 postdeps_CXX \
20579 compiler_lib_search_path_CXX \
20580 archive_cmds_CXX \
20581 archive_expsym_cmds_CXX \
20582 postinstall_cmds_CXX \
20583 postuninstall_cmds_CXX \
20584 old_archive_from_expsyms_cmds_CXX \
20585 allow_undefined_flag_CXX \
20586 no_undefined_flag_CXX \
20587 export_symbols_cmds_CXX \
20588 hardcode_libdir_flag_spec_CXX \
20589 hardcode_libdir_flag_spec_ld_CXX \
20590 hardcode_libdir_separator_CXX \
20591 hardcode_automatic_CXX \
20592 module_cmds_CXX \
20593 module_expsym_cmds_CXX \
20594 lt_cv_prog_compiler_c_o_CXX \
20595 exclude_expsyms_CXX \
20596 include_expsyms_CXX; do
20597
20598 case $var in
20599 old_archive_cmds_CXX | \
20600 old_archive_from_new_cmds_CXX | \
20601 archive_cmds_CXX | \
20602 archive_expsym_cmds_CXX | \
20603 module_cmds_CXX | \
20604 module_expsym_cmds_CXX | \
20605 old_archive_from_expsyms_cmds_CXX | \
20606 export_symbols_cmds_CXX | \
20607 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20608 postinstall_cmds | postuninstall_cmds | \
20609 old_postinstall_cmds | old_postuninstall_cmds | \
20610 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20611 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020612 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 +000020613 ;;
20614 *)
20615 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20616 ;;
20617 esac
20618 done
20619
20620 case $lt_echo in
20621 *'\$0 --fallback-echo"')
20622 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20623 ;;
20624 esac
20625
20626cfgfile="$ofile"
20627
20628 cat <<__EOF__ >> "$cfgfile"
20629# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20630
20631# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20632
20633# Shell to use when invoking shell scripts.
20634SHELL=$lt_SHELL
20635
20636# Whether or not to build shared libraries.
20637build_libtool_libs=$enable_shared
20638
20639# Whether or not to build static libraries.
20640build_old_libs=$enable_static
20641
20642# Whether or not to add -lc for building shared libraries.
20643build_libtool_need_lc=$archive_cmds_need_lc_CXX
20644
20645# Whether or not to disallow shared libs when runtime libs are static
20646allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20647
20648# Whether or not to optimize for fast installation.
20649fast_install=$enable_fast_install
20650
20651# The host system.
20652host_alias=$host_alias
20653host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020654host_os=$host_os
20655
20656# The build system.
20657build_alias=$build_alias
20658build=$build
20659build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020660
20661# An echo program that does not interpret backslashes.
20662echo=$lt_echo
20663
20664# The archiver.
20665AR=$lt_AR
20666AR_FLAGS=$lt_AR_FLAGS
20667
20668# A C compiler.
20669LTCC=$lt_LTCC
20670
Reid Spencera773bd52006-08-04 18:18:08 +000020671# LTCC compiler flags.
20672LTCFLAGS=$lt_LTCFLAGS
20673
John Criswell47fdd832003-07-14 16:52:07 +000020674# A language-specific compiler.
20675CC=$lt_compiler_CXX
20676
20677# Is the compiler the GNU C compiler?
20678with_gcc=$GCC_CXX
20679
20680# An ERE matcher.
20681EGREP=$lt_EGREP
20682
20683# The linker used to build libraries.
20684LD=$lt_LD_CXX
20685
20686# Whether we need hard or soft links.
20687LN_S=$lt_LN_S
20688
20689# A BSD-compatible nm program.
20690NM=$lt_NM
20691
20692# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020693STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020694
20695# Used to examine libraries when file_magic_cmd begins "file"
20696MAGIC_CMD=$MAGIC_CMD
20697
20698# Used on cygwin: DLL creation program.
20699DLLTOOL="$DLLTOOL"
20700
20701# Used on cygwin: object dumper.
20702OBJDUMP="$OBJDUMP"
20703
20704# Used on cygwin: assembler.
20705AS="$AS"
20706
20707# The name of the directory that contains temporary libtool files.
20708objdir=$objdir
20709
20710# How to create reloadable object files.
20711reload_flag=$lt_reload_flag
20712reload_cmds=$lt_reload_cmds
20713
20714# How to pass a linker flag through the compiler.
20715wl=$lt_lt_prog_compiler_wl_CXX
20716
20717# Object file suffix (normally "o").
20718objext="$ac_objext"
20719
20720# Old archive suffix (normally "a").
20721libext="$libext"
20722
20723# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020724shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020725
20726# Executable file suffix (normally "").
20727exeext="$exeext"
20728
20729# Additional compiler flags for building library objects.
20730pic_flag=$lt_lt_prog_compiler_pic_CXX
20731pic_mode=$pic_mode
20732
20733# What is the maximum length of a command?
20734max_cmd_len=$lt_cv_sys_max_cmd_len
20735
20736# Does compiler simultaneously support -c and -o options?
20737compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20738
Reid Spencera773bd52006-08-04 18:18:08 +000020739# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020740need_locks=$lt_need_locks
20741
20742# Do we need the lib prefix for modules?
20743need_lib_prefix=$need_lib_prefix
20744
20745# Do we need a version for libraries?
20746need_version=$need_version
20747
20748# Whether dlopen is supported.
20749dlopen_support=$enable_dlopen
20750
20751# Whether dlopen of programs is supported.
20752dlopen_self=$enable_dlopen_self
20753
20754# Whether dlopen of statically linked programs is supported.
20755dlopen_self_static=$enable_dlopen_self_static
20756
20757# Compiler flag to prevent dynamic linking.
20758link_static_flag=$lt_lt_prog_compiler_static_CXX
20759
20760# Compiler flag to turn off builtin functions.
20761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20762
20763# Compiler flag to allow reflexive dlopens.
20764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20765
20766# Compiler flag to generate shared objects directly from archives.
20767whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20768
20769# Compiler flag to generate thread-safe objects.
20770thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20771
20772# Library versioning type.
20773version_type=$version_type
20774
20775# Format of library name prefix.
20776libname_spec=$lt_libname_spec
20777
20778# List of archive names. First name is the real one, the rest are links.
20779# The last name is the one that the linker finds with -lNAME.
20780library_names_spec=$lt_library_names_spec
20781
20782# The coded name of the library, if different from the real name.
20783soname_spec=$lt_soname_spec
20784
20785# Commands used to build and install an old-style archive.
20786RANLIB=$lt_RANLIB
20787old_archive_cmds=$lt_old_archive_cmds_CXX
20788old_postinstall_cmds=$lt_old_postinstall_cmds
20789old_postuninstall_cmds=$lt_old_postuninstall_cmds
20790
20791# Create an old-style archive from a shared archive.
20792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20793
20794# Create a temporary old-style archive to link instead of a shared archive.
20795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20796
20797# Commands used to build and install a shared archive.
20798archive_cmds=$lt_archive_cmds_CXX
20799archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20800postinstall_cmds=$lt_postinstall_cmds
20801postuninstall_cmds=$lt_postuninstall_cmds
20802
20803# Commands used to build a loadable module (assumed same as above if empty)
20804module_cmds=$lt_module_cmds_CXX
20805module_expsym_cmds=$lt_module_expsym_cmds_CXX
20806
20807# Commands to strip libraries.
20808old_striplib=$lt_old_striplib
20809striplib=$lt_striplib
20810
20811# Dependencies to place before the objects being linked to create a
20812# shared library.
20813predep_objects=$lt_predep_objects_CXX
20814
20815# Dependencies to place after the objects being linked to create a
20816# shared library.
20817postdep_objects=$lt_postdep_objects_CXX
20818
20819# Dependencies to place before the objects being linked to create a
20820# shared library.
20821predeps=$lt_predeps_CXX
20822
20823# Dependencies to place after the objects being linked to create a
20824# shared library.
20825postdeps=$lt_postdeps_CXX
20826
20827# The library search path used internally by the compiler when linking
20828# a shared library.
20829compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20830
20831# Method to check whether dependent libraries are shared objects.
20832deplibs_check_method=$lt_deplibs_check_method
20833
20834# Command to use when deplibs_check_method == file_magic.
20835file_magic_cmd=$lt_file_magic_cmd
20836
20837# Flag that allows shared libraries with undefined symbols to be built.
20838allow_undefined_flag=$lt_allow_undefined_flag_CXX
20839
20840# Flag that forces no undefined symbols.
20841no_undefined_flag=$lt_no_undefined_flag_CXX
20842
20843# Commands used to finish a libtool library installation in a directory.
20844finish_cmds=$lt_finish_cmds
20845
20846# Same as above, but a single script fragment to be evaled but not shown.
20847finish_eval=$lt_finish_eval
20848
20849# Take the output of nm and produce a listing of raw symbols and C names.
20850global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20851
20852# Transform the output of nm in a proper C declaration
20853global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20854
20855# Transform the output of nm in a C name address pair
20856global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20857
20858# This is the shared library runtime path variable.
20859runpath_var=$runpath_var
20860
20861# This is the shared library path variable.
20862shlibpath_var=$shlibpath_var
20863
20864# Is shlibpath searched before the hard-coded library search path?
20865shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20866
20867# How to hardcode a shared library path into an executable.
20868hardcode_action=$hardcode_action_CXX
20869
20870# Whether we should hardcode library paths into libraries.
20871hardcode_into_libs=$hardcode_into_libs
20872
20873# Flag to hardcode \$libdir into a binary during linking.
20874# This must work even if \$libdir does not exist.
20875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20876
20877# If ld is used when linking, flag to hardcode \$libdir into
20878# a binary during linking. This must work even if \$libdir does
20879# not exist.
20880hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20881
20882# Whether we need a single -rpath flag with a separated argument.
20883hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20884
20885# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20886# resulting binary.
20887hardcode_direct=$hardcode_direct_CXX
20888
20889# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20890# resulting binary.
20891hardcode_minus_L=$hardcode_minus_L_CXX
20892
20893# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20894# the resulting binary.
20895hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20896
20897# Set to yes if building a shared library automatically hardcodes DIR into the library
20898# and all subsequent libraries and executables linked against it.
20899hardcode_automatic=$hardcode_automatic_CXX
20900
20901# Variables whose values should be saved in libtool wrapper scripts and
20902# restored at relink time.
20903variables_saved_for_relink="$variables_saved_for_relink"
20904
20905# Whether libtool must link a program against all its dependency libraries.
20906link_all_deplibs=$link_all_deplibs_CXX
20907
20908# Compile-time system search path for libraries
20909sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20910
20911# Run-time system search path for libraries
20912sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20913
20914# Fix the shell variable \$srcfile for the compiler.
20915fix_srcfile_path="$fix_srcfile_path_CXX"
20916
20917# Set to yes if exported symbols are required.
20918always_export_symbols=$always_export_symbols_CXX
20919
20920# The commands to list exported symbols.
20921export_symbols_cmds=$lt_export_symbols_cmds_CXX
20922
20923# The commands to extract the exported symbol list from a shared archive.
20924extract_expsyms_cmds=$lt_extract_expsyms_cmds
20925
20926# Symbols that should not be listed in the preloaded symbols.
20927exclude_expsyms=$lt_exclude_expsyms_CXX
20928
20929# Symbols that must always be exported.
20930include_expsyms=$lt_include_expsyms_CXX
20931
20932# ### END LIBTOOL TAG CONFIG: $tagname
20933
20934__EOF__
20935
20936
20937else
20938 # If there is no Makefile yet, we rely on a make rule to execute
20939 # `config.status --recheck' to rerun these tests and create the
20940 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020941 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20942 if test -f "$ltmain_in"; then
20943 test -f Makefile && make "$ltmain"
20944 fi
John Criswell47fdd832003-07-14 16:52:07 +000020945fi
20946
20947
20948ac_ext=c
20949ac_cpp='$CPP $CPPFLAGS'
20950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953
20954CC=$lt_save_CC
20955LDCXX=$LD
20956LD=$lt_save_LD
20957GCC=$lt_save_GCC
20958with_gnu_ldcxx=$with_gnu_ld
20959with_gnu_ld=$lt_save_with_gnu_ld
20960lt_cv_path_LDCXX=$lt_cv_path_LD
20961lt_cv_path_LD=$lt_save_path_LD
20962lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20963lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20964
20965 else
20966 tagname=""
20967 fi
20968 ;;
20969
20970 F77)
20971 if test -n "$F77" && test "X$F77" != "Xno"; then
20972
20973ac_ext=f
20974ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20975ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20977
20978
20979archive_cmds_need_lc_F77=no
20980allow_undefined_flag_F77=
20981always_export_symbols_F77=no
20982archive_expsym_cmds_F77=
20983export_dynamic_flag_spec_F77=
20984hardcode_direct_F77=no
20985hardcode_libdir_flag_spec_F77=
20986hardcode_libdir_flag_spec_ld_F77=
20987hardcode_libdir_separator_F77=
20988hardcode_minus_L_F77=no
20989hardcode_automatic_F77=no
20990module_cmds_F77=
20991module_expsym_cmds_F77=
20992link_all_deplibs_F77=unknown
20993old_archive_cmds_F77=$old_archive_cmds
20994no_undefined_flag_F77=
20995whole_archive_flag_spec_F77=
20996enable_shared_with_static_runtimes_F77=no
20997
20998# Source file extension for f77 test sources.
20999ac_ext=f
21000
21001# Object file extension for compiled f77 test sources.
21002objext=o
21003objext_F77=$objext
21004
21005# Code to be used in simple compile tests
21006lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21007
21008# Code to be used in simple link tests
21009lt_simple_link_test_code=" program t\n end\n"
21010
21011# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21012
21013# If no C compiler was specified, use CC.
21014LTCC=${LTCC-"$CC"}
21015
Reid Spencera773bd52006-08-04 18:18:08 +000021016# If no C compiler flags were specified, use CFLAGS.
21017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21018
John Criswell47fdd832003-07-14 16:52:07 +000021019# Allow CC to be a program name with arguments.
21020compiler=$CC
21021
21022
Reid Spencera773bd52006-08-04 18:18:08 +000021023# save warnings/boilerplate of simple test code
21024ac_outfile=conftest.$ac_objext
21025printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21026eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21027_lt_compiler_boilerplate=`cat conftest.err`
21028$rm conftest*
21029
21030ac_outfile=conftest.$ac_objext
21031printf "$lt_simple_link_test_code" >conftest.$ac_ext
21032eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21033_lt_linker_boilerplate=`cat conftest.err`
21034$rm conftest*
21035
21036
John Criswell47fdd832003-07-14 16:52:07 +000021037# Allow CC to be a program name with arguments.
21038lt_save_CC="$CC"
21039CC=${F77-"f77"}
21040compiler=$CC
21041compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021042for cc_temp in $compiler""; do
21043 case $cc_temp in
21044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21046 \-*) ;;
21047 *) break;;
21048 esac
21049done
21050cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021051
John Criswell47fdd832003-07-14 16:52:07 +000021052
Reid Spencera773bd52006-08-04 18:18:08 +000021053{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21054echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21055{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21056echo "${ECHO_T}$can_build_shared" >&6; }
21057
21058{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21059echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021060test "$can_build_shared" = "no" && enable_shared=no
21061
21062# On AIX, shared libraries and static libraries use the same namespace, and
21063# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021064case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021065aix3*)
21066 test "$enable_shared" = yes && enable_static=no
21067 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021068 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021069 postinstall_cmds='$RANLIB $lib'
21070 fi
21071 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021072aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21074 test "$enable_shared" = yes && enable_static=no
21075 fi
John Criswell47fdd832003-07-14 16:52:07 +000021076 ;;
21077esac
Reid Spencera773bd52006-08-04 18:18:08 +000021078{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21079echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021080
Reid Spencera773bd52006-08-04 18:18:08 +000021081{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21082echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021083# Make sure either enable_shared or enable_static is yes.
21084test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021085{ echo "$as_me:$LINENO: result: $enable_static" >&5
21086echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021087
21088GCC_F77="$G77"
21089LD_F77="$LD"
21090
21091lt_prog_compiler_wl_F77=
21092lt_prog_compiler_pic_F77=
21093lt_prog_compiler_static_F77=
21094
Reid Spencera773bd52006-08-04 18:18:08 +000021095{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21096echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021097
21098 if test "$GCC" = yes; then
21099 lt_prog_compiler_wl_F77='-Wl,'
21100 lt_prog_compiler_static_F77='-static'
21101
21102 case $host_os in
21103 aix*)
21104 # All AIX code is PIC.
21105 if test "$host_cpu" = ia64; then
21106 # AIX 5 now supports IA64 processor
21107 lt_prog_compiler_static_F77='-Bstatic'
21108 fi
21109 ;;
21110
21111 amigaos*)
21112 # FIXME: we need at least 68020 code to build shared libraries, but
21113 # adding the `-m68020' flag to GCC prevents building anything better,
21114 # like `-m68040'.
21115 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21116 ;;
21117
21118 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21119 # PIC is the default for these OSes.
21120 ;;
21121
21122 mingw* | pw32* | os2*)
21123 # This hack is so that the source file can tell whether it is being
21124 # built for inclusion in a dll (and should export symbols for example).
21125 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21126 ;;
21127
21128 darwin* | rhapsody*)
21129 # PIC is the default on this platform
21130 # Common symbols not allowed in MH_DYLIB files
21131 lt_prog_compiler_pic_F77='-fno-common'
21132 ;;
21133
Reid Spencera773bd52006-08-04 18:18:08 +000021134 interix3*)
21135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21136 # Instead, we relocate shared libraries at runtime.
21137 ;;
21138
John Criswell47fdd832003-07-14 16:52:07 +000021139 msdosdjgpp*)
21140 # Just because we use GCC doesn't mean we suddenly get shared libraries
21141 # on systems that don't support them.
21142 lt_prog_compiler_can_build_shared_F77=no
21143 enable_shared=no
21144 ;;
21145
21146 sysv4*MP*)
21147 if test -d /usr/nec; then
21148 lt_prog_compiler_pic_F77=-Kconform_pic
21149 fi
21150 ;;
21151
21152 hpux*)
21153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21154 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021155 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021156 hppa*64*|ia64*)
21157 # +Z the default
21158 ;;
21159 *)
21160 lt_prog_compiler_pic_F77='-fPIC'
21161 ;;
21162 esac
21163 ;;
21164
21165 *)
21166 lt_prog_compiler_pic_F77='-fPIC'
21167 ;;
21168 esac
21169 else
21170 # PORTME Check for flag to pass linker flags through the system compiler.
21171 case $host_os in
21172 aix*)
21173 lt_prog_compiler_wl_F77='-Wl,'
21174 if test "$host_cpu" = ia64; then
21175 # AIX 5 now supports IA64 processor
21176 lt_prog_compiler_static_F77='-Bstatic'
21177 else
21178 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21179 fi
21180 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021181 darwin*)
21182 # PIC is the default on this platform
21183 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021184 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021185 xlc*)
21186 lt_prog_compiler_pic_F77='-qnocommon'
21187 lt_prog_compiler_wl_F77='-Wl,'
21188 ;;
21189 esac
21190 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021191
21192 mingw* | pw32* | os2*)
21193 # This hack is so that the source file can tell whether it is being
21194 # built for inclusion in a dll (and should export symbols for example).
21195 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21196 ;;
21197
21198 hpux9* | hpux10* | hpux11*)
21199 lt_prog_compiler_wl_F77='-Wl,'
21200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21201 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021202 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021203 hppa*64*|ia64*)
21204 # +Z the default
21205 ;;
21206 *)
21207 lt_prog_compiler_pic_F77='+Z'
21208 ;;
21209 esac
21210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21211 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21212 ;;
21213
21214 irix5* | irix6* | nonstopux*)
21215 lt_prog_compiler_wl_F77='-Wl,'
21216 # PIC (with -KPIC) is the default.
21217 lt_prog_compiler_static_F77='-non_shared'
21218 ;;
21219
21220 newsos6)
21221 lt_prog_compiler_pic_F77='-KPIC'
21222 lt_prog_compiler_static_F77='-Bstatic'
21223 ;;
21224
21225 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021226 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021227 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021228 lt_prog_compiler_wl_F77='-Wl,'
21229 lt_prog_compiler_pic_F77='-KPIC'
21230 lt_prog_compiler_static_F77='-static'
21231 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021232 pgcc* | pgf77* | pgf90* | pgf95*)
21233 # Portland Group compilers (*not* the Pentium gcc compiler,
21234 # which looks to be a dead project)
21235 lt_prog_compiler_wl_F77='-Wl,'
21236 lt_prog_compiler_pic_F77='-fpic'
21237 lt_prog_compiler_static_F77='-Bstatic'
21238 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021239 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021240 lt_prog_compiler_wl_F77='-Wl,'
21241 # All Alpha code is PIC.
21242 lt_prog_compiler_static_F77='-non_shared'
21243 ;;
21244 esac
21245 ;;
21246
21247 osf3* | osf4* | osf5*)
21248 lt_prog_compiler_wl_F77='-Wl,'
21249 # All OSF/1 code is PIC.
21250 lt_prog_compiler_static_F77='-non_shared'
21251 ;;
21252
John Criswell47fdd832003-07-14 16:52:07 +000021253 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021254 lt_prog_compiler_pic_F77='-KPIC'
21255 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021256 case $cc_basename in
21257 f77* | f90* | f95*)
21258 lt_prog_compiler_wl_F77='-Qoption ld ';;
21259 *)
21260 lt_prog_compiler_wl_F77='-Wl,';;
21261 esac
John Criswell47fdd832003-07-14 16:52:07 +000021262 ;;
21263
21264 sunos4*)
21265 lt_prog_compiler_wl_F77='-Qoption ld '
21266 lt_prog_compiler_pic_F77='-PIC'
21267 lt_prog_compiler_static_F77='-Bstatic'
21268 ;;
21269
Reid Spencera773bd52006-08-04 18:18:08 +000021270 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021271 lt_prog_compiler_wl_F77='-Wl,'
21272 lt_prog_compiler_pic_F77='-KPIC'
21273 lt_prog_compiler_static_F77='-Bstatic'
21274 ;;
21275
21276 sysv4*MP*)
21277 if test -d /usr/nec ;then
21278 lt_prog_compiler_pic_F77='-Kconform_pic'
21279 lt_prog_compiler_static_F77='-Bstatic'
21280 fi
21281 ;;
21282
Reid Spencera773bd52006-08-04 18:18:08 +000021283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21284 lt_prog_compiler_wl_F77='-Wl,'
21285 lt_prog_compiler_pic_F77='-KPIC'
21286 lt_prog_compiler_static_F77='-Bstatic'
21287 ;;
21288
21289 unicos*)
21290 lt_prog_compiler_wl_F77='-Wl,'
21291 lt_prog_compiler_can_build_shared_F77=no
21292 ;;
21293
John Criswell47fdd832003-07-14 16:52:07 +000021294 uts4*)
21295 lt_prog_compiler_pic_F77='-pic'
21296 lt_prog_compiler_static_F77='-Bstatic'
21297 ;;
21298
21299 *)
21300 lt_prog_compiler_can_build_shared_F77=no
21301 ;;
21302 esac
21303 fi
21304
Reid Spencera773bd52006-08-04 18:18:08 +000021305{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21306echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021307
21308#
21309# Check to make sure the PIC flag actually works.
21310#
21311if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021312
Reid Spencera773bd52006-08-04 18:18:08 +000021313{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21314echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021315if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21317else
21318 lt_prog_compiler_pic_works_F77=no
21319 ac_outfile=conftest.$ac_objext
21320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21321 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21322 # Insert the option either (1) after the last *FLAGS variable, or
21323 # (2) before a word containing "conftest.", or (3) at the end.
21324 # Note that $ac_compile itself does not contain backslashes and begins
21325 # with a dollar sign (not a hyphen), so the echo should work correctly.
21326 # The option is referenced via a variable to avoid confusing sed.
21327 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21330 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000021331 (eval echo "\"\$as_me:21331: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021332 (eval "$lt_compile" 2>conftest.err)
21333 ac_status=$?
21334 cat conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000021335 echo "$as_me:21335: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021336 if (exit $ac_status) && test -s "$ac_outfile"; then
21337 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021338 # So say no if there are warnings other than the usual output.
21339 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021342 lt_prog_compiler_pic_works_F77=yes
21343 fi
21344 fi
21345 $rm conftest*
21346
21347fi
Reid Spencera773bd52006-08-04 18:18:08 +000021348{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21349echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021350
21351if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21352 case $lt_prog_compiler_pic_F77 in
21353 "" | " "*) ;;
21354 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21355 esac
21356else
21357 lt_prog_compiler_pic_F77=
21358 lt_prog_compiler_can_build_shared_F77=no
21359fi
21360
21361fi
Reid Spencera773bd52006-08-04 18:18:08 +000021362case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021363 # For platforms which do not support PIC, -DPIC is meaningless:
21364 *djgpp*)
21365 lt_prog_compiler_pic_F77=
21366 ;;
21367 *)
21368 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21369 ;;
21370esac
21371
Reid Spencera773bd52006-08-04 18:18:08 +000021372#
21373# Check to make sure the static flag actually works.
21374#
21375wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21376{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21377echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21378if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380else
21381 lt_prog_compiler_static_works_F77=no
21382 save_LDFLAGS="$LDFLAGS"
21383 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21384 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21385 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21386 # The linker can only warn and ignore the option if not recognized
21387 # So say no if there are warnings
21388 if test -s conftest.err; then
21389 # Append any errors to the config.log.
21390 cat conftest.err 1>&5
21391 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21393 if diff conftest.exp conftest.er2 >/dev/null; then
21394 lt_prog_compiler_static_works_F77=yes
21395 fi
21396 else
21397 lt_prog_compiler_static_works_F77=yes
21398 fi
21399 fi
21400 $rm conftest*
21401 LDFLAGS="$save_LDFLAGS"
21402
21403fi
21404{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21405echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21406
21407if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21408 :
21409else
21410 lt_prog_compiler_static_F77=
21411fi
21412
21413
21414{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21415echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021416if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21418else
21419 lt_cv_prog_compiler_c_o_F77=no
21420 $rm -r conftest 2>/dev/null
21421 mkdir conftest
21422 cd conftest
21423 mkdir out
21424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21425
John Criswell47fdd832003-07-14 16:52:07 +000021426 lt_compiler_flag="-o out/conftest2.$ac_objext"
21427 # Insert the option either (1) after the last *FLAGS variable, or
21428 # (2) before a word containing "conftest.", or (3) at the end.
21429 # Note that $ac_compile itself does not contain backslashes and begins
21430 # with a dollar sign (not a hyphen), so the echo should work correctly.
21431 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21434 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000021435 (eval echo "\"\$as_me:21435: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021436 (eval "$lt_compile" 2>out/conftest.err)
21437 ac_status=$?
21438 cat out/conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000021439 echo "$as_me:21439: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21441 then
21442 # The compiler can only warn and ignore the option if not recognized
21443 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021444 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021447 lt_cv_prog_compiler_c_o_F77=yes
21448 fi
21449 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021450 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021451 $rm conftest*
21452 # SGI C++ compiler will create directory out/ii_files/ for
21453 # template instantiation
21454 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21455 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021456 cd ..
21457 rmdir conftest
21458 $rm conftest*
21459
21460fi
Reid Spencera773bd52006-08-04 18:18:08 +000021461{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21462echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021463
21464
21465hard_links="nottested"
21466if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21467 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021468 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21469echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021470 hard_links=yes
21471 $rm conftest*
21472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21473 touch conftest.a
21474 ln conftest.a conftest.b 2>&5 || hard_links=no
21475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021476 { echo "$as_me:$LINENO: result: $hard_links" >&5
21477echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021478 if test "$hard_links" = no; then
21479 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21480echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21481 need_locks=warn
21482 fi
21483else
21484 need_locks=no
21485fi
21486
Reid Spencera773bd52006-08-04 18:18:08 +000021487{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21488echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021489
21490 runpath_var=
21491 allow_undefined_flag_F77=
21492 enable_shared_with_static_runtimes_F77=no
21493 archive_cmds_F77=
21494 archive_expsym_cmds_F77=
21495 old_archive_From_new_cmds_F77=
21496 old_archive_from_expsyms_cmds_F77=
21497 export_dynamic_flag_spec_F77=
21498 whole_archive_flag_spec_F77=
21499 thread_safe_flag_spec_F77=
21500 hardcode_libdir_flag_spec_F77=
21501 hardcode_libdir_flag_spec_ld_F77=
21502 hardcode_libdir_separator_F77=
21503 hardcode_direct_F77=no
21504 hardcode_minus_L_F77=no
21505 hardcode_shlibpath_var_F77=unsupported
21506 link_all_deplibs_F77=unknown
21507 hardcode_automatic_F77=no
21508 module_cmds_F77=
21509 module_expsym_cmds_F77=
21510 always_export_symbols_F77=no
21511 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21512 # include_expsyms should be a list of space-separated symbols to be *always*
21513 # included in the symbol list
21514 include_expsyms_F77=
21515 # exclude_expsyms can be an extended regexp of symbols to exclude
21516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21518 # as well as any symbol that contains `d'.
21519 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21521 # platforms (ab)use it in PIC code, but their linkers get confused if
21522 # the symbol is explicitly referenced. Since portable code cannot
21523 # rely on this symbol name, it's probably fine to never include it in
21524 # preloaded symbol tables.
21525 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021526 # Just being paranoid about ensuring that cc_basename is set.
21527 for cc_temp in $compiler""; do
21528 case $cc_temp in
21529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21531 \-*) ;;
21532 *) break;;
21533 esac
21534done
21535cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021536
21537 case $host_os in
21538 cygwin* | mingw* | pw32*)
21539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21540 # When not using gcc, we currently assume that we are using
21541 # Microsoft Visual C++.
21542 if test "$GCC" != yes; then
21543 with_gnu_ld=no
21544 fi
21545 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021546 interix*)
21547 # we just hope/assume this is gcc and not c89 (= MSVC++)
21548 with_gnu_ld=yes
21549 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021550 openbsd*)
21551 with_gnu_ld=no
21552 ;;
21553 esac
21554
21555 ld_shlibs_F77=yes
21556 if test "$with_gnu_ld" = yes; then
21557 # If archive_cmds runs LD, not CC, wlarc should be empty
21558 wlarc='${wl}'
21559
Reid Spencera773bd52006-08-04 18:18:08 +000021560 # Set some defaults for GNU ld with shared library support. These
21561 # are reset later if shared libraries are not supported. Putting them
21562 # here allows them to be overridden if necessary.
21563 runpath_var=LD_RUN_PATH
21564 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21565 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21566 # ancient GNU ld didn't support --whole-archive et. al.
21567 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21568 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21569 else
21570 whole_archive_flag_spec_F77=
21571 fi
21572 supports_anon_versioning=no
21573 case `$LD -v 2>/dev/null` in
21574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21577 *\ 2.11.*) ;; # other 2.11 versions
21578 *) supports_anon_versioning=yes ;;
21579 esac
21580
John Criswell47fdd832003-07-14 16:52:07 +000021581 # See if GNU ld supports shared libraries.
21582 case $host_os in
21583 aix3* | aix4* | aix5*)
21584 # On AIX/PPC, the GNU linker is very broken
21585 if test "$host_cpu" != ia64; then
21586 ld_shlibs_F77=no
21587 cat <<EOF 1>&2
21588
21589*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21590*** to be unable to reliably create shared libraries on AIX.
21591*** Therefore, libtool is disabling shared libraries support. If you
21592*** really care for shared libraries, you may want to modify your PATH
21593*** so that a non-GNU linker is found, and then restart.
21594
21595EOF
21596 fi
21597 ;;
21598
21599 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021600 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 +000021601 hardcode_libdir_flag_spec_F77='-L$libdir'
21602 hardcode_minus_L_F77=yes
21603
21604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21605 # that the semantics of dynamic libraries on AmigaOS, at least up
21606 # to version 4, is to share data among multiple programs linked
21607 # with the same dynamic library. Since this doesn't match the
21608 # behavior of shared libraries on other platforms, we can't use
21609 # them.
21610 ld_shlibs_F77=no
21611 ;;
21612
21613 beos*)
21614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21615 allow_undefined_flag_F77=unsupported
21616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21617 # support --undefined. This deserves some investigation. FIXME
21618 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21619 else
21620 ld_shlibs_F77=no
21621 fi
21622 ;;
21623
21624 cygwin* | mingw* | pw32*)
21625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21626 # as there is no search path for DLLs.
21627 hardcode_libdir_flag_spec_F77='-L$libdir'
21628 allow_undefined_flag_F77=unsupported
21629 always_export_symbols_F77=no
21630 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021631 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 +000021632
21633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021634 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 +000021635 # If the export-symbols file already is a .def file (1st line
21636 # is EXPORTS), use it as is; otherwise, prepend...
21637 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21638 cp $export_symbols $output_objdir/$soname.def;
21639 else
21640 echo EXPORTS > $output_objdir/$soname.def;
21641 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021642 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021643 $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 +000021644 else
Reid Spencera773bd52006-08-04 18:18:08 +000021645 ld_shlibs_F77=no
21646 fi
21647 ;;
21648
21649 interix3*)
21650 hardcode_direct_F77=no
21651 hardcode_shlibpath_var_F77=no
21652 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21653 export_dynamic_flag_spec_F77='${wl}-E'
21654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21655 # Instead, shared libraries are loaded at an image base (0x10000000 by
21656 # default) and relocated if they conflict, which is a slow very memory
21657 # consuming and fragmenting process. To avoid this, we pick a random,
21658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21660 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'
21661 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'
21662 ;;
21663
21664 linux*)
21665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21666 tmp_addflag=
21667 case $cc_basename,$host_cpu in
21668 pgcc*) # Portland Group C compiler
21669 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'
21670 tmp_addflag=' $pic_flag'
21671 ;;
21672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21673 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'
21674 tmp_addflag=' $pic_flag -Mnomain' ;;
21675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21676 tmp_addflag=' -i_dynamic' ;;
21677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21678 tmp_addflag=' -i_dynamic -nofor_main' ;;
21679 ifc* | ifort*) # Intel Fortran compiler
21680 tmp_addflag=' -nofor_main' ;;
21681 esac
21682 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21683
21684 if test $supports_anon_versioning = yes; then
21685 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21687 $echo "local: *; };" >> $output_objdir/$libname.ver~
21688 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21689 fi
21690 else
21691 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021692 fi
21693 ;;
21694
21695 netbsd*)
21696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21697 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21698 wlarc=
21699 else
21700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21701 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21702 fi
21703 ;;
21704
Reid Spencera773bd52006-08-04 18:18:08 +000021705 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021706 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21707 ld_shlibs_F77=no
21708 cat <<EOF 1>&2
21709
21710*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21711*** create shared libraries on Solaris systems. Therefore, libtool
21712*** is disabling shared libraries support. We urge you to upgrade GNU
21713*** binutils to release 2.9.1 or newer. Another option is to modify
21714*** your PATH or compiler configuration so that the native linker is
21715*** used, and then restart.
21716
21717EOF
21718 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21719 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21720 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21721 else
21722 ld_shlibs_F77=no
21723 fi
21724 ;;
21725
Reid Spencera773bd52006-08-04 18:18:08 +000021726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21727 case `$LD -v 2>&1` in
21728 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21729 ld_shlibs_F77=no
21730 cat <<_LT_EOF 1>&2
21731
21732*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21733*** reliably create shared libraries on SCO systems. Therefore, libtool
21734*** is disabling shared libraries support. We urge you to upgrade GNU
21735*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21736*** your PATH or compiler configuration so that the native linker is
21737*** used, and then restart.
21738
21739_LT_EOF
21740 ;;
21741 *)
21742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21746 else
21747 ld_shlibs_F77=no
21748 fi
21749 ;;
21750 esac
21751 ;;
21752
John Criswell47fdd832003-07-14 16:52:07 +000021753 sunos4*)
21754 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21755 wlarc=
21756 hardcode_direct_F77=yes
21757 hardcode_shlibpath_var_F77=no
21758 ;;
21759
21760 *)
21761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21764 else
21765 ld_shlibs_F77=no
21766 fi
21767 ;;
21768 esac
21769
Reid Spencera773bd52006-08-04 18:18:08 +000021770 if test "$ld_shlibs_F77" = no; then
21771 runpath_var=
21772 hardcode_libdir_flag_spec_F77=
21773 export_dynamic_flag_spec_F77=
21774 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021775 fi
21776 else
21777 # PORTME fill in a description of your system's linker (not GNU ld)
21778 case $host_os in
21779 aix3*)
21780 allow_undefined_flag_F77=unsupported
21781 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021782 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 +000021783 # Note: this linker hardcodes the directories in LIBPATH if there
21784 # are no directories specified by -L.
21785 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021786 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021787 # Neither direct hardcoding nor static linking is supported with a
21788 # broken collect2.
21789 hardcode_direct_F77=unsupported
21790 fi
21791 ;;
21792
21793 aix4* | aix5*)
21794 if test "$host_cpu" = ia64; then
21795 # On IA64, the linker does run time linking by default, so we don't
21796 # have to do anything special.
21797 aix_use_runtimelinking=no
21798 exp_sym_flag='-Bexport'
21799 no_entry_flag=""
21800 else
21801 # If we're using GNU nm, then we don't want the "-C" option.
21802 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21803 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21804 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'
21805 else
21806 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'
21807 fi
21808 aix_use_runtimelinking=no
21809
21810 # Test if we are trying to use run time linking or normal
21811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21812 # need to do runtime linking.
21813 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21814 for ld_flag in $LDFLAGS; do
21815 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21816 aix_use_runtimelinking=yes
21817 break
21818 fi
21819 done
Reid Spencera773bd52006-08-04 18:18:08 +000021820 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021821 esac
21822
21823 exp_sym_flag='-bexport'
21824 no_entry_flag='-bnoentry'
21825 fi
21826
21827 # When large executables or shared objects are built, AIX ld can
21828 # have problems creating the table of contents. If linking a library
21829 # or program results in "error TOC overflow" add -mminimal-toc to
21830 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21831 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21832
21833 archive_cmds_F77=''
21834 hardcode_direct_F77=yes
21835 hardcode_libdir_separator_F77=':'
21836 link_all_deplibs_F77=yes
21837
21838 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021839 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021840 # We only want to do this on AIX 4.2 and lower, the check
21841 # below for broken collect2 doesn't work under 4.3+
21842 collect2name=`${CC} -print-prog-name=collect2`
21843 if test -f "$collect2name" && \
21844 strings "$collect2name" | grep resolve_lib_name >/dev/null
21845 then
21846 # We have reworked collect2
21847 hardcode_direct_F77=yes
21848 else
21849 # We have old collect2
21850 hardcode_direct_F77=unsupported
21851 # It fails to find uninstalled libraries when the uninstalled
21852 # path is not listed in the libpath. Setting hardcode_minus_L
21853 # to unsupported forces relinking
21854 hardcode_minus_L_F77=yes
21855 hardcode_libdir_flag_spec_F77='-L$libdir'
21856 hardcode_libdir_separator_F77=
21857 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021858 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021859 esac
21860 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021861 if test "$aix_use_runtimelinking" = yes; then
21862 shared_flag="$shared_flag "'${wl}-G'
21863 fi
John Criswell47fdd832003-07-14 16:52:07 +000021864 else
21865 # not using gcc
21866 if test "$host_cpu" = ia64; then
21867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21868 # chokes on -Wl,-G. The following line is correct:
21869 shared_flag='-G'
21870 else
Reid Spencera773bd52006-08-04 18:18:08 +000021871 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021872 shared_flag='${wl}-G'
21873 else
21874 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021875 fi
John Criswell47fdd832003-07-14 16:52:07 +000021876 fi
21877 fi
21878
21879 # It seems that -bexpall does not export symbols beginning with
21880 # underscore (_), so it is better to generate a list of symbols to export.
21881 always_export_symbols_F77=yes
21882 if test "$aix_use_runtimelinking" = yes; then
21883 # Warning - without using the other runtime loading flags (-brtl),
21884 # -berok will link without error, but may produce a broken library.
21885 allow_undefined_flag_F77='-berok'
21886 # Determine the default libpath from the value encoded in an empty executable.
21887 cat >conftest.$ac_ext <<_ACEOF
21888 program main
21889
21890 end
21891_ACEOF
21892rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021893if { (ac_try="$ac_link"
21894case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897esac
21898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021900 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021906 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21907 { (case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910esac
21911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021917 { (case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920esac
21921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21926
21927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21928}'`
21929# Check for a 64-bit object if we didn't find anything.
21930if 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; }
21931}'`; fi
21932else
21933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021934sed 's/^/| /' conftest.$ac_ext >&5
21935
Reid Spencera773bd52006-08-04 18:18:08 +000021936
John Criswell47fdd832003-07-14 16:52:07 +000021937fi
Reid Spencera773bd52006-08-04 18:18:08 +000021938
21939rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021940 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21942
21943 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021944 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 +000021945 else
21946 if test "$host_cpu" = ia64; then
21947 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21948 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021949 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 +000021950 else
21951 # Determine the default libpath from the value encoded in an empty executable.
21952 cat >conftest.$ac_ext <<_ACEOF
21953 program main
21954
21955 end
21956_ACEOF
21957rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021958if { (ac_try="$ac_link"
21959case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962esac
21963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021971 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21972 { (case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975esac
21976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; } &&
21981 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021982 { (case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985esac
21986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991
21992aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21993}'`
21994# Check for a 64-bit object if we didn't find anything.
21995if 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; }
21996}'`; fi
21997else
21998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021999sed 's/^/| /' conftest.$ac_ext >&5
22000
Reid Spencera773bd52006-08-04 18:18:08 +000022001
John Criswell47fdd832003-07-14 16:52:07 +000022002fi
Reid Spencera773bd52006-08-04 18:18:08 +000022003
22004rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022005 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022006if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22007
22008 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22009 # Warning - without using the other run time loading flags,
22010 # -berok will link without error, but may produce a broken library.
22011 no_undefined_flag_F77=' ${wl}-bernotok'
22012 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022013 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022014 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022015 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022016 # This is similar to how AIX traditionally builds its shared libraries.
22017 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 +000022018 fi
22019 fi
22020 ;;
22021
22022 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022023 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 +000022024 hardcode_libdir_flag_spec_F77='-L$libdir'
22025 hardcode_minus_L_F77=yes
22026 # see comment about different semantics on the GNU ld section
22027 ld_shlibs_F77=no
22028 ;;
22029
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022031 export_dynamic_flag_spec_F77=-rdynamic
22032 ;;
22033
22034 cygwin* | mingw* | pw32*)
22035 # When not using gcc, we currently assume that we are using
22036 # Microsoft Visual C++.
22037 # hardcode_libdir_flag_spec is actually meaningless, as there is
22038 # no search path for DLLs.
22039 hardcode_libdir_flag_spec_F77=' '
22040 allow_undefined_flag_F77=unsupported
22041 # Tell ltmain to make .lib files, not .a files.
22042 libext=lib
22043 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022044 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022045 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022046 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 +000022047 # The linker will automatically build a .lib file if we build a DLL.
22048 old_archive_From_new_cmds_F77='true'
22049 # FIXME: Should let the user specify the lib program.
22050 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022051 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022052 enable_shared_with_static_runtimes_F77=yes
22053 ;;
22054
22055 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022056 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022057 rhapsody* | darwin1.[012])
22058 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22059 ;;
22060 *) # Darwin 1.3 on
22061 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22062 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22063 else
22064 case ${MACOSX_DEPLOYMENT_TARGET} in
22065 10.[012])
22066 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22067 ;;
22068 10.*)
22069 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22070 ;;
22071 esac
22072 fi
22073 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022074 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022076 hardcode_direct_F77=no
22077 hardcode_automatic_F77=yes
22078 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022079 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022080 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022081 if test "$GCC" = yes ; then
22082 output_verbose_link_cmd='echo'
22083 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22084 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022085 # 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 +000022086 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}'
22087 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 +000022088 else
Reid Spencera773bd52006-08-04 18:18:08 +000022089 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022090 xlc*)
22091 output_verbose_link_cmd='echo'
22092 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22093 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022094 # 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 +000022095 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}'
22096 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 +000022097 ;;
22098 *)
22099 ld_shlibs_F77=no
22100 ;;
22101 esac
John Criswell47fdd832003-07-14 16:52:07 +000022102 fi
22103 ;;
22104
22105 dgux*)
22106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22107 hardcode_libdir_flag_spec_F77='-L$libdir'
22108 hardcode_shlibpath_var_F77=no
22109 ;;
22110
22111 freebsd1*)
22112 ld_shlibs_F77=no
22113 ;;
22114
22115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22116 # support. Future versions do this automatically, but an explicit c++rt0.o
22117 # does not break anything, and helps significantly (at the cost of a little
22118 # extra space).
22119 freebsd2.2*)
22120 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22121 hardcode_libdir_flag_spec_F77='-R$libdir'
22122 hardcode_direct_F77=yes
22123 hardcode_shlibpath_var_F77=no
22124 ;;
22125
22126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22127 freebsd2*)
22128 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22129 hardcode_direct_F77=yes
22130 hardcode_minus_L_F77=yes
22131 hardcode_shlibpath_var_F77=no
22132 ;;
22133
22134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022135 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022136 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22137 hardcode_libdir_flag_spec_F77='-R$libdir'
22138 hardcode_direct_F77=yes
22139 hardcode_shlibpath_var_F77=no
22140 ;;
22141
22142 hpux9*)
22143 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022144 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 +000022145 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022146 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 +000022147 fi
22148 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22149 hardcode_libdir_separator_F77=:
22150 hardcode_direct_F77=yes
22151
22152 # hardcode_minus_L: Not really in the search PATH,
22153 # but as the default location of the library.
22154 hardcode_minus_L_F77=yes
22155 export_dynamic_flag_spec_F77='${wl}-E'
22156 ;;
22157
Reid Spencera773bd52006-08-04 18:18:08 +000022158 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022160 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22161 else
22162 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22163 fi
22164 if test "$with_gnu_ld" = no; then
22165 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22166 hardcode_libdir_separator_F77=:
22167
22168 hardcode_direct_F77=yes
22169 export_dynamic_flag_spec_F77='${wl}-E'
22170
22171 # hardcode_minus_L: Not really in the search PATH,
22172 # but as the default location of the library.
22173 hardcode_minus_L_F77=yes
22174 fi
22175 ;;
22176
22177 hpux11*)
22178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22179 case $host_cpu in
22180 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022181 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22182 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022183 ia64*)
22184 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22185 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022186 *)
22187 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22188 ;;
22189 esac
22190 else
Reid Spencera773bd52006-08-04 18:18:08 +000022191 case $host_cpu in
22192 hppa*64*)
22193 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22194 ;;
22195 ia64*)
22196 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022197 ;;
22198 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022199 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 +000022200 ;;
22201 esac
22202 fi
22203 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022204 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22205 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022206
Reid Spencera773bd52006-08-04 18:18:08 +000022207 case $host_cpu in
22208 hppa*64*|ia64*)
22209 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22210 hardcode_direct_F77=no
22211 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022212 ;;
22213 *)
John Criswell47fdd832003-07-14 16:52:07 +000022214 hardcode_direct_F77=yes
22215 export_dynamic_flag_spec_F77='${wl}-E'
22216
22217 # hardcode_minus_L: Not really in the search PATH,
22218 # but as the default location of the library.
22219 hardcode_minus_L_F77=yes
22220 ;;
22221 esac
22222 fi
22223 ;;
22224
22225 irix5* | irix6* | nonstopux*)
22226 if test "$GCC" = yes; then
22227 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'
22228 else
22229 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'
22230 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22231 fi
22232 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22233 hardcode_libdir_separator_F77=:
22234 link_all_deplibs_F77=yes
22235 ;;
22236
22237 netbsd*)
22238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22240 else
22241 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22242 fi
22243 hardcode_libdir_flag_spec_F77='-R$libdir'
22244 hardcode_direct_F77=yes
22245 hardcode_shlibpath_var_F77=no
22246 ;;
22247
22248 newsos6)
22249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250 hardcode_direct_F77=yes
22251 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22252 hardcode_libdir_separator_F77=:
22253 hardcode_shlibpath_var_F77=no
22254 ;;
22255
22256 openbsd*)
22257 hardcode_direct_F77=yes
22258 hardcode_shlibpath_var_F77=no
22259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022261 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 +000022262 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22263 export_dynamic_flag_spec_F77='${wl}-E'
22264 else
22265 case $host_os in
22266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268 hardcode_libdir_flag_spec_F77='-R$libdir'
22269 ;;
22270 *)
22271 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22273 ;;
22274 esac
22275 fi
22276 ;;
22277
22278 os2*)
22279 hardcode_libdir_flag_spec_F77='-L$libdir'
22280 hardcode_minus_L_F77=yes
22281 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022282 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 +000022283 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22284 ;;
22285
22286 osf3*)
22287 if test "$GCC" = yes; then
22288 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22289 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'
22290 else
22291 allow_undefined_flag_F77=' -expect_unresolved \*'
22292 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'
22293 fi
22294 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22296 ;;
22297
22298 osf4* | osf5*) # as osf3* with the addition of -msym flag
22299 if test "$GCC" = yes; then
22300 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22301 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'
22302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303 else
22304 allow_undefined_flag_F77=' -expect_unresolved \*'
22305 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 +000022306 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 +000022307 $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 +000022308
John Criswell47fdd832003-07-14 16:52:07 +000022309 # Both c and cxx compiler support -rpath directly
22310 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22311 fi
22312 hardcode_libdir_separator_F77=:
22313 ;;
22314
John Criswell47fdd832003-07-14 16:52:07 +000022315 solaris*)
22316 no_undefined_flag_F77=' -z text'
22317 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022318 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022319 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022320 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22321 $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 +000022322 else
Reid Spencera773bd52006-08-04 18:18:08 +000022323 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022324 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022325 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22326 $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 +000022327 fi
22328 hardcode_libdir_flag_spec_F77='-R$libdir'
22329 hardcode_shlibpath_var_F77=no
22330 case $host_os in
22331 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022332 *)
22333 # The compiler driver will combine linker options so we
22334 # cannot just pass the convience library names through
22335 # without $wl, iff we do not link with $LD.
22336 # Luckily, gcc supports the same syntax we need for Sun Studio.
22337 # Supported since Solaris 2.6 (maybe 2.5.1?)
22338 case $wlarc in
22339 '')
22340 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22341 *)
22342 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' ;;
22343 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022344 esac
22345 link_all_deplibs_F77=yes
22346 ;;
22347
22348 sunos4*)
22349 if test "x$host_vendor" = xsequent; then
22350 # Use $CC to link under sequent, because it throws in some extra .o
22351 # files that make .init and .fini sections work.
22352 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22353 else
22354 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22355 fi
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_direct_F77=yes
22358 hardcode_minus_L_F77=yes
22359 hardcode_shlibpath_var_F77=no
22360 ;;
22361
22362 sysv4)
22363 case $host_vendor in
22364 sni)
22365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22366 hardcode_direct_F77=yes # is this really true???
22367 ;;
22368 siemens)
22369 ## LD is ld it makes a PLAMLIB
22370 ## CC just makes a GrossModule.
22371 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22372 reload_cmds_F77='$CC -r -o $output$reload_objs'
22373 hardcode_direct_F77=no
22374 ;;
22375 motorola)
22376 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22377 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22378 ;;
22379 esac
22380 runpath_var='LD_RUN_PATH'
22381 hardcode_shlibpath_var_F77=no
22382 ;;
22383
22384 sysv4.3*)
22385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386 hardcode_shlibpath_var_F77=no
22387 export_dynamic_flag_spec_F77='-Bexport'
22388 ;;
22389
22390 sysv4*MP*)
22391 if test -d /usr/nec; then
22392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22393 hardcode_shlibpath_var_F77=no
22394 runpath_var=LD_RUN_PATH
22395 hardcode_runpath_var=yes
22396 ld_shlibs_F77=yes
22397 fi
22398 ;;
22399
Reid Spencera773bd52006-08-04 18:18:08 +000022400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22401 no_undefined_flag_F77='${wl}-z,text'
22402 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022403 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022404 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022405
John Criswell47fdd832003-07-14 16:52:07 +000022406 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022407 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22408 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 +000022409 else
Reid Spencera773bd52006-08-04 18:18:08 +000022410 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22411 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 +000022412 fi
John Criswell47fdd832003-07-14 16:52:07 +000022413 ;;
22414
Reid Spencera773bd52006-08-04 18:18:08 +000022415 sysv5* | sco3.2v5* | sco5v6*)
22416 # Note: We can NOT use -z defs as we might desire, because we do not
22417 # link with -lc, and that would cause any symbols used from libc to
22418 # always be unresolved, which means just about no library would
22419 # ever link correctly. If we're not using GNU ld we use -z text
22420 # though, which does catch some bad symbols but isn't as heavy-handed
22421 # as -z defs.
22422 no_undefined_flag_F77='${wl}-z,text'
22423 allow_undefined_flag_F77='${wl}-z,nodefs'
22424 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022425 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022426 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22427 hardcode_libdir_separator_F77=':'
22428 link_all_deplibs_F77=yes
22429 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022430 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022431
22432 if test "$GCC" = yes; then
22433 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22434 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22435 else
22436 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22437 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22438 fi
John Criswell47fdd832003-07-14 16:52:07 +000022439 ;;
22440
22441 uts4*)
22442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22443 hardcode_libdir_flag_spec_F77='-L$libdir'
22444 hardcode_shlibpath_var_F77=no
22445 ;;
22446
22447 *)
22448 ld_shlibs_F77=no
22449 ;;
22450 esac
22451 fi
22452
Reid Spencera773bd52006-08-04 18:18:08 +000022453{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22454echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022455test "$ld_shlibs_F77" = no && can_build_shared=no
22456
John Criswell47fdd832003-07-14 16:52:07 +000022457#
22458# Do we need to explicitly link libc?
22459#
22460case "x$archive_cmds_need_lc_F77" in
22461x|xyes)
22462 # Assume -lc should be added
22463 archive_cmds_need_lc_F77=yes
22464
22465 if test "$enable_shared" = yes && test "$GCC" = yes; then
22466 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022467 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022468 # FIXME: we may have to deal with multi-command sequences.
22469 ;;
22470 '$CC '*)
22471 # Test whether the compiler implicitly links with -lc since on some
22472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22473 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022474 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22475echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022476 $rm conftest*
22477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22478
22479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22480 (eval $ac_compile) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } 2>conftest.err; then
22484 soname=conftest
22485 lib=conftest
22486 libobjs=conftest.$ac_objext
22487 deplibs=
22488 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022489 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022490 compiler_flags=-v
22491 linker_flags=-v
22492 verstring=
22493 output_objdir=.
22494 libname=conftest
22495 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22496 allow_undefined_flag_F77=
22497 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22498 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }
22502 then
22503 archive_cmds_need_lc_F77=no
22504 else
22505 archive_cmds_need_lc_F77=yes
22506 fi
22507 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22508 else
22509 cat conftest.err 1>&5
22510 fi
22511 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022512 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22513echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022514 ;;
22515 esac
22516 fi
22517 ;;
22518esac
22519
Reid Spencera773bd52006-08-04 18:18:08 +000022520{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22521echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022522library_names_spec=
22523libname_spec='lib$name'
22524soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022525shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022526postinstall_cmds=
22527postuninstall_cmds=
22528finish_cmds=
22529finish_eval=
22530shlibpath_var=
22531shlibpath_overrides_runpath=unknown
22532version_type=none
22533dynamic_linker="$host_os ld.so"
22534sys_lib_dlsearch_path_spec="/lib /usr/lib"
22535if test "$GCC" = yes; then
22536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22537 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22538 # if the path contains ";" then we assume it to be the separator
22539 # otherwise default to the standard path separator (i.e. ":") - it is
22540 # assumed that no part of a normal pathname contains ";" but that should
22541 # okay in the real world where ";" in dirpaths is itself problematic.
22542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22543 else
22544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22545 fi
22546else
22547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22548fi
22549need_lib_prefix=unknown
22550hardcode_into_libs=no
22551
22552# when you set need_version to no, make sure it does not cause -set_version
22553# flags to be left without arguments
22554need_version=unknown
22555
22556case $host_os in
22557aix3*)
22558 version_type=linux
22559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22560 shlibpath_var=LIBPATH
22561
22562 # AIX 3 has no versioning support, so we append a major version to the name.
22563 soname_spec='${libname}${release}${shared_ext}$major'
22564 ;;
22565
22566aix4* | aix5*)
22567 version_type=linux
22568 need_lib_prefix=no
22569 need_version=no
22570 hardcode_into_libs=yes
22571 if test "$host_cpu" = ia64; then
22572 # AIX 5 supports IA64
22573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22574 shlibpath_var=LD_LIBRARY_PATH
22575 else
22576 # With GCC up to 2.95.x, collect2 would create an import file
22577 # for dependence libraries. The import file would start with
22578 # the line `#! .'. This would cause the generated library to
22579 # depend on `.', always an invalid library. This was fixed in
22580 # development snapshots of GCC prior to 3.0.
22581 case $host_os in
22582 aix4 | aix4.[01] | aix4.[01].*)
22583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22584 echo ' yes '
22585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22586 :
22587 else
22588 can_build_shared=no
22589 fi
22590 ;;
22591 esac
22592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22593 # soname into executable. Probably we can add versioning support to
22594 # collect2, so additional links can be useful in future.
22595 if test "$aix_use_runtimelinking" = yes; then
22596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22597 # instead of lib<name>.a to let people know that these are not
22598 # typical AIX shared libraries.
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22600 else
22601 # We preserve .a as extension for shared libraries through AIX4.2
22602 # and later when we are not doing run time linking.
22603 library_names_spec='${libname}${release}.a $libname.a'
22604 soname_spec='${libname}${release}${shared_ext}$major'
22605 fi
22606 shlibpath_var=LIBPATH
22607 fi
22608 ;;
22609
22610amigaos*)
22611 library_names_spec='$libname.ixlibrary $libname.a'
22612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022613 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 +000022614 ;;
22615
22616beos*)
22617 library_names_spec='${libname}${shared_ext}'
22618 dynamic_linker="$host_os ld.so"
22619 shlibpath_var=LIBRARY_PATH
22620 ;;
22621
Reid Spencer2706f8c2004-09-19 23:53:36 +000022622bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022623 version_type=linux
22624 need_version=no
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22626 soname_spec='${libname}${release}${shared_ext}$major'
22627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22628 shlibpath_var=LD_LIBRARY_PATH
22629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22631 # the default ld.so.conf also contains /usr/contrib/lib and
22632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22633 # libtool to hard-code these into programs
22634 ;;
22635
22636cygwin* | mingw* | pw32*)
22637 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022638 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022639 need_version=no
22640 need_lib_prefix=no
22641
22642 case $GCC,$host_os in
22643 yes,cygwin* | yes,mingw* | yes,pw32*)
22644 library_names_spec='$libname.dll.a'
22645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022646 postinstall_cmds='base_file=`basename \${file}`~
22647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22648 dldir=$destdir/`dirname \$dlpath`~
22649 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022650 $install_prog $dir/$dlname \$dldir/$dlname~
22651 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22653 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022654 $rm \$dlpath'
22655 shlibpath_overrides_runpath=yes
22656
22657 case $host_os in
22658 cygwin*)
22659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22660 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 +000022661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022662 ;;
22663 mingw*)
22664 # MinGW DLLs use traditional 'lib' prefix
22665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22668 # It is most probably a Windows format PATH printed by
22669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22670 # path with ; separators, and with drive letters. We can handle the
22671 # drive letters (cygwin fileutils understands them), so leave them,
22672 # especially as we might pass files found there to a mingw objdump,
22673 # which wouldn't understand a cygwinified path. Ahh.
22674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22675 else
22676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22677 fi
22678 ;;
22679 pw32*)
22680 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022681 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 +000022682 ;;
22683 esac
22684 ;;
22685
22686 *)
22687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22688 ;;
22689 esac
22690 dynamic_linker='Win32 ld.exe'
22691 # FIXME: first we should search . and the directory the executable is in
22692 shlibpath_var=PATH
22693 ;;
22694
22695darwin* | rhapsody*)
22696 dynamic_linker="$host_os dyld"
22697 version_type=darwin
22698 need_lib_prefix=no
22699 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022701 soname_spec='${libname}${release}${major}$shared_ext'
22702 shlibpath_overrides_runpath=yes
22703 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022704 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706 if test "$GCC" = yes; then
22707 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"`
22708 else
22709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022710 fi
22711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22712 ;;
22713
22714dgux*)
22715 version_type=linux
22716 need_lib_prefix=no
22717 need_version=no
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22719 soname_spec='${libname}${release}${shared_ext}$major'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 ;;
22722
22723freebsd1*)
22724 dynamic_linker=no
22725 ;;
22726
Reid Spencer2706f8c2004-09-19 23:53:36 +000022727kfreebsd*-gnu)
22728 version_type=linux
22729 need_lib_prefix=no
22730 need_version=no
22731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 shlibpath_var=LD_LIBRARY_PATH
22734 shlibpath_overrides_runpath=no
22735 hardcode_into_libs=yes
22736 dynamic_linker='GNU ld.so'
22737 ;;
22738
Reid Spencera773bd52006-08-04 18:18:08 +000022739freebsd* | dragonfly*)
22740 # DragonFly does not have aout. When/if they implement a new
22741 # versioning mechanism, adjust this.
22742 if test -x /usr/bin/objformat; then
22743 objformat=`/usr/bin/objformat`
22744 else
22745 case $host_os in
22746 freebsd[123]*) objformat=aout ;;
22747 *) objformat=elf ;;
22748 esac
22749 fi
John Criswell47fdd832003-07-14 16:52:07 +000022750 version_type=freebsd-$objformat
22751 case $version_type in
22752 freebsd-elf*)
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22754 need_version=no
22755 need_lib_prefix=no
22756 ;;
22757 freebsd-*)
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22759 need_version=yes
22760 ;;
22761 esac
22762 shlibpath_var=LD_LIBRARY_PATH
22763 case $host_os in
22764 freebsd2*)
22765 shlibpath_overrides_runpath=yes
22766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022767 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022768 shlibpath_overrides_runpath=yes
22769 hardcode_into_libs=yes
22770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022773 shlibpath_overrides_runpath=no
22774 hardcode_into_libs=yes
22775 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022776 freebsd*) # from 4.6 on
22777 shlibpath_overrides_runpath=yes
22778 hardcode_into_libs=yes
22779 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022780 esac
22781 ;;
22782
22783gnu*)
22784 version_type=linux
22785 need_lib_prefix=no
22786 need_version=no
22787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22788 soname_spec='${libname}${release}${shared_ext}$major'
22789 shlibpath_var=LD_LIBRARY_PATH
22790 hardcode_into_libs=yes
22791 ;;
22792
22793hpux9* | hpux10* | hpux11*)
22794 # Give a soname corresponding to the major version so that dld.sl refuses to
22795 # link against other versions.
22796 version_type=sunos
22797 need_lib_prefix=no
22798 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022799 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022800 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022801 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022802 hardcode_into_libs=yes
22803 dynamic_linker="$host_os dld.so"
22804 shlibpath_var=LD_LIBRARY_PATH
22805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 if test "X$HPUX_IA64_MODE" = X32; then
22809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22810 else
22811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22812 fi
22813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22814 ;;
22815 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022816 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022817 hardcode_into_libs=yes
22818 dynamic_linker="$host_os dld.sl"
22819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 soname_spec='${libname}${release}${shared_ext}$major'
22823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22825 ;;
22826 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022827 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022828 dynamic_linker="$host_os dld.sl"
22829 shlibpath_var=SHLIB_PATH
22830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22832 soname_spec='${libname}${release}${shared_ext}$major'
22833 ;;
22834 esac
22835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22836 postinstall_cmds='chmod 555 $lib'
22837 ;;
22838
Reid Spencera773bd52006-08-04 18:18:08 +000022839interix3*)
22840 version_type=linux
22841 need_lib_prefix=no
22842 need_version=no
22843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22844 soname_spec='${libname}${release}${shared_ext}$major'
22845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22846 shlibpath_var=LD_LIBRARY_PATH
22847 shlibpath_overrides_runpath=no
22848 hardcode_into_libs=yes
22849 ;;
22850
John Criswell47fdd832003-07-14 16:52:07 +000022851irix5* | irix6* | nonstopux*)
22852 case $host_os in
22853 nonstopux*) version_type=nonstopux ;;
22854 *)
22855 if test "$lt_cv_prog_gnu_ld" = yes; then
22856 version_type=linux
22857 else
22858 version_type=irix
22859 fi ;;
22860 esac
22861 need_lib_prefix=no
22862 need_version=no
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22865 case $host_os in
22866 irix5* | nonstopux*)
22867 libsuff= shlibsuff=
22868 ;;
22869 *)
22870 case $LD in # libtool.m4 will add one of these switches to LD
22871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22872 libsuff= shlibsuff= libmagic=32-bit;;
22873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22874 libsuff=32 shlibsuff=N32 libmagic=N32;;
22875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22877 *) libsuff= shlibsuff= libmagic=never-match;;
22878 esac
22879 ;;
22880 esac
22881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22882 shlibpath_overrides_runpath=no
22883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22885 hardcode_into_libs=yes
22886 ;;
22887
22888# No shared lib support for Linux oldld, aout, or coff.
22889linux*oldld* | linux*aout* | linux*coff*)
22890 dynamic_linker=no
22891 ;;
22892
22893# This must be Linux ELF.
22894linux*)
22895 version_type=linux
22896 need_lib_prefix=no
22897 need_version=no
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899 soname_spec='${libname}${release}${shared_ext}$major'
22900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22901 shlibpath_var=LD_LIBRARY_PATH
22902 shlibpath_overrides_runpath=no
22903 # This implies no fast_install, which is unacceptable.
22904 # Some rework will be needed to allow for fast_install
22905 # before this can be enabled.
22906 hardcode_into_libs=yes
22907
Reid Spencer2706f8c2004-09-19 23:53:36 +000022908 # Append ld.so.conf contents to the search path
22909 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022910 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 +000022911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22912 fi
22913
John Criswell47fdd832003-07-14 16:52:07 +000022914 # We used to test for /lib/ld.so.1 and disable shared libraries on
22915 # powerpc, because MkLinux only supported shared libraries with the
22916 # GNU dynamic linker. Since this was broken with cross compilers,
22917 # most powerpc-linux boxes support dynamic linking these days and
22918 # people can always --disable-shared, the test was removed, and we
22919 # assume the GNU/Linux dynamic linker is in use.
22920 dynamic_linker='GNU/Linux ld.so'
22921 ;;
22922
Reid Spencer2706f8c2004-09-19 23:53:36 +000022923knetbsd*-gnu)
22924 version_type=linux
22925 need_lib_prefix=no
22926 need_version=no
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 shlibpath_var=LD_LIBRARY_PATH
22930 shlibpath_overrides_runpath=no
22931 hardcode_into_libs=yes
22932 dynamic_linker='GNU ld.so'
22933 ;;
22934
John Criswell47fdd832003-07-14 16:52:07 +000022935netbsd*)
22936 version_type=sunos
22937 need_lib_prefix=no
22938 need_version=no
22939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22942 dynamic_linker='NetBSD (a.out) ld.so'
22943 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022945 soname_spec='${libname}${release}${shared_ext}$major'
22946 dynamic_linker='NetBSD ld.elf_so'
22947 fi
22948 shlibpath_var=LD_LIBRARY_PATH
22949 shlibpath_overrides_runpath=yes
22950 hardcode_into_libs=yes
22951 ;;
22952
22953newsos6)
22954 version_type=linux
22955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22956 shlibpath_var=LD_LIBRARY_PATH
22957 shlibpath_overrides_runpath=yes
22958 ;;
22959
Reid Spencer2706f8c2004-09-19 23:53:36 +000022960nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022961 version_type=linux
22962 need_lib_prefix=no
22963 need_version=no
22964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 shlibpath_var=LD_LIBRARY_PATH
22967 shlibpath_overrides_runpath=yes
22968 ;;
22969
22970openbsd*)
22971 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022972 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022973 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22975 case $host_os in
22976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22977 *) need_version=no ;;
22978 esac
John Criswell47fdd832003-07-14 16:52:07 +000022979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22981 shlibpath_var=LD_LIBRARY_PATH
22982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22983 case $host_os in
22984 openbsd2.[89] | openbsd2.[89].*)
22985 shlibpath_overrides_runpath=no
22986 ;;
22987 *)
22988 shlibpath_overrides_runpath=yes
22989 ;;
22990 esac
22991 else
22992 shlibpath_overrides_runpath=yes
22993 fi
22994 ;;
22995
22996os2*)
22997 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022998 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022999 need_lib_prefix=no
23000 library_names_spec='$libname${shared_ext} $libname.a'
23001 dynamic_linker='OS/2 ld.exe'
23002 shlibpath_var=LIBPATH
23003 ;;
23004
23005osf3* | osf4* | osf5*)
23006 version_type=osf
23007 need_lib_prefix=no
23008 need_version=no
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011 shlibpath_var=LD_LIBRARY_PATH
23012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23014 ;;
23015
John Criswell47fdd832003-07-14 16:52:07 +000023016solaris*)
23017 version_type=linux
23018 need_lib_prefix=no
23019 need_version=no
23020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23021 soname_spec='${libname}${release}${shared_ext}$major'
23022 shlibpath_var=LD_LIBRARY_PATH
23023 shlibpath_overrides_runpath=yes
23024 hardcode_into_libs=yes
23025 # ldd complains unless libraries are executable
23026 postinstall_cmds='chmod +x $lib'
23027 ;;
23028
23029sunos4*)
23030 version_type=sunos
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 shlibpath_overrides_runpath=yes
23035 if test "$with_gnu_ld" = yes; then
23036 need_lib_prefix=no
23037 fi
23038 need_version=yes
23039 ;;
23040
Reid Spencera773bd52006-08-04 18:18:08 +000023041sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023042 version_type=linux
23043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23044 soname_spec='${libname}${release}${shared_ext}$major'
23045 shlibpath_var=LD_LIBRARY_PATH
23046 case $host_vendor in
23047 sni)
23048 shlibpath_overrides_runpath=no
23049 need_lib_prefix=no
23050 export_dynamic_flag_spec='${wl}-Blargedynsym'
23051 runpath_var=LD_RUN_PATH
23052 ;;
23053 siemens)
23054 need_lib_prefix=no
23055 ;;
23056 motorola)
23057 need_lib_prefix=no
23058 need_version=no
23059 shlibpath_overrides_runpath=no
23060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23061 ;;
23062 esac
23063 ;;
23064
23065sysv4*MP*)
23066 if test -d /usr/nec ;then
23067 version_type=linux
23068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23069 soname_spec='$libname${shared_ext}.$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 fi
23072 ;;
23073
Reid Spencera773bd52006-08-04 18:18:08 +000023074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23075 version_type=freebsd-elf
23076 need_lib_prefix=no
23077 need_version=no
23078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23079 soname_spec='${libname}${release}${shared_ext}$major'
23080 shlibpath_var=LD_LIBRARY_PATH
23081 hardcode_into_libs=yes
23082 if test "$with_gnu_ld" = yes; then
23083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23084 shlibpath_overrides_runpath=no
23085 else
23086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23087 shlibpath_overrides_runpath=yes
23088 case $host_os in
23089 sco3.2v5*)
23090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23091 ;;
23092 esac
23093 fi
23094 sys_lib_dlsearch_path_spec='/usr/lib'
23095 ;;
23096
John Criswell47fdd832003-07-14 16:52:07 +000023097uts4*)
23098 version_type=linux
23099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23100 soname_spec='${libname}${release}${shared_ext}$major'
23101 shlibpath_var=LD_LIBRARY_PATH
23102 ;;
23103
23104*)
23105 dynamic_linker=no
23106 ;;
23107esac
Reid Spencera773bd52006-08-04 18:18:08 +000023108{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23109echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023110test "$dynamic_linker" = no && can_build_shared=no
23111
Reid Spencera773bd52006-08-04 18:18:08 +000023112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23113if test "$GCC" = yes; then
23114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23115fi
23116
23117{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23118echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023119hardcode_action_F77=
23120if test -n "$hardcode_libdir_flag_spec_F77" || \
23121 test -n "$runpath_var_F77" || \
23122 test "X$hardcode_automatic_F77" = "Xyes" ; then
23123
23124 # We can hardcode non-existant directories.
23125 if test "$hardcode_direct_F77" != no &&
23126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23127 # have to relink, otherwise we might link with an installed library
23128 # when we should be linking with a yet-to-be-installed one
23129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23130 test "$hardcode_minus_L_F77" != no; then
23131 # Linking always hardcodes the temporary library directory.
23132 hardcode_action_F77=relink
23133 else
23134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23135 hardcode_action_F77=immediate
23136 fi
23137else
23138 # We cannot hardcode anything, or else we can only hardcode existing
23139 # directories.
23140 hardcode_action_F77=unsupported
23141fi
Reid Spencera773bd52006-08-04 18:18:08 +000023142{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23143echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023144
23145if test "$hardcode_action_F77" = relink; then
23146 # Fast installation is not supported
23147 enable_fast_install=no
23148elif test "$shlibpath_overrides_runpath" = yes ||
23149 test "$enable_shared" = no; then
23150 # Fast installation is not necessary
23151 enable_fast_install=needless
23152fi
23153
John Criswell47fdd832003-07-14 16:52:07 +000023154
23155# The else clause should only fire when bootstrapping the
23156# libtool distribution, otherwise you forgot to ship ltmain.sh
23157# with your package, and you will get complaints that there are
23158# no rules to generate ltmain.sh.
23159if test -f "$ltmain"; then
23160 # See if we are running on zsh, and set the options which allow our commands through
23161 # without removal of \ escapes.
23162 if test -n "${ZSH_VERSION+set}" ; then
23163 setopt NO_GLOB_SUBST
23164 fi
23165 # Now quote all the things that may contain metacharacters while being
23166 # careful not to overquote the AC_SUBSTed values. We take copies of the
23167 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023168 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 +000023169 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23172 deplibs_check_method reload_flag reload_cmds need_locks \
23173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23174 lt_cv_sys_global_symbol_to_c_name_address \
23175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23176 old_postinstall_cmds old_postuninstall_cmds \
23177 compiler_F77 \
23178 CC_F77 \
23179 LD_F77 \
23180 lt_prog_compiler_wl_F77 \
23181 lt_prog_compiler_pic_F77 \
23182 lt_prog_compiler_static_F77 \
23183 lt_prog_compiler_no_builtin_flag_F77 \
23184 export_dynamic_flag_spec_F77 \
23185 thread_safe_flag_spec_F77 \
23186 whole_archive_flag_spec_F77 \
23187 enable_shared_with_static_runtimes_F77 \
23188 old_archive_cmds_F77 \
23189 old_archive_from_new_cmds_F77 \
23190 predep_objects_F77 \
23191 postdep_objects_F77 \
23192 predeps_F77 \
23193 postdeps_F77 \
23194 compiler_lib_search_path_F77 \
23195 archive_cmds_F77 \
23196 archive_expsym_cmds_F77 \
23197 postinstall_cmds_F77 \
23198 postuninstall_cmds_F77 \
23199 old_archive_from_expsyms_cmds_F77 \
23200 allow_undefined_flag_F77 \
23201 no_undefined_flag_F77 \
23202 export_symbols_cmds_F77 \
23203 hardcode_libdir_flag_spec_F77 \
23204 hardcode_libdir_flag_spec_ld_F77 \
23205 hardcode_libdir_separator_F77 \
23206 hardcode_automatic_F77 \
23207 module_cmds_F77 \
23208 module_expsym_cmds_F77 \
23209 lt_cv_prog_compiler_c_o_F77 \
23210 exclude_expsyms_F77 \
23211 include_expsyms_F77; do
23212
23213 case $var in
23214 old_archive_cmds_F77 | \
23215 old_archive_from_new_cmds_F77 | \
23216 archive_cmds_F77 | \
23217 archive_expsym_cmds_F77 | \
23218 module_cmds_F77 | \
23219 module_expsym_cmds_F77 | \
23220 old_archive_from_expsyms_cmds_F77 | \
23221 export_symbols_cmds_F77 | \
23222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23223 postinstall_cmds | postuninstall_cmds | \
23224 old_postinstall_cmds | old_postuninstall_cmds | \
23225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23226 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023227 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 +000023228 ;;
23229 *)
23230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23231 ;;
23232 esac
23233 done
23234
23235 case $lt_echo in
23236 *'\$0 --fallback-echo"')
23237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23238 ;;
23239 esac
23240
23241cfgfile="$ofile"
23242
23243 cat <<__EOF__ >> "$cfgfile"
23244# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23245
23246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23247
23248# Shell to use when invoking shell scripts.
23249SHELL=$lt_SHELL
23250
23251# Whether or not to build shared libraries.
23252build_libtool_libs=$enable_shared
23253
23254# Whether or not to build static libraries.
23255build_old_libs=$enable_static
23256
23257# Whether or not to add -lc for building shared libraries.
23258build_libtool_need_lc=$archive_cmds_need_lc_F77
23259
23260# Whether or not to disallow shared libs when runtime libs are static
23261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23262
23263# Whether or not to optimize for fast installation.
23264fast_install=$enable_fast_install
23265
23266# The host system.
23267host_alias=$host_alias
23268host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023269host_os=$host_os
23270
23271# The build system.
23272build_alias=$build_alias
23273build=$build
23274build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023275
23276# An echo program that does not interpret backslashes.
23277echo=$lt_echo
23278
23279# The archiver.
23280AR=$lt_AR
23281AR_FLAGS=$lt_AR_FLAGS
23282
23283# A C compiler.
23284LTCC=$lt_LTCC
23285
Reid Spencera773bd52006-08-04 18:18:08 +000023286# LTCC compiler flags.
23287LTCFLAGS=$lt_LTCFLAGS
23288
John Criswell47fdd832003-07-14 16:52:07 +000023289# A language-specific compiler.
23290CC=$lt_compiler_F77
23291
23292# Is the compiler the GNU C compiler?
23293with_gcc=$GCC_F77
23294
23295# An ERE matcher.
23296EGREP=$lt_EGREP
23297
23298# The linker used to build libraries.
23299LD=$lt_LD_F77
23300
23301# Whether we need hard or soft links.
23302LN_S=$lt_LN_S
23303
23304# A BSD-compatible nm program.
23305NM=$lt_NM
23306
23307# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023308STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023309
23310# Used to examine libraries when file_magic_cmd begins "file"
23311MAGIC_CMD=$MAGIC_CMD
23312
23313# Used on cygwin: DLL creation program.
23314DLLTOOL="$DLLTOOL"
23315
23316# Used on cygwin: object dumper.
23317OBJDUMP="$OBJDUMP"
23318
23319# Used on cygwin: assembler.
23320AS="$AS"
23321
23322# The name of the directory that contains temporary libtool files.
23323objdir=$objdir
23324
23325# How to create reloadable object files.
23326reload_flag=$lt_reload_flag
23327reload_cmds=$lt_reload_cmds
23328
23329# How to pass a linker flag through the compiler.
23330wl=$lt_lt_prog_compiler_wl_F77
23331
23332# Object file suffix (normally "o").
23333objext="$ac_objext"
23334
23335# Old archive suffix (normally "a").
23336libext="$libext"
23337
23338# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023339shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023340
23341# Executable file suffix (normally "").
23342exeext="$exeext"
23343
23344# Additional compiler flags for building library objects.
23345pic_flag=$lt_lt_prog_compiler_pic_F77
23346pic_mode=$pic_mode
23347
23348# What is the maximum length of a command?
23349max_cmd_len=$lt_cv_sys_max_cmd_len
23350
23351# Does compiler simultaneously support -c and -o options?
23352compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23353
Reid Spencera773bd52006-08-04 18:18:08 +000023354# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023355need_locks=$lt_need_locks
23356
23357# Do we need the lib prefix for modules?
23358need_lib_prefix=$need_lib_prefix
23359
23360# Do we need a version for libraries?
23361need_version=$need_version
23362
23363# Whether dlopen is supported.
23364dlopen_support=$enable_dlopen
23365
23366# Whether dlopen of programs is supported.
23367dlopen_self=$enable_dlopen_self
23368
23369# Whether dlopen of statically linked programs is supported.
23370dlopen_self_static=$enable_dlopen_self_static
23371
23372# Compiler flag to prevent dynamic linking.
23373link_static_flag=$lt_lt_prog_compiler_static_F77
23374
23375# Compiler flag to turn off builtin functions.
23376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23377
23378# Compiler flag to allow reflexive dlopens.
23379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23380
23381# Compiler flag to generate shared objects directly from archives.
23382whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23383
23384# Compiler flag to generate thread-safe objects.
23385thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23386
23387# Library versioning type.
23388version_type=$version_type
23389
23390# Format of library name prefix.
23391libname_spec=$lt_libname_spec
23392
23393# List of archive names. First name is the real one, the rest are links.
23394# The last name is the one that the linker finds with -lNAME.
23395library_names_spec=$lt_library_names_spec
23396
23397# The coded name of the library, if different from the real name.
23398soname_spec=$lt_soname_spec
23399
23400# Commands used to build and install an old-style archive.
23401RANLIB=$lt_RANLIB
23402old_archive_cmds=$lt_old_archive_cmds_F77
23403old_postinstall_cmds=$lt_old_postinstall_cmds
23404old_postuninstall_cmds=$lt_old_postuninstall_cmds
23405
23406# Create an old-style archive from a shared archive.
23407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23408
23409# Create a temporary old-style archive to link instead of a shared archive.
23410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23411
23412# Commands used to build and install a shared archive.
23413archive_cmds=$lt_archive_cmds_F77
23414archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23415postinstall_cmds=$lt_postinstall_cmds
23416postuninstall_cmds=$lt_postuninstall_cmds
23417
23418# Commands used to build a loadable module (assumed same as above if empty)
23419module_cmds=$lt_module_cmds_F77
23420module_expsym_cmds=$lt_module_expsym_cmds_F77
23421
23422# Commands to strip libraries.
23423old_striplib=$lt_old_striplib
23424striplib=$lt_striplib
23425
23426# Dependencies to place before the objects being linked to create a
23427# shared library.
23428predep_objects=$lt_predep_objects_F77
23429
23430# Dependencies to place after the objects being linked to create a
23431# shared library.
23432postdep_objects=$lt_postdep_objects_F77
23433
23434# Dependencies to place before the objects being linked to create a
23435# shared library.
23436predeps=$lt_predeps_F77
23437
23438# Dependencies to place after the objects being linked to create a
23439# shared library.
23440postdeps=$lt_postdeps_F77
23441
23442# The library search path used internally by the compiler when linking
23443# a shared library.
23444compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23445
23446# Method to check whether dependent libraries are shared objects.
23447deplibs_check_method=$lt_deplibs_check_method
23448
23449# Command to use when deplibs_check_method == file_magic.
23450file_magic_cmd=$lt_file_magic_cmd
23451
23452# Flag that allows shared libraries with undefined symbols to be built.
23453allow_undefined_flag=$lt_allow_undefined_flag_F77
23454
23455# Flag that forces no undefined symbols.
23456no_undefined_flag=$lt_no_undefined_flag_F77
23457
23458# Commands used to finish a libtool library installation in a directory.
23459finish_cmds=$lt_finish_cmds
23460
23461# Same as above, but a single script fragment to be evaled but not shown.
23462finish_eval=$lt_finish_eval
23463
23464# Take the output of nm and produce a listing of raw symbols and C names.
23465global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23466
23467# Transform the output of nm in a proper C declaration
23468global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23469
23470# Transform the output of nm in a C name address pair
23471global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23472
23473# This is the shared library runtime path variable.
23474runpath_var=$runpath_var
23475
23476# This is the shared library path variable.
23477shlibpath_var=$shlibpath_var
23478
23479# Is shlibpath searched before the hard-coded library search path?
23480shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23481
23482# How to hardcode a shared library path into an executable.
23483hardcode_action=$hardcode_action_F77
23484
23485# Whether we should hardcode library paths into libraries.
23486hardcode_into_libs=$hardcode_into_libs
23487
23488# Flag to hardcode \$libdir into a binary during linking.
23489# This must work even if \$libdir does not exist.
23490hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23491
23492# If ld is used when linking, flag to hardcode \$libdir into
23493# a binary during linking. This must work even if \$libdir does
23494# not exist.
23495hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23496
23497# Whether we need a single -rpath flag with a separated argument.
23498hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23499
23500# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23501# resulting binary.
23502hardcode_direct=$hardcode_direct_F77
23503
23504# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23505# resulting binary.
23506hardcode_minus_L=$hardcode_minus_L_F77
23507
23508# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23509# the resulting binary.
23510hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23511
23512# Set to yes if building a shared library automatically hardcodes DIR into the library
23513# and all subsequent libraries and executables linked against it.
23514hardcode_automatic=$hardcode_automatic_F77
23515
23516# Variables whose values should be saved in libtool wrapper scripts and
23517# restored at relink time.
23518variables_saved_for_relink="$variables_saved_for_relink"
23519
23520# Whether libtool must link a program against all its dependency libraries.
23521link_all_deplibs=$link_all_deplibs_F77
23522
23523# Compile-time system search path for libraries
23524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23525
23526# Run-time system search path for libraries
23527sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23528
23529# Fix the shell variable \$srcfile for the compiler.
23530fix_srcfile_path="$fix_srcfile_path_F77"
23531
23532# Set to yes if exported symbols are required.
23533always_export_symbols=$always_export_symbols_F77
23534
23535# The commands to list exported symbols.
23536export_symbols_cmds=$lt_export_symbols_cmds_F77
23537
23538# The commands to extract the exported symbol list from a shared archive.
23539extract_expsyms_cmds=$lt_extract_expsyms_cmds
23540
23541# Symbols that should not be listed in the preloaded symbols.
23542exclude_expsyms=$lt_exclude_expsyms_F77
23543
23544# Symbols that must always be exported.
23545include_expsyms=$lt_include_expsyms_F77
23546
23547# ### END LIBTOOL TAG CONFIG: $tagname
23548
23549__EOF__
23550
23551
23552else
23553 # If there is no Makefile yet, we rely on a make rule to execute
23554 # `config.status --recheck' to rerun these tests and create the
23555 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023556 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23557 if test -f "$ltmain_in"; then
23558 test -f Makefile && make "$ltmain"
23559 fi
John Criswell47fdd832003-07-14 16:52:07 +000023560fi
23561
23562
23563ac_ext=c
23564ac_cpp='$CPP $CPPFLAGS'
23565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23567ac_compiler_gnu=$ac_cv_c_compiler_gnu
23568
23569CC="$lt_save_CC"
23570
23571 else
23572 tagname=""
23573 fi
23574 ;;
23575
23576 GCJ)
23577 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023578 ac_ext=c
23579ac_cpp='$CPP $CPPFLAGS'
23580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023583
23584
23585# Source file extension for Java test sources.
23586ac_ext=java
23587
23588# Object file extension for compiled Java test sources.
23589objext=o
23590objext_GCJ=$objext
23591
23592# Code to be used in simple compile tests
23593lt_simple_compile_test_code="class foo {}\n"
23594
23595# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023596lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023597
23598# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23599
23600# If no C compiler was specified, use CC.
23601LTCC=${LTCC-"$CC"}
23602
Reid Spencera773bd52006-08-04 18:18:08 +000023603# If no C compiler flags were specified, use CFLAGS.
23604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23605
John Criswell47fdd832003-07-14 16:52:07 +000023606# Allow CC to be a program name with arguments.
23607compiler=$CC
23608
23609
Reid Spencera773bd52006-08-04 18:18:08 +000023610# save warnings/boilerplate of simple test code
23611ac_outfile=conftest.$ac_objext
23612printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23613eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23614_lt_compiler_boilerplate=`cat conftest.err`
23615$rm conftest*
23616
23617ac_outfile=conftest.$ac_objext
23618printf "$lt_simple_link_test_code" >conftest.$ac_ext
23619eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23620_lt_linker_boilerplate=`cat conftest.err`
23621$rm conftest*
23622
23623
John Criswell47fdd832003-07-14 16:52:07 +000023624# Allow CC to be a program name with arguments.
23625lt_save_CC="$CC"
23626CC=${GCJ-"gcj"}
23627compiler=$CC
23628compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023629for cc_temp in $compiler""; do
23630 case $cc_temp in
23631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23633 \-*) ;;
23634 *) break;;
23635 esac
23636done
23637cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23638
John Criswell47fdd832003-07-14 16:52:07 +000023639
23640# GCJ did not exist at the time GCC didn't implicitly link libc in.
23641archive_cmds_need_lc_GCJ=no
23642
Reid Spencera773bd52006-08-04 18:18:08 +000023643old_archive_cmds_GCJ=$old_archive_cmds
23644
John Criswell47fdd832003-07-14 16:52:07 +000023645
23646lt_prog_compiler_no_builtin_flag_GCJ=
23647
23648if test "$GCC" = yes; then
23649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23650
Reid Spencer2706f8c2004-09-19 23:53:36 +000023651
Reid Spencera773bd52006-08-04 18:18:08 +000023652{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23653echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023654if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656else
23657 lt_cv_prog_compiler_rtti_exceptions=no
23658 ac_outfile=conftest.$ac_objext
23659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23660 lt_compiler_flag="-fno-rtti -fno-exceptions"
23661 # Insert the option either (1) after the last *FLAGS variable, or
23662 # (2) before a word containing "conftest.", or (3) at the end.
23663 # Note that $ac_compile itself does not contain backslashes and begins
23664 # with a dollar sign (not a hyphen), so the echo should work correctly.
23665 # The option is referenced via a variable to avoid confusing sed.
23666 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23669 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000023670 (eval echo "\"\$as_me:23670: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023671 (eval "$lt_compile" 2>conftest.err)
23672 ac_status=$?
23673 cat conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000023674 echo "$as_me:23674: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023675 if (exit $ac_status) && test -s "$ac_outfile"; then
23676 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023677 # So say no if there are warnings other than the usual output.
23678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023681 lt_cv_prog_compiler_rtti_exceptions=yes
23682 fi
23683 fi
23684 $rm conftest*
23685
23686fi
Reid Spencera773bd52006-08-04 18:18:08 +000023687{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23688echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023689
23690if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23691 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23692else
23693 :
23694fi
23695
23696fi
23697
23698lt_prog_compiler_wl_GCJ=
23699lt_prog_compiler_pic_GCJ=
23700lt_prog_compiler_static_GCJ=
23701
Reid Spencera773bd52006-08-04 18:18:08 +000023702{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23703echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023704
23705 if test "$GCC" = yes; then
23706 lt_prog_compiler_wl_GCJ='-Wl,'
23707 lt_prog_compiler_static_GCJ='-static'
23708
23709 case $host_os in
23710 aix*)
23711 # All AIX code is PIC.
23712 if test "$host_cpu" = ia64; then
23713 # AIX 5 now supports IA64 processor
23714 lt_prog_compiler_static_GCJ='-Bstatic'
23715 fi
23716 ;;
23717
23718 amigaos*)
23719 # FIXME: we need at least 68020 code to build shared libraries, but
23720 # adding the `-m68020' flag to GCC prevents building anything better,
23721 # like `-m68040'.
23722 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23723 ;;
23724
23725 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23726 # PIC is the default for these OSes.
23727 ;;
23728
23729 mingw* | pw32* | os2*)
23730 # This hack is so that the source file can tell whether it is being
23731 # built for inclusion in a dll (and should export symbols for example).
23732 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23733 ;;
23734
23735 darwin* | rhapsody*)
23736 # PIC is the default on this platform
23737 # Common symbols not allowed in MH_DYLIB files
23738 lt_prog_compiler_pic_GCJ='-fno-common'
23739 ;;
23740
Reid Spencera773bd52006-08-04 18:18:08 +000023741 interix3*)
23742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23743 # Instead, we relocate shared libraries at runtime.
23744 ;;
23745
John Criswell47fdd832003-07-14 16:52:07 +000023746 msdosdjgpp*)
23747 # Just because we use GCC doesn't mean we suddenly get shared libraries
23748 # on systems that don't support them.
23749 lt_prog_compiler_can_build_shared_GCJ=no
23750 enable_shared=no
23751 ;;
23752
23753 sysv4*MP*)
23754 if test -d /usr/nec; then
23755 lt_prog_compiler_pic_GCJ=-Kconform_pic
23756 fi
23757 ;;
23758
23759 hpux*)
23760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23761 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023762 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023763 hppa*64*|ia64*)
23764 # +Z the default
23765 ;;
23766 *)
23767 lt_prog_compiler_pic_GCJ='-fPIC'
23768 ;;
23769 esac
23770 ;;
23771
23772 *)
23773 lt_prog_compiler_pic_GCJ='-fPIC'
23774 ;;
23775 esac
23776 else
23777 # PORTME Check for flag to pass linker flags through the system compiler.
23778 case $host_os in
23779 aix*)
23780 lt_prog_compiler_wl_GCJ='-Wl,'
23781 if test "$host_cpu" = ia64; then
23782 # AIX 5 now supports IA64 processor
23783 lt_prog_compiler_static_GCJ='-Bstatic'
23784 else
23785 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23786 fi
23787 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023788 darwin*)
23789 # PIC is the default on this platform
23790 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023791 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023792 xlc*)
23793 lt_prog_compiler_pic_GCJ='-qnocommon'
23794 lt_prog_compiler_wl_GCJ='-Wl,'
23795 ;;
23796 esac
23797 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023798
23799 mingw* | pw32* | os2*)
23800 # This hack is so that the source file can tell whether it is being
23801 # built for inclusion in a dll (and should export symbols for example).
23802 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23803 ;;
23804
23805 hpux9* | hpux10* | hpux11*)
23806 lt_prog_compiler_wl_GCJ='-Wl,'
23807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23808 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023809 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023810 hppa*64*|ia64*)
23811 # +Z the default
23812 ;;
23813 *)
23814 lt_prog_compiler_pic_GCJ='+Z'
23815 ;;
23816 esac
23817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23818 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23819 ;;
23820
23821 irix5* | irix6* | nonstopux*)
23822 lt_prog_compiler_wl_GCJ='-Wl,'
23823 # PIC (with -KPIC) is the default.
23824 lt_prog_compiler_static_GCJ='-non_shared'
23825 ;;
23826
23827 newsos6)
23828 lt_prog_compiler_pic_GCJ='-KPIC'
23829 lt_prog_compiler_static_GCJ='-Bstatic'
23830 ;;
23831
23832 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023833 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023834 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023835 lt_prog_compiler_wl_GCJ='-Wl,'
23836 lt_prog_compiler_pic_GCJ='-KPIC'
23837 lt_prog_compiler_static_GCJ='-static'
23838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023839 pgcc* | pgf77* | pgf90* | pgf95*)
23840 # Portland Group compilers (*not* the Pentium gcc compiler,
23841 # which looks to be a dead project)
23842 lt_prog_compiler_wl_GCJ='-Wl,'
23843 lt_prog_compiler_pic_GCJ='-fpic'
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23845 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023846 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023847 lt_prog_compiler_wl_GCJ='-Wl,'
23848 # All Alpha code is PIC.
23849 lt_prog_compiler_static_GCJ='-non_shared'
23850 ;;
23851 esac
23852 ;;
23853
23854 osf3* | osf4* | osf5*)
23855 lt_prog_compiler_wl_GCJ='-Wl,'
23856 # All OSF/1 code is PIC.
23857 lt_prog_compiler_static_GCJ='-non_shared'
23858 ;;
23859
John Criswell47fdd832003-07-14 16:52:07 +000023860 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023861 lt_prog_compiler_pic_GCJ='-KPIC'
23862 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023863 case $cc_basename in
23864 f77* | f90* | f95*)
23865 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23866 *)
23867 lt_prog_compiler_wl_GCJ='-Wl,';;
23868 esac
John Criswell47fdd832003-07-14 16:52:07 +000023869 ;;
23870
23871 sunos4*)
23872 lt_prog_compiler_wl_GCJ='-Qoption ld '
23873 lt_prog_compiler_pic_GCJ='-PIC'
23874 lt_prog_compiler_static_GCJ='-Bstatic'
23875 ;;
23876
Reid Spencera773bd52006-08-04 18:18:08 +000023877 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023878 lt_prog_compiler_wl_GCJ='-Wl,'
23879 lt_prog_compiler_pic_GCJ='-KPIC'
23880 lt_prog_compiler_static_GCJ='-Bstatic'
23881 ;;
23882
23883 sysv4*MP*)
23884 if test -d /usr/nec ;then
23885 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23886 lt_prog_compiler_static_GCJ='-Bstatic'
23887 fi
23888 ;;
23889
Reid Spencera773bd52006-08-04 18:18:08 +000023890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23891 lt_prog_compiler_wl_GCJ='-Wl,'
23892 lt_prog_compiler_pic_GCJ='-KPIC'
23893 lt_prog_compiler_static_GCJ='-Bstatic'
23894 ;;
23895
23896 unicos*)
23897 lt_prog_compiler_wl_GCJ='-Wl,'
23898 lt_prog_compiler_can_build_shared_GCJ=no
23899 ;;
23900
John Criswell47fdd832003-07-14 16:52:07 +000023901 uts4*)
23902 lt_prog_compiler_pic_GCJ='-pic'
23903 lt_prog_compiler_static_GCJ='-Bstatic'
23904 ;;
23905
23906 *)
23907 lt_prog_compiler_can_build_shared_GCJ=no
23908 ;;
23909 esac
23910 fi
23911
Reid Spencera773bd52006-08-04 18:18:08 +000023912{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23913echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023914
23915#
23916# Check to make sure the PIC flag actually works.
23917#
23918if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023919
Reid Spencera773bd52006-08-04 18:18:08 +000023920{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23921echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023922if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23924else
23925 lt_prog_compiler_pic_works_GCJ=no
23926 ac_outfile=conftest.$ac_objext
23927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23928 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23929 # Insert the option either (1) after the last *FLAGS variable, or
23930 # (2) before a word containing "conftest.", or (3) at the end.
23931 # Note that $ac_compile itself does not contain backslashes and begins
23932 # with a dollar sign (not a hyphen), so the echo should work correctly.
23933 # The option is referenced via a variable to avoid confusing sed.
23934 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23937 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000023938 (eval echo "\"\$as_me:23938: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023939 (eval "$lt_compile" 2>conftest.err)
23940 ac_status=$?
23941 cat conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000023942 echo "$as_me:23942: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023943 if (exit $ac_status) && test -s "$ac_outfile"; then
23944 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023945 # So say no if there are warnings other than the usual output.
23946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023949 lt_prog_compiler_pic_works_GCJ=yes
23950 fi
23951 fi
23952 $rm conftest*
23953
23954fi
Reid Spencera773bd52006-08-04 18:18:08 +000023955{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23956echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023957
23958if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23959 case $lt_prog_compiler_pic_GCJ in
23960 "" | " "*) ;;
23961 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23962 esac
23963else
23964 lt_prog_compiler_pic_GCJ=
23965 lt_prog_compiler_can_build_shared_GCJ=no
23966fi
23967
23968fi
Reid Spencera773bd52006-08-04 18:18:08 +000023969case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023970 # For platforms which do not support PIC, -DPIC is meaningless:
23971 *djgpp*)
23972 lt_prog_compiler_pic_GCJ=
23973 ;;
23974 *)
23975 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23976 ;;
23977esac
23978
Reid Spencera773bd52006-08-04 18:18:08 +000023979#
23980# Check to make sure the static flag actually works.
23981#
23982wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23983{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23984echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23985if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23987else
23988 lt_prog_compiler_static_works_GCJ=no
23989 save_LDFLAGS="$LDFLAGS"
23990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23991 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23993 # The linker can only warn and ignore the option if not recognized
23994 # So say no if there are warnings
23995 if test -s conftest.err; then
23996 # Append any errors to the config.log.
23997 cat conftest.err 1>&5
23998 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24000 if diff conftest.exp conftest.er2 >/dev/null; then
24001 lt_prog_compiler_static_works_GCJ=yes
24002 fi
24003 else
24004 lt_prog_compiler_static_works_GCJ=yes
24005 fi
24006 fi
24007 $rm conftest*
24008 LDFLAGS="$save_LDFLAGS"
24009
24010fi
24011{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24012echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24013
24014if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24015 :
24016else
24017 lt_prog_compiler_static_GCJ=
24018fi
24019
24020
24021{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24022echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024023if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025else
24026 lt_cv_prog_compiler_c_o_GCJ=no
24027 $rm -r conftest 2>/dev/null
24028 mkdir conftest
24029 cd conftest
24030 mkdir out
24031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24032
John Criswell47fdd832003-07-14 16:52:07 +000024033 lt_compiler_flag="-o out/conftest2.$ac_objext"
24034 # Insert the option either (1) after the last *FLAGS variable, or
24035 # (2) before a word containing "conftest.", or (3) at the end.
24036 # Note that $ac_compile itself does not contain backslashes and begins
24037 # with a dollar sign (not a hyphen), so the echo should work correctly.
24038 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24041 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000024042 (eval echo "\"\$as_me:24042: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024043 (eval "$lt_compile" 2>out/conftest.err)
24044 ac_status=$?
24045 cat out/conftest.err >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000024046 echo "$as_me:24046: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24048 then
24049 # The compiler can only warn and ignore the option if not recognized
24050 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024054 lt_cv_prog_compiler_c_o_GCJ=yes
24055 fi
24056 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024057 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024058 $rm conftest*
24059 # SGI C++ compiler will create directory out/ii_files/ for
24060 # template instantiation
24061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24062 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024063 cd ..
24064 rmdir conftest
24065 $rm conftest*
24066
24067fi
Reid Spencera773bd52006-08-04 18:18:08 +000024068{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24069echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024070
24071
24072hard_links="nottested"
24073if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24074 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024075 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24076echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024077 hard_links=yes
24078 $rm conftest*
24079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24080 touch conftest.a
24081 ln conftest.a conftest.b 2>&5 || hard_links=no
24082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024083 { echo "$as_me:$LINENO: result: $hard_links" >&5
24084echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024085 if test "$hard_links" = no; then
24086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24087echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24088 need_locks=warn
24089 fi
24090else
24091 need_locks=no
24092fi
24093
Reid Spencera773bd52006-08-04 18:18:08 +000024094{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024096
24097 runpath_var=
24098 allow_undefined_flag_GCJ=
24099 enable_shared_with_static_runtimes_GCJ=no
24100 archive_cmds_GCJ=
24101 archive_expsym_cmds_GCJ=
24102 old_archive_From_new_cmds_GCJ=
24103 old_archive_from_expsyms_cmds_GCJ=
24104 export_dynamic_flag_spec_GCJ=
24105 whole_archive_flag_spec_GCJ=
24106 thread_safe_flag_spec_GCJ=
24107 hardcode_libdir_flag_spec_GCJ=
24108 hardcode_libdir_flag_spec_ld_GCJ=
24109 hardcode_libdir_separator_GCJ=
24110 hardcode_direct_GCJ=no
24111 hardcode_minus_L_GCJ=no
24112 hardcode_shlibpath_var_GCJ=unsupported
24113 link_all_deplibs_GCJ=unknown
24114 hardcode_automatic_GCJ=no
24115 module_cmds_GCJ=
24116 module_expsym_cmds_GCJ=
24117 always_export_symbols_GCJ=no
24118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24119 # include_expsyms should be a list of space-separated symbols to be *always*
24120 # included in the symbol list
24121 include_expsyms_GCJ=
24122 # exclude_expsyms can be an extended regexp of symbols to exclude
24123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24125 # as well as any symbol that contains `d'.
24126 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24128 # platforms (ab)use it in PIC code, but their linkers get confused if
24129 # the symbol is explicitly referenced. Since portable code cannot
24130 # rely on this symbol name, it's probably fine to never include it in
24131 # preloaded symbol tables.
24132 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024133 # Just being paranoid about ensuring that cc_basename is set.
24134 for cc_temp in $compiler""; do
24135 case $cc_temp in
24136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24138 \-*) ;;
24139 *) break;;
24140 esac
24141done
24142cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024143
24144 case $host_os in
24145 cygwin* | mingw* | pw32*)
24146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24147 # When not using gcc, we currently assume that we are using
24148 # Microsoft Visual C++.
24149 if test "$GCC" != yes; then
24150 with_gnu_ld=no
24151 fi
24152 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024153 interix*)
24154 # we just hope/assume this is gcc and not c89 (= MSVC++)
24155 with_gnu_ld=yes
24156 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024157 openbsd*)
24158 with_gnu_ld=no
24159 ;;
24160 esac
24161
24162 ld_shlibs_GCJ=yes
24163 if test "$with_gnu_ld" = yes; then
24164 # If archive_cmds runs LD, not CC, wlarc should be empty
24165 wlarc='${wl}'
24166
Reid Spencera773bd52006-08-04 18:18:08 +000024167 # Set some defaults for GNU ld with shared library support. These
24168 # are reset later if shared libraries are not supported. Putting them
24169 # here allows them to be overridden if necessary.
24170 runpath_var=LD_RUN_PATH
24171 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24172 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24173 # ancient GNU ld didn't support --whole-archive et. al.
24174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24175 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24176 else
24177 whole_archive_flag_spec_GCJ=
24178 fi
24179 supports_anon_versioning=no
24180 case `$LD -v 2>/dev/null` in
24181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24184 *\ 2.11.*) ;; # other 2.11 versions
24185 *) supports_anon_versioning=yes ;;
24186 esac
24187
John Criswell47fdd832003-07-14 16:52:07 +000024188 # See if GNU ld supports shared libraries.
24189 case $host_os in
24190 aix3* | aix4* | aix5*)
24191 # On AIX/PPC, the GNU linker is very broken
24192 if test "$host_cpu" != ia64; then
24193 ld_shlibs_GCJ=no
24194 cat <<EOF 1>&2
24195
24196*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24197*** to be unable to reliably create shared libraries on AIX.
24198*** Therefore, libtool is disabling shared libraries support. If you
24199*** really care for shared libraries, you may want to modify your PATH
24200*** so that a non-GNU linker is found, and then restart.
24201
24202EOF
24203 fi
24204 ;;
24205
24206 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024207 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 +000024208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24209 hardcode_minus_L_GCJ=yes
24210
24211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24212 # that the semantics of dynamic libraries on AmigaOS, at least up
24213 # to version 4, is to share data among multiple programs linked
24214 # with the same dynamic library. Since this doesn't match the
24215 # behavior of shared libraries on other platforms, we can't use
24216 # them.
24217 ld_shlibs_GCJ=no
24218 ;;
24219
24220 beos*)
24221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24222 allow_undefined_flag_GCJ=unsupported
24223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24224 # support --undefined. This deserves some investigation. FIXME
24225 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24226 else
24227 ld_shlibs_GCJ=no
24228 fi
24229 ;;
24230
24231 cygwin* | mingw* | pw32*)
24232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24233 # as there is no search path for DLLs.
24234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24235 allow_undefined_flag_GCJ=unsupported
24236 always_export_symbols_GCJ=no
24237 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024238 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 +000024239
24240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024241 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 +000024242 # If the export-symbols file already is a .def file (1st line
24243 # is EXPORTS), use it as is; otherwise, prepend...
24244 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24245 cp $export_symbols $output_objdir/$soname.def;
24246 else
24247 echo EXPORTS > $output_objdir/$soname.def;
24248 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024249 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024250 $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 +000024251 else
Reid Spencera773bd52006-08-04 18:18:08 +000024252 ld_shlibs_GCJ=no
24253 fi
24254 ;;
24255
24256 interix3*)
24257 hardcode_direct_GCJ=no
24258 hardcode_shlibpath_var_GCJ=no
24259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24260 export_dynamic_flag_spec_GCJ='${wl}-E'
24261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24262 # Instead, shared libraries are loaded at an image base (0x10000000 by
24263 # default) and relocated if they conflict, which is a slow very memory
24264 # consuming and fragmenting process. To avoid this, we pick a random,
24265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24266 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24267 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'
24268 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'
24269 ;;
24270
24271 linux*)
24272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24273 tmp_addflag=
24274 case $cc_basename,$host_cpu in
24275 pgcc*) # Portland Group C compiler
24276 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'
24277 tmp_addflag=' $pic_flag'
24278 ;;
24279 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24280 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'
24281 tmp_addflag=' $pic_flag -Mnomain' ;;
24282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24283 tmp_addflag=' -i_dynamic' ;;
24284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24285 tmp_addflag=' -i_dynamic -nofor_main' ;;
24286 ifc* | ifort*) # Intel Fortran compiler
24287 tmp_addflag=' -nofor_main' ;;
24288 esac
24289 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24290
24291 if test $supports_anon_versioning = yes; then
24292 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24294 $echo "local: *; };" >> $output_objdir/$libname.ver~
24295 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24296 fi
24297 else
24298 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024299 fi
24300 ;;
24301
24302 netbsd*)
24303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24304 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24305 wlarc=
24306 else
24307 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24308 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24309 fi
24310 ;;
24311
Reid Spencera773bd52006-08-04 18:18:08 +000024312 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024313 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24314 ld_shlibs_GCJ=no
24315 cat <<EOF 1>&2
24316
24317*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24318*** create shared libraries on Solaris systems. Therefore, libtool
24319*** is disabling shared libraries support. We urge you to upgrade GNU
24320*** binutils to release 2.9.1 or newer. Another option is to modify
24321*** your PATH or compiler configuration so that the native linker is
24322*** used, and then restart.
24323
24324EOF
24325 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24326 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24327 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24328 else
24329 ld_shlibs_GCJ=no
24330 fi
24331 ;;
24332
Reid Spencera773bd52006-08-04 18:18:08 +000024333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24334 case `$LD -v 2>&1` in
24335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24336 ld_shlibs_GCJ=no
24337 cat <<_LT_EOF 1>&2
24338
24339*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24340*** reliably create shared libraries on SCO systems. Therefore, libtool
24341*** is disabling shared libraries support. We urge you to upgrade GNU
24342*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24343*** your PATH or compiler configuration so that the native linker is
24344*** used, and then restart.
24345
24346_LT_EOF
24347 ;;
24348 *)
24349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24353 else
24354 ld_shlibs_GCJ=no
24355 fi
24356 ;;
24357 esac
24358 ;;
24359
John Criswell47fdd832003-07-14 16:52:07 +000024360 sunos4*)
24361 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24362 wlarc=
24363 hardcode_direct_GCJ=yes
24364 hardcode_shlibpath_var_GCJ=no
24365 ;;
24366
24367 *)
24368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24371 else
24372 ld_shlibs_GCJ=no
24373 fi
24374 ;;
24375 esac
24376
Reid Spencera773bd52006-08-04 18:18:08 +000024377 if test "$ld_shlibs_GCJ" = no; then
24378 runpath_var=
24379 hardcode_libdir_flag_spec_GCJ=
24380 export_dynamic_flag_spec_GCJ=
24381 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024382 fi
24383 else
24384 # PORTME fill in a description of your system's linker (not GNU ld)
24385 case $host_os in
24386 aix3*)
24387 allow_undefined_flag_GCJ=unsupported
24388 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024389 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 +000024390 # Note: this linker hardcodes the directories in LIBPATH if there
24391 # are no directories specified by -L.
24392 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024394 # Neither direct hardcoding nor static linking is supported with a
24395 # broken collect2.
24396 hardcode_direct_GCJ=unsupported
24397 fi
24398 ;;
24399
24400 aix4* | aix5*)
24401 if test "$host_cpu" = ia64; then
24402 # On IA64, the linker does run time linking by default, so we don't
24403 # have to do anything special.
24404 aix_use_runtimelinking=no
24405 exp_sym_flag='-Bexport'
24406 no_entry_flag=""
24407 else
24408 # If we're using GNU nm, then we don't want the "-C" option.
24409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24411 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'
24412 else
24413 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'
24414 fi
24415 aix_use_runtimelinking=no
24416
24417 # Test if we are trying to use run time linking or normal
24418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24419 # need to do runtime linking.
24420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24421 for ld_flag in $LDFLAGS; do
24422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24423 aix_use_runtimelinking=yes
24424 break
24425 fi
24426 done
Reid Spencera773bd52006-08-04 18:18:08 +000024427 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024428 esac
24429
24430 exp_sym_flag='-bexport'
24431 no_entry_flag='-bnoentry'
24432 fi
24433
24434 # When large executables or shared objects are built, AIX ld can
24435 # have problems creating the table of contents. If linking a library
24436 # or program results in "error TOC overflow" add -mminimal-toc to
24437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24439
24440 archive_cmds_GCJ=''
24441 hardcode_direct_GCJ=yes
24442 hardcode_libdir_separator_GCJ=':'
24443 link_all_deplibs_GCJ=yes
24444
24445 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024446 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024447 # We only want to do this on AIX 4.2 and lower, the check
24448 # below for broken collect2 doesn't work under 4.3+
24449 collect2name=`${CC} -print-prog-name=collect2`
24450 if test -f "$collect2name" && \
24451 strings "$collect2name" | grep resolve_lib_name >/dev/null
24452 then
24453 # We have reworked collect2
24454 hardcode_direct_GCJ=yes
24455 else
24456 # We have old collect2
24457 hardcode_direct_GCJ=unsupported
24458 # It fails to find uninstalled libraries when the uninstalled
24459 # path is not listed in the libpath. Setting hardcode_minus_L
24460 # to unsupported forces relinking
24461 hardcode_minus_L_GCJ=yes
24462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24463 hardcode_libdir_separator_GCJ=
24464 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024465 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024466 esac
24467 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024468 if test "$aix_use_runtimelinking" = yes; then
24469 shared_flag="$shared_flag "'${wl}-G'
24470 fi
John Criswell47fdd832003-07-14 16:52:07 +000024471 else
24472 # not using gcc
24473 if test "$host_cpu" = ia64; then
24474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24475 # chokes on -Wl,-G. The following line is correct:
24476 shared_flag='-G'
24477 else
Reid Spencera773bd52006-08-04 18:18:08 +000024478 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024479 shared_flag='${wl}-G'
24480 else
24481 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024482 fi
John Criswell47fdd832003-07-14 16:52:07 +000024483 fi
24484 fi
24485
24486 # It seems that -bexpall does not export symbols beginning with
24487 # underscore (_), so it is better to generate a list of symbols to export.
24488 always_export_symbols_GCJ=yes
24489 if test "$aix_use_runtimelinking" = yes; then
24490 # Warning - without using the other runtime loading flags (-brtl),
24491 # -berok will link without error, but may produce a broken library.
24492 allow_undefined_flag_GCJ='-berok'
24493 # Determine the default libpath from the value encoded in an empty executable.
24494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024495/* confdefs.h. */
24496_ACEOF
24497cat confdefs.h >>conftest.$ac_ext
24498cat >>conftest.$ac_ext <<_ACEOF
24499/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024500
John Criswell47fdd832003-07-14 16:52:07 +000024501int
24502main ()
24503{
24504
24505 ;
24506 return 0;
24507}
24508_ACEOF
24509rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024510if { (ac_try="$ac_link"
24511case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24514esac
24515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024518 grep -v '^ *+' conftest.er1 >conftest.err
24519 rm -f conftest.er1
24520 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24524 { (case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24527esac
24528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024530 ac_status=$?
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; } &&
24533 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024534 { (case "(($ac_try" in
24535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24537esac
24538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24539 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024540 ac_status=$?
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543
24544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24545}'`
24546# Check for a 64-bit object if we didn't find anything.
24547if 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; }
24548}'`; fi
24549else
24550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024551sed 's/^/| /' conftest.$ac_ext >&5
24552
Reid Spencera773bd52006-08-04 18:18:08 +000024553
John Criswell47fdd832003-07-14 16:52:07 +000024554fi
Reid Spencera773bd52006-08-04 18:18:08 +000024555
24556rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024557 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24559
24560 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024561 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 +000024562 else
24563 if test "$host_cpu" = ia64; then
24564 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24565 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024566 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 +000024567 else
24568 # Determine the default libpath from the value encoded in an empty executable.
24569 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024575
John Criswell47fdd832003-07-14 16:52:07 +000024576int
24577main ()
24578{
24579
24580 ;
24581 return 0;
24582}
24583_ACEOF
24584rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024585if { (ac_try="$ac_link"
24586case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24589esac
24590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024593 grep -v '^ *+' conftest.er1 >conftest.err
24594 rm -f conftest.er1
24595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24599 { (case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24602esac
24603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024605 ac_status=$?
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; } &&
24608 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024609 { (case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24612esac
24613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024615 ac_status=$?
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618
24619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24620}'`
24621# Check for a 64-bit object if we didn't find anything.
24622if 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; }
24623}'`; fi
24624else
24625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024626sed 's/^/| /' conftest.$ac_ext >&5
24627
Reid Spencera773bd52006-08-04 18:18:08 +000024628
John Criswell47fdd832003-07-14 16:52:07 +000024629fi
Reid Spencera773bd52006-08-04 18:18:08 +000024630
24631rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024632 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24634
24635 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24636 # Warning - without using the other run time loading flags,
24637 # -berok will link without error, but may produce a broken library.
24638 no_undefined_flag_GCJ=' ${wl}-bernotok'
24639 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024640 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024641 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024642 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024643 # This is similar to how AIX traditionally builds its shared libraries.
24644 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 +000024645 fi
24646 fi
24647 ;;
24648
24649 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024650 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 +000024651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24652 hardcode_minus_L_GCJ=yes
24653 # see comment about different semantics on the GNU ld section
24654 ld_shlibs_GCJ=no
24655 ;;
24656
Reid Spencer2706f8c2004-09-19 23:53:36 +000024657 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024658 export_dynamic_flag_spec_GCJ=-rdynamic
24659 ;;
24660
24661 cygwin* | mingw* | pw32*)
24662 # When not using gcc, we currently assume that we are using
24663 # Microsoft Visual C++.
24664 # hardcode_libdir_flag_spec is actually meaningless, as there is
24665 # no search path for DLLs.
24666 hardcode_libdir_flag_spec_GCJ=' '
24667 allow_undefined_flag_GCJ=unsupported
24668 # Tell ltmain to make .lib files, not .a files.
24669 libext=lib
24670 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024671 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024672 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024673 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 +000024674 # The linker will automatically build a .lib file if we build a DLL.
24675 old_archive_From_new_cmds_GCJ='true'
24676 # FIXME: Should let the user specify the lib program.
24677 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024678 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024679 enable_shared_with_static_runtimes_GCJ=yes
24680 ;;
24681
24682 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024683 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024684 rhapsody* | darwin1.[012])
24685 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24686 ;;
24687 *) # Darwin 1.3 on
24688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24689 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24690 else
24691 case ${MACOSX_DEPLOYMENT_TARGET} in
24692 10.[012])
24693 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24694 ;;
24695 10.*)
24696 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24697 ;;
24698 esac
24699 fi
24700 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024701 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024702 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024703 hardcode_direct_GCJ=no
24704 hardcode_automatic_GCJ=yes
24705 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024706 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024707 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024708 if test "$GCC" = yes ; then
24709 output_verbose_link_cmd='echo'
24710 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24711 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024712 # 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 +000024713 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}'
24714 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 +000024715 else
Reid Spencera773bd52006-08-04 18:18:08 +000024716 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024717 xlc*)
24718 output_verbose_link_cmd='echo'
24719 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24720 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024721 # 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 +000024722 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}'
24723 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 +000024724 ;;
24725 *)
24726 ld_shlibs_GCJ=no
24727 ;;
24728 esac
John Criswell47fdd832003-07-14 16:52:07 +000024729 fi
24730 ;;
24731
24732 dgux*)
24733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24735 hardcode_shlibpath_var_GCJ=no
24736 ;;
24737
24738 freebsd1*)
24739 ld_shlibs_GCJ=no
24740 ;;
24741
24742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24743 # support. Future versions do this automatically, but an explicit c++rt0.o
24744 # does not break anything, and helps significantly (at the cost of a little
24745 # extra space).
24746 freebsd2.2*)
24747 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24748 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24749 hardcode_direct_GCJ=yes
24750 hardcode_shlibpath_var_GCJ=no
24751 ;;
24752
24753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24754 freebsd2*)
24755 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24756 hardcode_direct_GCJ=yes
24757 hardcode_minus_L_GCJ=yes
24758 hardcode_shlibpath_var_GCJ=no
24759 ;;
24760
24761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024762 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024763 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24764 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24765 hardcode_direct_GCJ=yes
24766 hardcode_shlibpath_var_GCJ=no
24767 ;;
24768
24769 hpux9*)
24770 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024771 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 +000024772 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024773 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 +000024774 fi
24775 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24776 hardcode_libdir_separator_GCJ=:
24777 hardcode_direct_GCJ=yes
24778
24779 # hardcode_minus_L: Not really in the search PATH,
24780 # but as the default location of the library.
24781 hardcode_minus_L_GCJ=yes
24782 export_dynamic_flag_spec_GCJ='${wl}-E'
24783 ;;
24784
Reid Spencera773bd52006-08-04 18:18:08 +000024785 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024787 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24788 else
24789 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24790 fi
24791 if test "$with_gnu_ld" = no; then
24792 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24793 hardcode_libdir_separator_GCJ=:
24794
24795 hardcode_direct_GCJ=yes
24796 export_dynamic_flag_spec_GCJ='${wl}-E'
24797
24798 # hardcode_minus_L: Not really in the search PATH,
24799 # but as the default location of the library.
24800 hardcode_minus_L_GCJ=yes
24801 fi
24802 ;;
24803
24804 hpux11*)
24805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24806 case $host_cpu in
24807 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024808 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24809 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024810 ia64*)
24811 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24812 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024813 *)
24814 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24815 ;;
24816 esac
24817 else
Reid Spencera773bd52006-08-04 18:18:08 +000024818 case $host_cpu in
24819 hppa*64*)
24820 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24821 ;;
24822 ia64*)
24823 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024824 ;;
24825 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024826 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 +000024827 ;;
24828 esac
24829 fi
24830 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024831 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24832 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024833
Reid Spencera773bd52006-08-04 18:18:08 +000024834 case $host_cpu in
24835 hppa*64*|ia64*)
24836 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24837 hardcode_direct_GCJ=no
24838 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024839 ;;
24840 *)
John Criswell47fdd832003-07-14 16:52:07 +000024841 hardcode_direct_GCJ=yes
24842 export_dynamic_flag_spec_GCJ='${wl}-E'
24843
24844 # hardcode_minus_L: Not really in the search PATH,
24845 # but as the default location of the library.
24846 hardcode_minus_L_GCJ=yes
24847 ;;
24848 esac
24849 fi
24850 ;;
24851
24852 irix5* | irix6* | nonstopux*)
24853 if test "$GCC" = yes; then
24854 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'
24855 else
24856 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'
24857 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24858 fi
24859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24860 hardcode_libdir_separator_GCJ=:
24861 link_all_deplibs_GCJ=yes
24862 ;;
24863
24864 netbsd*)
24865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24866 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24867 else
24868 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24869 fi
24870 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24871 hardcode_direct_GCJ=yes
24872 hardcode_shlibpath_var_GCJ=no
24873 ;;
24874
24875 newsos6)
24876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24877 hardcode_direct_GCJ=yes
24878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24879 hardcode_libdir_separator_GCJ=:
24880 hardcode_shlibpath_var_GCJ=no
24881 ;;
24882
24883 openbsd*)
24884 hardcode_direct_GCJ=yes
24885 hardcode_shlibpath_var_GCJ=no
24886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24887 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024888 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 +000024889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24890 export_dynamic_flag_spec_GCJ='${wl}-E'
24891 else
24892 case $host_os in
24893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896 ;;
24897 *)
24898 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24900 ;;
24901 esac
24902 fi
24903 ;;
24904
24905 os2*)
24906 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24907 hardcode_minus_L_GCJ=yes
24908 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024909 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 +000024910 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24911 ;;
24912
24913 osf3*)
24914 if test "$GCC" = yes; then
24915 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24916 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'
24917 else
24918 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24919 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'
24920 fi
24921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24923 ;;
24924
24925 osf4* | osf5*) # as osf3* with the addition of -msym flag
24926 if test "$GCC" = yes; then
24927 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24928 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'
24929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930 else
24931 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24932 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 +000024933 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 +000024934 $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 +000024935
John Criswell47fdd832003-07-14 16:52:07 +000024936 # Both c and cxx compiler support -rpath directly
24937 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24938 fi
24939 hardcode_libdir_separator_GCJ=:
24940 ;;
24941
John Criswell47fdd832003-07-14 16:52:07 +000024942 solaris*)
24943 no_undefined_flag_GCJ=' -z text'
24944 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024945 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024946 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024947 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24948 $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 +000024949 else
Reid Spencera773bd52006-08-04 18:18:08 +000024950 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024951 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024952 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24953 $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 +000024954 fi
24955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24956 hardcode_shlibpath_var_GCJ=no
24957 case $host_os in
24958 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024959 *)
24960 # The compiler driver will combine linker options so we
24961 # cannot just pass the convience library names through
24962 # without $wl, iff we do not link with $LD.
24963 # Luckily, gcc supports the same syntax we need for Sun Studio.
24964 # Supported since Solaris 2.6 (maybe 2.5.1?)
24965 case $wlarc in
24966 '')
24967 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24968 *)
24969 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' ;;
24970 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024971 esac
24972 link_all_deplibs_GCJ=yes
24973 ;;
24974
24975 sunos4*)
24976 if test "x$host_vendor" = xsequent; then
24977 # Use $CC to link under sequent, because it throws in some extra .o
24978 # files that make .init and .fini sections work.
24979 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24980 else
24981 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24982 fi
24983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984 hardcode_direct_GCJ=yes
24985 hardcode_minus_L_GCJ=yes
24986 hardcode_shlibpath_var_GCJ=no
24987 ;;
24988
24989 sysv4)
24990 case $host_vendor in
24991 sni)
24992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24993 hardcode_direct_GCJ=yes # is this really true???
24994 ;;
24995 siemens)
24996 ## LD is ld it makes a PLAMLIB
24997 ## CC just makes a GrossModule.
24998 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24999 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25000 hardcode_direct_GCJ=no
25001 ;;
25002 motorola)
25003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25004 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25005 ;;
25006 esac
25007 runpath_var='LD_RUN_PATH'
25008 hardcode_shlibpath_var_GCJ=no
25009 ;;
25010
25011 sysv4.3*)
25012 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013 hardcode_shlibpath_var_GCJ=no
25014 export_dynamic_flag_spec_GCJ='-Bexport'
25015 ;;
25016
25017 sysv4*MP*)
25018 if test -d /usr/nec; then
25019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020 hardcode_shlibpath_var_GCJ=no
25021 runpath_var=LD_RUN_PATH
25022 hardcode_runpath_var=yes
25023 ld_shlibs_GCJ=yes
25024 fi
25025 ;;
25026
Reid Spencera773bd52006-08-04 18:18:08 +000025027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25028 no_undefined_flag_GCJ='${wl}-z,text'
25029 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025030 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025031 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025032
John Criswell47fdd832003-07-14 16:52:07 +000025033 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025034 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25035 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 +000025036 else
Reid Spencera773bd52006-08-04 18:18:08 +000025037 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25038 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 +000025039 fi
John Criswell47fdd832003-07-14 16:52:07 +000025040 ;;
25041
Reid Spencera773bd52006-08-04 18:18:08 +000025042 sysv5* | sco3.2v5* | sco5v6*)
25043 # Note: We can NOT use -z defs as we might desire, because we do not
25044 # link with -lc, and that would cause any symbols used from libc to
25045 # always be unresolved, which means just about no library would
25046 # ever link correctly. If we're not using GNU ld we use -z text
25047 # though, which does catch some bad symbols but isn't as heavy-handed
25048 # as -z defs.
25049 no_undefined_flag_GCJ='${wl}-z,text'
25050 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25051 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025052 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025053 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25054 hardcode_libdir_separator_GCJ=':'
25055 link_all_deplibs_GCJ=yes
25056 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025057 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025058
25059 if test "$GCC" = yes; then
25060 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25062 else
25063 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25064 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25065 fi
John Criswell47fdd832003-07-14 16:52:07 +000025066 ;;
25067
25068 uts4*)
25069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25071 hardcode_shlibpath_var_GCJ=no
25072 ;;
25073
25074 *)
25075 ld_shlibs_GCJ=no
25076 ;;
25077 esac
25078 fi
25079
Reid Spencera773bd52006-08-04 18:18:08 +000025080{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25081echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025082test "$ld_shlibs_GCJ" = no && can_build_shared=no
25083
John Criswell47fdd832003-07-14 16:52:07 +000025084#
25085# Do we need to explicitly link libc?
25086#
25087case "x$archive_cmds_need_lc_GCJ" in
25088x|xyes)
25089 # Assume -lc should be added
25090 archive_cmds_need_lc_GCJ=yes
25091
25092 if test "$enable_shared" = yes && test "$GCC" = yes; then
25093 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025094 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025095 # FIXME: we may have to deal with multi-command sequences.
25096 ;;
25097 '$CC '*)
25098 # Test whether the compiler implicitly links with -lc since on some
25099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25100 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25102echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025103 $rm conftest*
25104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25105
25106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107 (eval $ac_compile) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } 2>conftest.err; then
25111 soname=conftest
25112 lib=conftest
25113 libobjs=conftest.$ac_objext
25114 deplibs=
25115 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025116 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025117 compiler_flags=-v
25118 linker_flags=-v
25119 verstring=
25120 output_objdir=.
25121 libname=conftest
25122 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25123 allow_undefined_flag_GCJ=
25124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25125 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }
25129 then
25130 archive_cmds_need_lc_GCJ=no
25131 else
25132 archive_cmds_need_lc_GCJ=yes
25133 fi
25134 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25135 else
25136 cat conftest.err 1>&5
25137 fi
25138 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25140echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025141 ;;
25142 esac
25143 fi
25144 ;;
25145esac
25146
Reid Spencera773bd52006-08-04 18:18:08 +000025147{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25148echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025149library_names_spec=
25150libname_spec='lib$name'
25151soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025152shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025153postinstall_cmds=
25154postuninstall_cmds=
25155finish_cmds=
25156finish_eval=
25157shlibpath_var=
25158shlibpath_overrides_runpath=unknown
25159version_type=none
25160dynamic_linker="$host_os ld.so"
25161sys_lib_dlsearch_path_spec="/lib /usr/lib"
25162if test "$GCC" = yes; then
25163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25165 # if the path contains ";" then we assume it to be the separator
25166 # otherwise default to the standard path separator (i.e. ":") - it is
25167 # assumed that no part of a normal pathname contains ";" but that should
25168 # okay in the real world where ";" in dirpaths is itself problematic.
25169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25170 else
25171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25172 fi
25173else
25174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25175fi
25176need_lib_prefix=unknown
25177hardcode_into_libs=no
25178
25179# when you set need_version to no, make sure it does not cause -set_version
25180# flags to be left without arguments
25181need_version=unknown
25182
25183case $host_os in
25184aix3*)
25185 version_type=linux
25186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25187 shlibpath_var=LIBPATH
25188
25189 # AIX 3 has no versioning support, so we append a major version to the name.
25190 soname_spec='${libname}${release}${shared_ext}$major'
25191 ;;
25192
25193aix4* | aix5*)
25194 version_type=linux
25195 need_lib_prefix=no
25196 need_version=no
25197 hardcode_into_libs=yes
25198 if test "$host_cpu" = ia64; then
25199 # AIX 5 supports IA64
25200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25201 shlibpath_var=LD_LIBRARY_PATH
25202 else
25203 # With GCC up to 2.95.x, collect2 would create an import file
25204 # for dependence libraries. The import file would start with
25205 # the line `#! .'. This would cause the generated library to
25206 # depend on `.', always an invalid library. This was fixed in
25207 # development snapshots of GCC prior to 3.0.
25208 case $host_os in
25209 aix4 | aix4.[01] | aix4.[01].*)
25210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25211 echo ' yes '
25212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25213 :
25214 else
25215 can_build_shared=no
25216 fi
25217 ;;
25218 esac
25219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25220 # soname into executable. Probably we can add versioning support to
25221 # collect2, so additional links can be useful in future.
25222 if test "$aix_use_runtimelinking" = yes; then
25223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25224 # instead of lib<name>.a to let people know that these are not
25225 # typical AIX shared libraries.
25226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25227 else
25228 # We preserve .a as extension for shared libraries through AIX4.2
25229 # and later when we are not doing run time linking.
25230 library_names_spec='${libname}${release}.a $libname.a'
25231 soname_spec='${libname}${release}${shared_ext}$major'
25232 fi
25233 shlibpath_var=LIBPATH
25234 fi
25235 ;;
25236
25237amigaos*)
25238 library_names_spec='$libname.ixlibrary $libname.a'
25239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025240 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 +000025241 ;;
25242
25243beos*)
25244 library_names_spec='${libname}${shared_ext}'
25245 dynamic_linker="$host_os ld.so"
25246 shlibpath_var=LIBRARY_PATH
25247 ;;
25248
Reid Spencer2706f8c2004-09-19 23:53:36 +000025249bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025250 version_type=linux
25251 need_version=no
25252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25253 soname_spec='${libname}${release}${shared_ext}$major'
25254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25255 shlibpath_var=LD_LIBRARY_PATH
25256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25258 # the default ld.so.conf also contains /usr/contrib/lib and
25259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25260 # libtool to hard-code these into programs
25261 ;;
25262
25263cygwin* | mingw* | pw32*)
25264 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025265 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025266 need_version=no
25267 need_lib_prefix=no
25268
25269 case $GCC,$host_os in
25270 yes,cygwin* | yes,mingw* | yes,pw32*)
25271 library_names_spec='$libname.dll.a'
25272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025273 postinstall_cmds='base_file=`basename \${file}`~
25274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25275 dldir=$destdir/`dirname \$dlpath`~
25276 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025277 $install_prog $dir/$dlname \$dldir/$dlname~
25278 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25280 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025281 $rm \$dlpath'
25282 shlibpath_overrides_runpath=yes
25283
25284 case $host_os in
25285 cygwin*)
25286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25287 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 +000025288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025289 ;;
25290 mingw*)
25291 # MinGW DLLs use traditional 'lib' prefix
25292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25295 # It is most probably a Windows format PATH printed by
25296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25297 # path with ; separators, and with drive letters. We can handle the
25298 # drive letters (cygwin fileutils understands them), so leave them,
25299 # especially as we might pass files found there to a mingw objdump,
25300 # which wouldn't understand a cygwinified path. Ahh.
25301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25302 else
25303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25304 fi
25305 ;;
25306 pw32*)
25307 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025308 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 +000025309 ;;
25310 esac
25311 ;;
25312
25313 *)
25314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25315 ;;
25316 esac
25317 dynamic_linker='Win32 ld.exe'
25318 # FIXME: first we should search . and the directory the executable is in
25319 shlibpath_var=PATH
25320 ;;
25321
25322darwin* | rhapsody*)
25323 dynamic_linker="$host_os dyld"
25324 version_type=darwin
25325 need_lib_prefix=no
25326 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025328 soname_spec='${libname}${release}${major}$shared_ext'
25329 shlibpath_overrides_runpath=yes
25330 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025331 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025333 if test "$GCC" = yes; then
25334 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"`
25335 else
25336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025337 fi
25338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25339 ;;
25340
25341dgux*)
25342 version_type=linux
25343 need_lib_prefix=no
25344 need_version=no
25345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25346 soname_spec='${libname}${release}${shared_ext}$major'
25347 shlibpath_var=LD_LIBRARY_PATH
25348 ;;
25349
25350freebsd1*)
25351 dynamic_linker=no
25352 ;;
25353
Reid Spencer2706f8c2004-09-19 23:53:36 +000025354kfreebsd*-gnu)
25355 version_type=linux
25356 need_lib_prefix=no
25357 need_version=no
25358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25359 soname_spec='${libname}${release}${shared_ext}$major'
25360 shlibpath_var=LD_LIBRARY_PATH
25361 shlibpath_overrides_runpath=no
25362 hardcode_into_libs=yes
25363 dynamic_linker='GNU ld.so'
25364 ;;
25365
Reid Spencera773bd52006-08-04 18:18:08 +000025366freebsd* | dragonfly*)
25367 # DragonFly does not have aout. When/if they implement a new
25368 # versioning mechanism, adjust this.
25369 if test -x /usr/bin/objformat; then
25370 objformat=`/usr/bin/objformat`
25371 else
25372 case $host_os in
25373 freebsd[123]*) objformat=aout ;;
25374 *) objformat=elf ;;
25375 esac
25376 fi
John Criswell47fdd832003-07-14 16:52:07 +000025377 version_type=freebsd-$objformat
25378 case $version_type in
25379 freebsd-elf*)
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25381 need_version=no
25382 need_lib_prefix=no
25383 ;;
25384 freebsd-*)
25385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25386 need_version=yes
25387 ;;
25388 esac
25389 shlibpath_var=LD_LIBRARY_PATH
25390 case $host_os in
25391 freebsd2*)
25392 shlibpath_overrides_runpath=yes
25393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025394 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025395 shlibpath_overrides_runpath=yes
25396 hardcode_into_libs=yes
25397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025400 shlibpath_overrides_runpath=no
25401 hardcode_into_libs=yes
25402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025403 freebsd*) # from 4.6 on
25404 shlibpath_overrides_runpath=yes
25405 hardcode_into_libs=yes
25406 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025407 esac
25408 ;;
25409
25410gnu*)
25411 version_type=linux
25412 need_lib_prefix=no
25413 need_version=no
25414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25415 soname_spec='${libname}${release}${shared_ext}$major'
25416 shlibpath_var=LD_LIBRARY_PATH
25417 hardcode_into_libs=yes
25418 ;;
25419
25420hpux9* | hpux10* | hpux11*)
25421 # Give a soname corresponding to the major version so that dld.sl refuses to
25422 # link against other versions.
25423 version_type=sunos
25424 need_lib_prefix=no
25425 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025426 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025427 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025428 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025429 hardcode_into_libs=yes
25430 dynamic_linker="$host_os dld.so"
25431 shlibpath_var=LD_LIBRARY_PATH
25432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25434 soname_spec='${libname}${release}${shared_ext}$major'
25435 if test "X$HPUX_IA64_MODE" = X32; then
25436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25437 else
25438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25439 fi
25440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25441 ;;
25442 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025443 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025444 hardcode_into_libs=yes
25445 dynamic_linker="$host_os dld.sl"
25446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25449 soname_spec='${libname}${release}${shared_ext}$major'
25450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25452 ;;
25453 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025455 dynamic_linker="$host_os dld.sl"
25456 shlibpath_var=SHLIB_PATH
25457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25459 soname_spec='${libname}${release}${shared_ext}$major'
25460 ;;
25461 esac
25462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25463 postinstall_cmds='chmod 555 $lib'
25464 ;;
25465
Reid Spencera773bd52006-08-04 18:18:08 +000025466interix3*)
25467 version_type=linux
25468 need_lib_prefix=no
25469 need_version=no
25470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25471 soname_spec='${libname}${release}${shared_ext}$major'
25472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25473 shlibpath_var=LD_LIBRARY_PATH
25474 shlibpath_overrides_runpath=no
25475 hardcode_into_libs=yes
25476 ;;
25477
John Criswell47fdd832003-07-14 16:52:07 +000025478irix5* | irix6* | nonstopux*)
25479 case $host_os in
25480 nonstopux*) version_type=nonstopux ;;
25481 *)
25482 if test "$lt_cv_prog_gnu_ld" = yes; then
25483 version_type=linux
25484 else
25485 version_type=irix
25486 fi ;;
25487 esac
25488 need_lib_prefix=no
25489 need_version=no
25490 soname_spec='${libname}${release}${shared_ext}$major'
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25492 case $host_os in
25493 irix5* | nonstopux*)
25494 libsuff= shlibsuff=
25495 ;;
25496 *)
25497 case $LD in # libtool.m4 will add one of these switches to LD
25498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25499 libsuff= shlibsuff= libmagic=32-bit;;
25500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25501 libsuff=32 shlibsuff=N32 libmagic=N32;;
25502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25504 *) libsuff= shlibsuff= libmagic=never-match;;
25505 esac
25506 ;;
25507 esac
25508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25509 shlibpath_overrides_runpath=no
25510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25512 hardcode_into_libs=yes
25513 ;;
25514
25515# No shared lib support for Linux oldld, aout, or coff.
25516linux*oldld* | linux*aout* | linux*coff*)
25517 dynamic_linker=no
25518 ;;
25519
25520# This must be Linux ELF.
25521linux*)
25522 version_type=linux
25523 need_lib_prefix=no
25524 need_version=no
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526 soname_spec='${libname}${release}${shared_ext}$major'
25527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25528 shlibpath_var=LD_LIBRARY_PATH
25529 shlibpath_overrides_runpath=no
25530 # This implies no fast_install, which is unacceptable.
25531 # Some rework will be needed to allow for fast_install
25532 # before this can be enabled.
25533 hardcode_into_libs=yes
25534
Reid Spencer2706f8c2004-09-19 23:53:36 +000025535 # Append ld.so.conf contents to the search path
25536 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025537 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 +000025538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25539 fi
25540
John Criswell47fdd832003-07-14 16:52:07 +000025541 # We used to test for /lib/ld.so.1 and disable shared libraries on
25542 # powerpc, because MkLinux only supported shared libraries with the
25543 # GNU dynamic linker. Since this was broken with cross compilers,
25544 # most powerpc-linux boxes support dynamic linking these days and
25545 # people can always --disable-shared, the test was removed, and we
25546 # assume the GNU/Linux dynamic linker is in use.
25547 dynamic_linker='GNU/Linux ld.so'
25548 ;;
25549
Reid Spencer2706f8c2004-09-19 23:53:36 +000025550knetbsd*-gnu)
25551 version_type=linux
25552 need_lib_prefix=no
25553 need_version=no
25554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25555 soname_spec='${libname}${release}${shared_ext}$major'
25556 shlibpath_var=LD_LIBRARY_PATH
25557 shlibpath_overrides_runpath=no
25558 hardcode_into_libs=yes
25559 dynamic_linker='GNU ld.so'
25560 ;;
25561
John Criswell47fdd832003-07-14 16:52:07 +000025562netbsd*)
25563 version_type=sunos
25564 need_lib_prefix=no
25565 need_version=no
25566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25569 dynamic_linker='NetBSD (a.out) ld.so'
25570 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025572 soname_spec='${libname}${release}${shared_ext}$major'
25573 dynamic_linker='NetBSD ld.elf_so'
25574 fi
25575 shlibpath_var=LD_LIBRARY_PATH
25576 shlibpath_overrides_runpath=yes
25577 hardcode_into_libs=yes
25578 ;;
25579
25580newsos6)
25581 version_type=linux
25582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25583 shlibpath_var=LD_LIBRARY_PATH
25584 shlibpath_overrides_runpath=yes
25585 ;;
25586
Reid Spencer2706f8c2004-09-19 23:53:36 +000025587nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025588 version_type=linux
25589 need_lib_prefix=no
25590 need_version=no
25591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 shlibpath_var=LD_LIBRARY_PATH
25594 shlibpath_overrides_runpath=yes
25595 ;;
25596
25597openbsd*)
25598 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025599 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025600 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25602 case $host_os in
25603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25604 *) need_version=no ;;
25605 esac
John Criswell47fdd832003-07-14 16:52:07 +000025606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25608 shlibpath_var=LD_LIBRARY_PATH
25609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25610 case $host_os in
25611 openbsd2.[89] | openbsd2.[89].*)
25612 shlibpath_overrides_runpath=no
25613 ;;
25614 *)
25615 shlibpath_overrides_runpath=yes
25616 ;;
25617 esac
25618 else
25619 shlibpath_overrides_runpath=yes
25620 fi
25621 ;;
25622
25623os2*)
25624 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025625 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025626 need_lib_prefix=no
25627 library_names_spec='$libname${shared_ext} $libname.a'
25628 dynamic_linker='OS/2 ld.exe'
25629 shlibpath_var=LIBPATH
25630 ;;
25631
25632osf3* | osf4* | osf5*)
25633 version_type=osf
25634 need_lib_prefix=no
25635 need_version=no
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25638 shlibpath_var=LD_LIBRARY_PATH
25639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25641 ;;
25642
John Criswell47fdd832003-07-14 16:52:07 +000025643solaris*)
25644 version_type=linux
25645 need_lib_prefix=no
25646 need_version=no
25647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25648 soname_spec='${libname}${release}${shared_ext}$major'
25649 shlibpath_var=LD_LIBRARY_PATH
25650 shlibpath_overrides_runpath=yes
25651 hardcode_into_libs=yes
25652 # ldd complains unless libraries are executable
25653 postinstall_cmds='chmod +x $lib'
25654 ;;
25655
25656sunos4*)
25657 version_type=sunos
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25660 shlibpath_var=LD_LIBRARY_PATH
25661 shlibpath_overrides_runpath=yes
25662 if test "$with_gnu_ld" = yes; then
25663 need_lib_prefix=no
25664 fi
25665 need_version=yes
25666 ;;
25667
Reid Spencera773bd52006-08-04 18:18:08 +000025668sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025669 version_type=linux
25670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25671 soname_spec='${libname}${release}${shared_ext}$major'
25672 shlibpath_var=LD_LIBRARY_PATH
25673 case $host_vendor in
25674 sni)
25675 shlibpath_overrides_runpath=no
25676 need_lib_prefix=no
25677 export_dynamic_flag_spec='${wl}-Blargedynsym'
25678 runpath_var=LD_RUN_PATH
25679 ;;
25680 siemens)
25681 need_lib_prefix=no
25682 ;;
25683 motorola)
25684 need_lib_prefix=no
25685 need_version=no
25686 shlibpath_overrides_runpath=no
25687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25688 ;;
25689 esac
25690 ;;
25691
25692sysv4*MP*)
25693 if test -d /usr/nec ;then
25694 version_type=linux
25695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25696 soname_spec='$libname${shared_ext}.$major'
25697 shlibpath_var=LD_LIBRARY_PATH
25698 fi
25699 ;;
25700
Reid Spencera773bd52006-08-04 18:18:08 +000025701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25702 version_type=freebsd-elf
25703 need_lib_prefix=no
25704 need_version=no
25705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25706 soname_spec='${libname}${release}${shared_ext}$major'
25707 shlibpath_var=LD_LIBRARY_PATH
25708 hardcode_into_libs=yes
25709 if test "$with_gnu_ld" = yes; then
25710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25711 shlibpath_overrides_runpath=no
25712 else
25713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25714 shlibpath_overrides_runpath=yes
25715 case $host_os in
25716 sco3.2v5*)
25717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25718 ;;
25719 esac
25720 fi
25721 sys_lib_dlsearch_path_spec='/usr/lib'
25722 ;;
25723
John Criswell47fdd832003-07-14 16:52:07 +000025724uts4*)
25725 version_type=linux
25726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25727 soname_spec='${libname}${release}${shared_ext}$major'
25728 shlibpath_var=LD_LIBRARY_PATH
25729 ;;
25730
25731*)
25732 dynamic_linker=no
25733 ;;
25734esac
Reid Spencera773bd52006-08-04 18:18:08 +000025735{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25736echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025737test "$dynamic_linker" = no && can_build_shared=no
25738
Reid Spencera773bd52006-08-04 18:18:08 +000025739variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25740if test "$GCC" = yes; then
25741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25742fi
25743
25744{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25745echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025746hardcode_action_GCJ=
25747if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25748 test -n "$runpath_var_GCJ" || \
25749 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25750
25751 # We can hardcode non-existant directories.
25752 if test "$hardcode_direct_GCJ" != no &&
25753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25754 # have to relink, otherwise we might link with an installed library
25755 # when we should be linking with a yet-to-be-installed one
25756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25757 test "$hardcode_minus_L_GCJ" != no; then
25758 # Linking always hardcodes the temporary library directory.
25759 hardcode_action_GCJ=relink
25760 else
25761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25762 hardcode_action_GCJ=immediate
25763 fi
25764else
25765 # We cannot hardcode anything, or else we can only hardcode existing
25766 # directories.
25767 hardcode_action_GCJ=unsupported
25768fi
Reid Spencera773bd52006-08-04 18:18:08 +000025769{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25770echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025771
25772if test "$hardcode_action_GCJ" = relink; then
25773 # Fast installation is not supported
25774 enable_fast_install=no
25775elif test "$shlibpath_overrides_runpath" = yes ||
25776 test "$enable_shared" = no; then
25777 # Fast installation is not necessary
25778 enable_fast_install=needless
25779fi
25780
John Criswell47fdd832003-07-14 16:52:07 +000025781
25782# The else clause should only fire when bootstrapping the
25783# libtool distribution, otherwise you forgot to ship ltmain.sh
25784# with your package, and you will get complaints that there are
25785# no rules to generate ltmain.sh.
25786if test -f "$ltmain"; then
25787 # See if we are running on zsh, and set the options which allow our commands through
25788 # without removal of \ escapes.
25789 if test -n "${ZSH_VERSION+set}" ; then
25790 setopt NO_GLOB_SUBST
25791 fi
25792 # Now quote all the things that may contain metacharacters while being
25793 # careful not to overquote the AC_SUBSTed values. We take copies of the
25794 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025795 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 +000025796 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025797 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25798 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25799 deplibs_check_method reload_flag reload_cmds need_locks \
25800 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25801 lt_cv_sys_global_symbol_to_c_name_address \
25802 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25803 old_postinstall_cmds old_postuninstall_cmds \
25804 compiler_GCJ \
25805 CC_GCJ \
25806 LD_GCJ \
25807 lt_prog_compiler_wl_GCJ \
25808 lt_prog_compiler_pic_GCJ \
25809 lt_prog_compiler_static_GCJ \
25810 lt_prog_compiler_no_builtin_flag_GCJ \
25811 export_dynamic_flag_spec_GCJ \
25812 thread_safe_flag_spec_GCJ \
25813 whole_archive_flag_spec_GCJ \
25814 enable_shared_with_static_runtimes_GCJ \
25815 old_archive_cmds_GCJ \
25816 old_archive_from_new_cmds_GCJ \
25817 predep_objects_GCJ \
25818 postdep_objects_GCJ \
25819 predeps_GCJ \
25820 postdeps_GCJ \
25821 compiler_lib_search_path_GCJ \
25822 archive_cmds_GCJ \
25823 archive_expsym_cmds_GCJ \
25824 postinstall_cmds_GCJ \
25825 postuninstall_cmds_GCJ \
25826 old_archive_from_expsyms_cmds_GCJ \
25827 allow_undefined_flag_GCJ \
25828 no_undefined_flag_GCJ \
25829 export_symbols_cmds_GCJ \
25830 hardcode_libdir_flag_spec_GCJ \
25831 hardcode_libdir_flag_spec_ld_GCJ \
25832 hardcode_libdir_separator_GCJ \
25833 hardcode_automatic_GCJ \
25834 module_cmds_GCJ \
25835 module_expsym_cmds_GCJ \
25836 lt_cv_prog_compiler_c_o_GCJ \
25837 exclude_expsyms_GCJ \
25838 include_expsyms_GCJ; do
25839
25840 case $var in
25841 old_archive_cmds_GCJ | \
25842 old_archive_from_new_cmds_GCJ | \
25843 archive_cmds_GCJ | \
25844 archive_expsym_cmds_GCJ | \
25845 module_cmds_GCJ | \
25846 module_expsym_cmds_GCJ | \
25847 old_archive_from_expsyms_cmds_GCJ | \
25848 export_symbols_cmds_GCJ | \
25849 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25850 postinstall_cmds | postuninstall_cmds | \
25851 old_postinstall_cmds | old_postuninstall_cmds | \
25852 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25853 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025854 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 +000025855 ;;
25856 *)
25857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25858 ;;
25859 esac
25860 done
25861
25862 case $lt_echo in
25863 *'\$0 --fallback-echo"')
25864 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25865 ;;
25866 esac
25867
25868cfgfile="$ofile"
25869
25870 cat <<__EOF__ >> "$cfgfile"
25871# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25872
25873# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25874
25875# Shell to use when invoking shell scripts.
25876SHELL=$lt_SHELL
25877
25878# Whether or not to build shared libraries.
25879build_libtool_libs=$enable_shared
25880
25881# Whether or not to build static libraries.
25882build_old_libs=$enable_static
25883
25884# Whether or not to add -lc for building shared libraries.
25885build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25886
25887# Whether or not to disallow shared libs when runtime libs are static
25888allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25889
25890# Whether or not to optimize for fast installation.
25891fast_install=$enable_fast_install
25892
25893# The host system.
25894host_alias=$host_alias
25895host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025896host_os=$host_os
25897
25898# The build system.
25899build_alias=$build_alias
25900build=$build
25901build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025902
25903# An echo program that does not interpret backslashes.
25904echo=$lt_echo
25905
25906# The archiver.
25907AR=$lt_AR
25908AR_FLAGS=$lt_AR_FLAGS
25909
25910# A C compiler.
25911LTCC=$lt_LTCC
25912
Reid Spencera773bd52006-08-04 18:18:08 +000025913# LTCC compiler flags.
25914LTCFLAGS=$lt_LTCFLAGS
25915
John Criswell47fdd832003-07-14 16:52:07 +000025916# A language-specific compiler.
25917CC=$lt_compiler_GCJ
25918
25919# Is the compiler the GNU C compiler?
25920with_gcc=$GCC_GCJ
25921
25922# An ERE matcher.
25923EGREP=$lt_EGREP
25924
25925# The linker used to build libraries.
25926LD=$lt_LD_GCJ
25927
25928# Whether we need hard or soft links.
25929LN_S=$lt_LN_S
25930
25931# A BSD-compatible nm program.
25932NM=$lt_NM
25933
25934# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025935STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025936
25937# Used to examine libraries when file_magic_cmd begins "file"
25938MAGIC_CMD=$MAGIC_CMD
25939
25940# Used on cygwin: DLL creation program.
25941DLLTOOL="$DLLTOOL"
25942
25943# Used on cygwin: object dumper.
25944OBJDUMP="$OBJDUMP"
25945
25946# Used on cygwin: assembler.
25947AS="$AS"
25948
25949# The name of the directory that contains temporary libtool files.
25950objdir=$objdir
25951
25952# How to create reloadable object files.
25953reload_flag=$lt_reload_flag
25954reload_cmds=$lt_reload_cmds
25955
25956# How to pass a linker flag through the compiler.
25957wl=$lt_lt_prog_compiler_wl_GCJ
25958
25959# Object file suffix (normally "o").
25960objext="$ac_objext"
25961
25962# Old archive suffix (normally "a").
25963libext="$libext"
25964
25965# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025966shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025967
25968# Executable file suffix (normally "").
25969exeext="$exeext"
25970
25971# Additional compiler flags for building library objects.
25972pic_flag=$lt_lt_prog_compiler_pic_GCJ
25973pic_mode=$pic_mode
25974
25975# What is the maximum length of a command?
25976max_cmd_len=$lt_cv_sys_max_cmd_len
25977
25978# Does compiler simultaneously support -c and -o options?
25979compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25980
Reid Spencera773bd52006-08-04 18:18:08 +000025981# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025982need_locks=$lt_need_locks
25983
25984# Do we need the lib prefix for modules?
25985need_lib_prefix=$need_lib_prefix
25986
25987# Do we need a version for libraries?
25988need_version=$need_version
25989
25990# Whether dlopen is supported.
25991dlopen_support=$enable_dlopen
25992
25993# Whether dlopen of programs is supported.
25994dlopen_self=$enable_dlopen_self
25995
25996# Whether dlopen of statically linked programs is supported.
25997dlopen_self_static=$enable_dlopen_self_static
25998
25999# Compiler flag to prevent dynamic linking.
26000link_static_flag=$lt_lt_prog_compiler_static_GCJ
26001
26002# Compiler flag to turn off builtin functions.
26003no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26004
26005# Compiler flag to allow reflexive dlopens.
26006export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26007
26008# Compiler flag to generate shared objects directly from archives.
26009whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26010
26011# Compiler flag to generate thread-safe objects.
26012thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26013
26014# Library versioning type.
26015version_type=$version_type
26016
26017# Format of library name prefix.
26018libname_spec=$lt_libname_spec
26019
26020# List of archive names. First name is the real one, the rest are links.
26021# The last name is the one that the linker finds with -lNAME.
26022library_names_spec=$lt_library_names_spec
26023
26024# The coded name of the library, if different from the real name.
26025soname_spec=$lt_soname_spec
26026
26027# Commands used to build and install an old-style archive.
26028RANLIB=$lt_RANLIB
26029old_archive_cmds=$lt_old_archive_cmds_GCJ
26030old_postinstall_cmds=$lt_old_postinstall_cmds
26031old_postuninstall_cmds=$lt_old_postuninstall_cmds
26032
26033# Create an old-style archive from a shared archive.
26034old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26035
26036# Create a temporary old-style archive to link instead of a shared archive.
26037old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26038
26039# Commands used to build and install a shared archive.
26040archive_cmds=$lt_archive_cmds_GCJ
26041archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26042postinstall_cmds=$lt_postinstall_cmds
26043postuninstall_cmds=$lt_postuninstall_cmds
26044
26045# Commands used to build a loadable module (assumed same as above if empty)
26046module_cmds=$lt_module_cmds_GCJ
26047module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26048
26049# Commands to strip libraries.
26050old_striplib=$lt_old_striplib
26051striplib=$lt_striplib
26052
26053# Dependencies to place before the objects being linked to create a
26054# shared library.
26055predep_objects=$lt_predep_objects_GCJ
26056
26057# Dependencies to place after the objects being linked to create a
26058# shared library.
26059postdep_objects=$lt_postdep_objects_GCJ
26060
26061# Dependencies to place before the objects being linked to create a
26062# shared library.
26063predeps=$lt_predeps_GCJ
26064
26065# Dependencies to place after the objects being linked to create a
26066# shared library.
26067postdeps=$lt_postdeps_GCJ
26068
26069# The library search path used internally by the compiler when linking
26070# a shared library.
26071compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26072
26073# Method to check whether dependent libraries are shared objects.
26074deplibs_check_method=$lt_deplibs_check_method
26075
26076# Command to use when deplibs_check_method == file_magic.
26077file_magic_cmd=$lt_file_magic_cmd
26078
26079# Flag that allows shared libraries with undefined symbols to be built.
26080allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26081
26082# Flag that forces no undefined symbols.
26083no_undefined_flag=$lt_no_undefined_flag_GCJ
26084
26085# Commands used to finish a libtool library installation in a directory.
26086finish_cmds=$lt_finish_cmds
26087
26088# Same as above, but a single script fragment to be evaled but not shown.
26089finish_eval=$lt_finish_eval
26090
26091# Take the output of nm and produce a listing of raw symbols and C names.
26092global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26093
26094# Transform the output of nm in a proper C declaration
26095global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26096
26097# Transform the output of nm in a C name address pair
26098global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26099
26100# This is the shared library runtime path variable.
26101runpath_var=$runpath_var
26102
26103# This is the shared library path variable.
26104shlibpath_var=$shlibpath_var
26105
26106# Is shlibpath searched before the hard-coded library search path?
26107shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26108
26109# How to hardcode a shared library path into an executable.
26110hardcode_action=$hardcode_action_GCJ
26111
26112# Whether we should hardcode library paths into libraries.
26113hardcode_into_libs=$hardcode_into_libs
26114
26115# Flag to hardcode \$libdir into a binary during linking.
26116# This must work even if \$libdir does not exist.
26117hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26118
26119# If ld is used when linking, flag to hardcode \$libdir into
26120# a binary during linking. This must work even if \$libdir does
26121# not exist.
26122hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26123
26124# Whether we need a single -rpath flag with a separated argument.
26125hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26126
26127# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26128# resulting binary.
26129hardcode_direct=$hardcode_direct_GCJ
26130
26131# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26132# resulting binary.
26133hardcode_minus_L=$hardcode_minus_L_GCJ
26134
26135# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26136# the resulting binary.
26137hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26138
26139# Set to yes if building a shared library automatically hardcodes DIR into the library
26140# and all subsequent libraries and executables linked against it.
26141hardcode_automatic=$hardcode_automatic_GCJ
26142
26143# Variables whose values should be saved in libtool wrapper scripts and
26144# restored at relink time.
26145variables_saved_for_relink="$variables_saved_for_relink"
26146
26147# Whether libtool must link a program against all its dependency libraries.
26148link_all_deplibs=$link_all_deplibs_GCJ
26149
26150# Compile-time system search path for libraries
26151sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26152
26153# Run-time system search path for libraries
26154sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26155
26156# Fix the shell variable \$srcfile for the compiler.
26157fix_srcfile_path="$fix_srcfile_path_GCJ"
26158
26159# Set to yes if exported symbols are required.
26160always_export_symbols=$always_export_symbols_GCJ
26161
26162# The commands to list exported symbols.
26163export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26164
26165# The commands to extract the exported symbol list from a shared archive.
26166extract_expsyms_cmds=$lt_extract_expsyms_cmds
26167
26168# Symbols that should not be listed in the preloaded symbols.
26169exclude_expsyms=$lt_exclude_expsyms_GCJ
26170
26171# Symbols that must always be exported.
26172include_expsyms=$lt_include_expsyms_GCJ
26173
26174# ### END LIBTOOL TAG CONFIG: $tagname
26175
26176__EOF__
26177
26178
26179else
26180 # If there is no Makefile yet, we rely on a make rule to execute
26181 # `config.status --recheck' to rerun these tests and create the
26182 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026183 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26184 if test -f "$ltmain_in"; then
26185 test -f Makefile && make "$ltmain"
26186 fi
John Criswell47fdd832003-07-14 16:52:07 +000026187fi
26188
26189
26190ac_ext=c
26191ac_cpp='$CPP $CPPFLAGS'
26192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26194ac_compiler_gnu=$ac_cv_c_compiler_gnu
26195
26196CC="$lt_save_CC"
26197
26198 else
26199 tagname=""
26200 fi
26201 ;;
26202
26203 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026204 ac_ext=c
26205ac_cpp='$CPP $CPPFLAGS'
26206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26208ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026209
26210
26211# Source file extension for RC test sources.
26212ac_ext=rc
26213
26214# Object file extension for compiled RC test sources.
26215objext=o
26216objext_RC=$objext
26217
26218# Code to be used in simple compile tests
26219lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26220
26221# Code to be used in simple link tests
26222lt_simple_link_test_code="$lt_simple_compile_test_code"
26223
26224# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26225
26226# If no C compiler was specified, use CC.
26227LTCC=${LTCC-"$CC"}
26228
Reid Spencera773bd52006-08-04 18:18:08 +000026229# If no C compiler flags were specified, use CFLAGS.
26230LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26231
John Criswell47fdd832003-07-14 16:52:07 +000026232# Allow CC to be a program name with arguments.
26233compiler=$CC
26234
26235
Reid Spencera773bd52006-08-04 18:18:08 +000026236# save warnings/boilerplate of simple test code
26237ac_outfile=conftest.$ac_objext
26238printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26239eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26240_lt_compiler_boilerplate=`cat conftest.err`
26241$rm conftest*
26242
26243ac_outfile=conftest.$ac_objext
26244printf "$lt_simple_link_test_code" >conftest.$ac_ext
26245eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26246_lt_linker_boilerplate=`cat conftest.err`
26247$rm conftest*
26248
26249
John Criswell47fdd832003-07-14 16:52:07 +000026250# Allow CC to be a program name with arguments.
26251lt_save_CC="$CC"
26252CC=${RC-"windres"}
26253compiler=$CC
26254compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026255for cc_temp in $compiler""; do
26256 case $cc_temp in
26257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26259 \-*) ;;
26260 *) break;;
26261 esac
26262done
26263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26264
John Criswell47fdd832003-07-14 16:52:07 +000026265lt_cv_prog_compiler_c_o_RC=yes
26266
26267# The else clause should only fire when bootstrapping the
26268# libtool distribution, otherwise you forgot to ship ltmain.sh
26269# with your package, and you will get complaints that there are
26270# no rules to generate ltmain.sh.
26271if test -f "$ltmain"; then
26272 # See if we are running on zsh, and set the options which allow our commands through
26273 # without removal of \ escapes.
26274 if test -n "${ZSH_VERSION+set}" ; then
26275 setopt NO_GLOB_SUBST
26276 fi
26277 # Now quote all the things that may contain metacharacters while being
26278 # careful not to overquote the AC_SUBSTed values. We take copies of the
26279 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026280 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 +000026281 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26284 deplibs_check_method reload_flag reload_cmds need_locks \
26285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26286 lt_cv_sys_global_symbol_to_c_name_address \
26287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26288 old_postinstall_cmds old_postuninstall_cmds \
26289 compiler_RC \
26290 CC_RC \
26291 LD_RC \
26292 lt_prog_compiler_wl_RC \
26293 lt_prog_compiler_pic_RC \
26294 lt_prog_compiler_static_RC \
26295 lt_prog_compiler_no_builtin_flag_RC \
26296 export_dynamic_flag_spec_RC \
26297 thread_safe_flag_spec_RC \
26298 whole_archive_flag_spec_RC \
26299 enable_shared_with_static_runtimes_RC \
26300 old_archive_cmds_RC \
26301 old_archive_from_new_cmds_RC \
26302 predep_objects_RC \
26303 postdep_objects_RC \
26304 predeps_RC \
26305 postdeps_RC \
26306 compiler_lib_search_path_RC \
26307 archive_cmds_RC \
26308 archive_expsym_cmds_RC \
26309 postinstall_cmds_RC \
26310 postuninstall_cmds_RC \
26311 old_archive_from_expsyms_cmds_RC \
26312 allow_undefined_flag_RC \
26313 no_undefined_flag_RC \
26314 export_symbols_cmds_RC \
26315 hardcode_libdir_flag_spec_RC \
26316 hardcode_libdir_flag_spec_ld_RC \
26317 hardcode_libdir_separator_RC \
26318 hardcode_automatic_RC \
26319 module_cmds_RC \
26320 module_expsym_cmds_RC \
26321 lt_cv_prog_compiler_c_o_RC \
26322 exclude_expsyms_RC \
26323 include_expsyms_RC; do
26324
26325 case $var in
26326 old_archive_cmds_RC | \
26327 old_archive_from_new_cmds_RC | \
26328 archive_cmds_RC | \
26329 archive_expsym_cmds_RC | \
26330 module_cmds_RC | \
26331 module_expsym_cmds_RC | \
26332 old_archive_from_expsyms_cmds_RC | \
26333 export_symbols_cmds_RC | \
26334 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26335 postinstall_cmds | postuninstall_cmds | \
26336 old_postinstall_cmds | old_postuninstall_cmds | \
26337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26338 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026339 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 +000026340 ;;
26341 *)
26342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26343 ;;
26344 esac
26345 done
26346
26347 case $lt_echo in
26348 *'\$0 --fallback-echo"')
26349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26350 ;;
26351 esac
26352
26353cfgfile="$ofile"
26354
26355 cat <<__EOF__ >> "$cfgfile"
26356# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26357
26358# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26359
26360# Shell to use when invoking shell scripts.
26361SHELL=$lt_SHELL
26362
26363# Whether or not to build shared libraries.
26364build_libtool_libs=$enable_shared
26365
26366# Whether or not to build static libraries.
26367build_old_libs=$enable_static
26368
26369# Whether or not to add -lc for building shared libraries.
26370build_libtool_need_lc=$archive_cmds_need_lc_RC
26371
26372# Whether or not to disallow shared libs when runtime libs are static
26373allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26374
26375# Whether or not to optimize for fast installation.
26376fast_install=$enable_fast_install
26377
26378# The host system.
26379host_alias=$host_alias
26380host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026381host_os=$host_os
26382
26383# The build system.
26384build_alias=$build_alias
26385build=$build
26386build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026387
26388# An echo program that does not interpret backslashes.
26389echo=$lt_echo
26390
26391# The archiver.
26392AR=$lt_AR
26393AR_FLAGS=$lt_AR_FLAGS
26394
26395# A C compiler.
26396LTCC=$lt_LTCC
26397
Reid Spencera773bd52006-08-04 18:18:08 +000026398# LTCC compiler flags.
26399LTCFLAGS=$lt_LTCFLAGS
26400
John Criswell47fdd832003-07-14 16:52:07 +000026401# A language-specific compiler.
26402CC=$lt_compiler_RC
26403
26404# Is the compiler the GNU C compiler?
26405with_gcc=$GCC_RC
26406
26407# An ERE matcher.
26408EGREP=$lt_EGREP
26409
26410# The linker used to build libraries.
26411LD=$lt_LD_RC
26412
26413# Whether we need hard or soft links.
26414LN_S=$lt_LN_S
26415
26416# A BSD-compatible nm program.
26417NM=$lt_NM
26418
26419# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026420STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026421
26422# Used to examine libraries when file_magic_cmd begins "file"
26423MAGIC_CMD=$MAGIC_CMD
26424
26425# Used on cygwin: DLL creation program.
26426DLLTOOL="$DLLTOOL"
26427
26428# Used on cygwin: object dumper.
26429OBJDUMP="$OBJDUMP"
26430
26431# Used on cygwin: assembler.
26432AS="$AS"
26433
26434# The name of the directory that contains temporary libtool files.
26435objdir=$objdir
26436
26437# How to create reloadable object files.
26438reload_flag=$lt_reload_flag
26439reload_cmds=$lt_reload_cmds
26440
26441# How to pass a linker flag through the compiler.
26442wl=$lt_lt_prog_compiler_wl_RC
26443
26444# Object file suffix (normally "o").
26445objext="$ac_objext"
26446
26447# Old archive suffix (normally "a").
26448libext="$libext"
26449
26450# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026451shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026452
26453# Executable file suffix (normally "").
26454exeext="$exeext"
26455
26456# Additional compiler flags for building library objects.
26457pic_flag=$lt_lt_prog_compiler_pic_RC
26458pic_mode=$pic_mode
26459
26460# What is the maximum length of a command?
26461max_cmd_len=$lt_cv_sys_max_cmd_len
26462
26463# Does compiler simultaneously support -c and -o options?
26464compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26465
Reid Spencera773bd52006-08-04 18:18:08 +000026466# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026467need_locks=$lt_need_locks
26468
26469# Do we need the lib prefix for modules?
26470need_lib_prefix=$need_lib_prefix
26471
26472# Do we need a version for libraries?
26473need_version=$need_version
26474
26475# Whether dlopen is supported.
26476dlopen_support=$enable_dlopen
26477
26478# Whether dlopen of programs is supported.
26479dlopen_self=$enable_dlopen_self
26480
26481# Whether dlopen of statically linked programs is supported.
26482dlopen_self_static=$enable_dlopen_self_static
26483
26484# Compiler flag to prevent dynamic linking.
26485link_static_flag=$lt_lt_prog_compiler_static_RC
26486
26487# Compiler flag to turn off builtin functions.
26488no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26489
26490# Compiler flag to allow reflexive dlopens.
26491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26492
26493# Compiler flag to generate shared objects directly from archives.
26494whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26495
26496# Compiler flag to generate thread-safe objects.
26497thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26498
26499# Library versioning type.
26500version_type=$version_type
26501
26502# Format of library name prefix.
26503libname_spec=$lt_libname_spec
26504
26505# List of archive names. First name is the real one, the rest are links.
26506# The last name is the one that the linker finds with -lNAME.
26507library_names_spec=$lt_library_names_spec
26508
26509# The coded name of the library, if different from the real name.
26510soname_spec=$lt_soname_spec
26511
26512# Commands used to build and install an old-style archive.
26513RANLIB=$lt_RANLIB
26514old_archive_cmds=$lt_old_archive_cmds_RC
26515old_postinstall_cmds=$lt_old_postinstall_cmds
26516old_postuninstall_cmds=$lt_old_postuninstall_cmds
26517
26518# Create an old-style archive from a shared archive.
26519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26520
26521# Create a temporary old-style archive to link instead of a shared archive.
26522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26523
26524# Commands used to build and install a shared archive.
26525archive_cmds=$lt_archive_cmds_RC
26526archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26527postinstall_cmds=$lt_postinstall_cmds
26528postuninstall_cmds=$lt_postuninstall_cmds
26529
26530# Commands used to build a loadable module (assumed same as above if empty)
26531module_cmds=$lt_module_cmds_RC
26532module_expsym_cmds=$lt_module_expsym_cmds_RC
26533
26534# Commands to strip libraries.
26535old_striplib=$lt_old_striplib
26536striplib=$lt_striplib
26537
26538# Dependencies to place before the objects being linked to create a
26539# shared library.
26540predep_objects=$lt_predep_objects_RC
26541
26542# Dependencies to place after the objects being linked to create a
26543# shared library.
26544postdep_objects=$lt_postdep_objects_RC
26545
26546# Dependencies to place before the objects being linked to create a
26547# shared library.
26548predeps=$lt_predeps_RC
26549
26550# Dependencies to place after the objects being linked to create a
26551# shared library.
26552postdeps=$lt_postdeps_RC
26553
26554# The library search path used internally by the compiler when linking
26555# a shared library.
26556compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26557
26558# Method to check whether dependent libraries are shared objects.
26559deplibs_check_method=$lt_deplibs_check_method
26560
26561# Command to use when deplibs_check_method == file_magic.
26562file_magic_cmd=$lt_file_magic_cmd
26563
26564# Flag that allows shared libraries with undefined symbols to be built.
26565allow_undefined_flag=$lt_allow_undefined_flag_RC
26566
26567# Flag that forces no undefined symbols.
26568no_undefined_flag=$lt_no_undefined_flag_RC
26569
26570# Commands used to finish a libtool library installation in a directory.
26571finish_cmds=$lt_finish_cmds
26572
26573# Same as above, but a single script fragment to be evaled but not shown.
26574finish_eval=$lt_finish_eval
26575
26576# Take the output of nm and produce a listing of raw symbols and C names.
26577global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26578
26579# Transform the output of nm in a proper C declaration
26580global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26581
26582# Transform the output of nm in a C name address pair
26583global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26584
26585# This is the shared library runtime path variable.
26586runpath_var=$runpath_var
26587
26588# This is the shared library path variable.
26589shlibpath_var=$shlibpath_var
26590
26591# Is shlibpath searched before the hard-coded library search path?
26592shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26593
26594# How to hardcode a shared library path into an executable.
26595hardcode_action=$hardcode_action_RC
26596
26597# Whether we should hardcode library paths into libraries.
26598hardcode_into_libs=$hardcode_into_libs
26599
26600# Flag to hardcode \$libdir into a binary during linking.
26601# This must work even if \$libdir does not exist.
26602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26603
26604# If ld is used when linking, flag to hardcode \$libdir into
26605# a binary during linking. This must work even if \$libdir does
26606# not exist.
26607hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26608
26609# Whether we need a single -rpath flag with a separated argument.
26610hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26611
26612# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26613# resulting binary.
26614hardcode_direct=$hardcode_direct_RC
26615
26616# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26617# resulting binary.
26618hardcode_minus_L=$hardcode_minus_L_RC
26619
26620# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26621# the resulting binary.
26622hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26623
26624# Set to yes if building a shared library automatically hardcodes DIR into the library
26625# and all subsequent libraries and executables linked against it.
26626hardcode_automatic=$hardcode_automatic_RC
26627
26628# Variables whose values should be saved in libtool wrapper scripts and
26629# restored at relink time.
26630variables_saved_for_relink="$variables_saved_for_relink"
26631
26632# Whether libtool must link a program against all its dependency libraries.
26633link_all_deplibs=$link_all_deplibs_RC
26634
26635# Compile-time system search path for libraries
26636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26637
26638# Run-time system search path for libraries
26639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26640
26641# Fix the shell variable \$srcfile for the compiler.
26642fix_srcfile_path="$fix_srcfile_path_RC"
26643
26644# Set to yes if exported symbols are required.
26645always_export_symbols=$always_export_symbols_RC
26646
26647# The commands to list exported symbols.
26648export_symbols_cmds=$lt_export_symbols_cmds_RC
26649
26650# The commands to extract the exported symbol list from a shared archive.
26651extract_expsyms_cmds=$lt_extract_expsyms_cmds
26652
26653# Symbols that should not be listed in the preloaded symbols.
26654exclude_expsyms=$lt_exclude_expsyms_RC
26655
26656# Symbols that must always be exported.
26657include_expsyms=$lt_include_expsyms_RC
26658
26659# ### END LIBTOOL TAG CONFIG: $tagname
26660
26661__EOF__
26662
26663
26664else
26665 # If there is no Makefile yet, we rely on a make rule to execute
26666 # `config.status --recheck' to rerun these tests and create the
26667 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26669 if test -f "$ltmain_in"; then
26670 test -f Makefile && make "$ltmain"
26671 fi
John Criswell47fdd832003-07-14 16:52:07 +000026672fi
26673
26674
26675ac_ext=c
26676ac_cpp='$CPP $CPPFLAGS'
26677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26679ac_compiler_gnu=$ac_cv_c_compiler_gnu
26680
26681CC="$lt_save_CC"
26682
26683 ;;
26684
26685 *)
26686 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26687echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26688 { (exit 1); exit 1; }; }
26689 ;;
26690 esac
26691
26692 # Append the new tag name to the list of available tags.
26693 if test -n "$tagname" ; then
26694 available_tags="$available_tags $tagname"
26695 fi
26696 fi
26697 done
26698 IFS="$lt_save_ifs"
26699
26700 # Now substitute the updated list of available tags.
26701 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26702 mv "${ofile}T" "$ofile"
26703 chmod +x "$ofile"
26704 else
26705 rm -f "${ofile}T"
26706 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26707echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26708 { (exit 1); exit 1; }; }
26709 fi
26710fi
John Criswell7a73b802003-06-30 21:59:07 +000026711
26712
26713
26714# This can be used to rebuild libtool when needed
26715LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26716
26717# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026718LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026719
26720# Prevent multiple expansion
26721
26722
26723
John Criswell47fdd832003-07-14 16:52:07 +000026724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026741
Reid Spencer582a23c2004-12-29 07:07:57 +000026742if test "$lt_cv_dlopen_self" = "yes" ; then
26743
26744cat >>confdefs.h <<\_ACEOF
26745#define CAN_DLOPEN_SELF 1
26746_ACEOF
26747
26748fi
26749
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026750etags_version=`$ETAGS --version 2>&1`
26751case "$etags_version" in
26752 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26753 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26754 *) ETAGSFLAGS="" ;;
26755esac
26756ETAGSFLAGS=$ETAGSFLAGS
26757
26758
Reid Spencer7931a782004-12-27 06:15:02 +000026759if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026760 LLVMGCC="llvm-gcc${EXEEXT}"
26761 LLVMGXX="llvm-g++${EXEEXT}"
26762 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26763set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026766if test "${ac_cv_path_LLVMGCC+set}" = set; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26768else
26769 case $LLVMGCC in
26770 [\\/]* | ?:[\\/]*)
26771 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26772 ;;
26773 *)
26774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26775for as_dir in $PATH
26776do
26777 IFS=$as_save_IFS
26778 test -z "$as_dir" && as_dir=.
26779 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026780 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 +000026781 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26783 break 2
26784 fi
26785done
26786done
Reid Spencera773bd52006-08-04 18:18:08 +000026787IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026788
Reid Spencer59473af2004-12-25 07:31:29 +000026789 ;;
26790esac
26791fi
26792LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026793if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026794 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26795echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026796else
Reid Spencera773bd52006-08-04 18:18:08 +000026797 { echo "$as_me:$LINENO: result: no" >&5
26798echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026799fi
26800
Reid Spencera773bd52006-08-04 18:18:08 +000026801
Reid Spencerc84492c2005-06-02 22:34:49 +000026802 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26803set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026806if test "${ac_cv_path_LLVMGXX+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26808else
26809 case $LLVMGXX in
26810 [\\/]* | ?:[\\/]*)
26811 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26812 ;;
26813 *)
26814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26815for as_dir in $PATH
26816do
26817 IFS=$as_save_IFS
26818 test -z "$as_dir" && as_dir=.
26819 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026820 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 +000026821 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26823 break 2
26824 fi
26825done
26826done
Reid Spencera773bd52006-08-04 18:18:08 +000026827IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026828
Reid Spencer59473af2004-12-25 07:31:29 +000026829 ;;
26830esac
26831fi
26832LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026833if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026834 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26835echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026836else
Reid Spencera773bd52006-08-04 18:18:08 +000026837 { echo "$as_me:$LINENO: result: no" >&5
26838echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026839fi
26840
Reid Spencera773bd52006-08-04 18:18:08 +000026841
Reid Spencer59473af2004-12-25 07:31:29 +000026842else
Reid Spencerc84492c2005-06-02 22:34:49 +000026843 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26844 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026845 LLVMGCC=$LLVMGCC
26846
26847 LLVMGXX=$LLVMGXX
26848
26849fi
26850
Reid Spencera773bd52006-08-04 18:18:08 +000026851{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26852echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026853
Reid Spencer86901802004-12-08 23:07:27 +000026854ICC=no
26855IXX=no
26856case $CC in
26857 icc*|icpc*)
26858 ICC=yes
26859 IXX=yes
26860 ;;
26861 *)
26862 ;;
26863esac
26864
Duraid Madina937c60a2006-02-15 07:57:42 +000026865if test "$GCC" != "yes" && test "$ICC" != "yes"
26866then
26867 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26868echo "$as_me: error: gcc|icc required but not found" >&2;}
26869 { (exit 1); exit 1; }; }
26870fi
26871
26872if test "$GXX" != "yes" && test "$IXX" != "yes"
26873then
26874 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26875echo "$as_me: error: g++|icc required but not found" >&2;}
26876 { (exit 1); exit 1; }; }
26877fi
26878
Reid Spencer86901802004-12-08 23:07:27 +000026879if test "$GCC" = "yes"
26880then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026881 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026882 if test "$gccmajor" -lt "3"
26883 then
26884 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026885echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26886 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026887 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026888fi
26889
26890if test -z "$llvm_cv_gnu_make_command"
26891then
26892 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26893echo "$as_me: error: GNU Make required but not found" >&2;}
26894 { (exit 1); exit 1; }; }
26895fi
26896
Reid Spencera773bd52006-08-04 18:18:08 +000026897{ echo "$as_me:$LINENO: result: ok" >&5
26898echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026900
John Criswell7a73b802003-06-30 21:59:07 +000026901
Reid Spencera773bd52006-08-04 18:18:08 +000026902{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26903echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026904if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26906else
26907 ac_check_lib_save_LIBS=$LIBS
26908LIBS="-lelf $LIBS"
26909cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026910/* confdefs.h. */
26911_ACEOF
26912cat confdefs.h >>conftest.$ac_ext
26913cat >>conftest.$ac_ext <<_ACEOF
26914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026915
Reid Spencera773bd52006-08-04 18:18:08 +000026916/* Override any GCC internal prototype to avoid an error.
26917 Use char because int might match the return type of a GCC
26918 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026919#ifdef __cplusplus
26920extern "C"
26921#endif
John Criswell7a73b802003-06-30 21:59:07 +000026922char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026923int
26924main ()
26925{
Reid Spencera773bd52006-08-04 18:18:08 +000026926return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026927 ;
26928 return 0;
26929}
26930_ACEOF
26931rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026932if { (ac_try="$ac_link"
26933case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26936esac
26937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026940 grep -v '^ *+' conftest.er1 >conftest.err
26941 rm -f conftest.er1
26942 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26946 { (case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26949esac
26950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; } &&
26955 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026956 { (case "(($ac_try" in
26957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26958 *) ac_try_echo=$ac_try;;
26959esac
26960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26961 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026962 ac_status=$?
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; }; then
26965 ac_cv_lib_elf_elf_begin=yes
26966else
26967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026968sed 's/^/| /' conftest.$ac_ext >&5
26969
Reid Spencera773bd52006-08-04 18:18:08 +000026970 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026971fi
Reid Spencera773bd52006-08-04 18:18:08 +000026972
26973rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026974 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026975LIBS=$ac_check_lib_save_LIBS
26976fi
Reid Spencera773bd52006-08-04 18:18:08 +000026977{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26978echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026979if test $ac_cv_lib_elf_elf_begin = yes; then
26980 cat >>confdefs.h <<_ACEOF
26981#define HAVE_LIBELF 1
26982_ACEOF
26983
26984 LIBS="-lelf $LIBS"
26985
26986fi
26987
26988
Reid Spencera773bd52006-08-04 18:18:08 +000026989{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26990echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026991if test "${ac_cv_lib_m_sin+set}" = set; then
26992 echo $ECHO_N "(cached) $ECHO_C" >&6
26993else
26994 ac_check_lib_save_LIBS=$LIBS
26995LIBS="-lm $LIBS"
26996cat >conftest.$ac_ext <<_ACEOF
26997/* confdefs.h. */
26998_ACEOF
26999cat confdefs.h >>conftest.$ac_ext
27000cat >>conftest.$ac_ext <<_ACEOF
27001/* end confdefs.h. */
27002
Reid Spencera773bd52006-08-04 18:18:08 +000027003/* Override any GCC internal prototype to avoid an error.
27004 Use char because int might match the return type of a GCC
27005 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027006#ifdef __cplusplus
27007extern "C"
27008#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027009char sin ();
27010int
27011main ()
27012{
Reid Spencera773bd52006-08-04 18:18:08 +000027013return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027014 ;
27015 return 0;
27016}
27017_ACEOF
27018rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027019if { (ac_try="$ac_link"
27020case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27023esac
27024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027026 ac_status=$?
27027 grep -v '^ *+' conftest.er1 >conftest.err
27028 rm -f conftest.er1
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27036esac
27037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27046esac
27047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_lib_m_sin=yes
27053else
27054 echo "$as_me: failed program was:" >&5
27055sed 's/^/| /' conftest.$ac_ext >&5
27056
Reid Spencera773bd52006-08-04 18:18:08 +000027057 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027058fi
Reid Spencera773bd52006-08-04 18:18:08 +000027059
27060rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027061 conftest$ac_exeext conftest.$ac_ext
27062LIBS=$ac_check_lib_save_LIBS
27063fi
Reid Spencera773bd52006-08-04 18:18:08 +000027064{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27065echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027066if test $ac_cv_lib_m_sin = yes; then
27067 cat >>confdefs.h <<_ACEOF
27068#define HAVE_LIBM 1
27069_ACEOF
27070
27071 LIBS="-lm $LIBS"
27072
27073fi
27074
Jeff Cohen28783c32007-01-12 18:22:38 +000027075if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027076
Reid Spencera773bd52006-08-04 18:18:08 +000027077{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27078echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027079if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027080 echo $ECHO_N "(cached) $ECHO_C" >&6
27081else
27082 ac_check_lib_save_LIBS=$LIBS
27083LIBS="-limagehlp $LIBS"
27084cat >conftest.$ac_ext <<_ACEOF
27085/* confdefs.h. */
27086_ACEOF
27087cat confdefs.h >>conftest.$ac_ext
27088cat >>conftest.$ac_ext <<_ACEOF
27089/* end confdefs.h. */
27090
Reid Spencer48fdf912006-06-01 19:03:21 +000027091
Reid Spencer484fc8e2006-06-01 16:55:59 +000027092int
27093main ()
27094{
Reid Spencera773bd52006-08-04 18:18:08 +000027095return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027096 ;
27097 return 0;
27098}
27099_ACEOF
27100rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027101if { (ac_try="$ac_link"
27102case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27105esac
27106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027108 ac_status=$?
27109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27128esac
27129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027131 ac_status=$?
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027134 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027135else
27136 echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
Reid Spencera773bd52006-08-04 18:18:08 +000027139 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027140fi
Reid Spencera773bd52006-08-04 18:18:08 +000027141
27142rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027143 conftest$ac_exeext conftest.$ac_ext
27144LIBS=$ac_check_lib_save_LIBS
27145fi
Reid Spencera773bd52006-08-04 18:18:08 +000027146{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27147echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027148if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027149 cat >>confdefs.h <<_ACEOF
27150#define HAVE_LIBIMAGEHLP 1
27151_ACEOF
27152
27153 LIBS="-limagehlp $LIBS"
27154
27155fi
27156
27157
Reid Spencera773bd52006-08-04 18:18:08 +000027158{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27159echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027160if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027161 echo $ECHO_N "(cached) $ECHO_C" >&6
27162else
27163 ac_check_lib_save_LIBS=$LIBS
27164LIBS="-lpsapi $LIBS"
27165cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h. */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h. */
27171
Reid Spencer48fdf912006-06-01 19:03:21 +000027172
Reid Spencer484fc8e2006-06-01 16:55:59 +000027173int
27174main ()
27175{
Reid Spencera773bd52006-08-04 18:18:08 +000027176return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027177 ;
27178 return 0;
27179}
27180_ACEOF
27181rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027182if { (ac_try="$ac_link"
27183case "(($ac_try" in
27184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185 *) ac_try_echo=$ac_try;;
27186esac
27187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027189 ac_status=$?
27190 grep -v '^ *+' conftest.er1 >conftest.err
27191 rm -f conftest.er1
27192 cat conftest.err >&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27199esac
27200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; } &&
27205 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027206 { (case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27209esac
27210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027215 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027216else
27217 echo "$as_me: failed program was:" >&5
27218sed 's/^/| /' conftest.$ac_ext >&5
27219
Reid Spencera773bd52006-08-04 18:18:08 +000027220 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027221fi
Reid Spencera773bd52006-08-04 18:18:08 +000027222
27223rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027224 conftest$ac_exeext conftest.$ac_ext
27225LIBS=$ac_check_lib_save_LIBS
27226fi
Reid Spencera773bd52006-08-04 18:18:08 +000027227{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27228echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027229if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027230 cat >>confdefs.h <<_ACEOF
27231#define HAVE_LIBPSAPI 1
27232_ACEOF
27233
27234 LIBS="-lpsapi $LIBS"
27235
27236fi
27237
27238fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027239
Reid Spencera773bd52006-08-04 18:18:08 +000027240{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27241echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027242if test "${ac_cv_search_lt_dlopen+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27244else
27245 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027246cat >conftest.$ac_ext <<_ACEOF
27247/* confdefs.h. */
27248_ACEOF
27249cat confdefs.h >>conftest.$ac_ext
27250cat >>conftest.$ac_ext <<_ACEOF
27251/* end confdefs.h. */
27252
Reid Spencera773bd52006-08-04 18:18:08 +000027253/* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027256#ifdef __cplusplus
27257extern "C"
27258#endif
Reid Spencer17795972004-11-18 09:47:37 +000027259char lt_dlopen ();
27260int
27261main ()
27262{
Reid Spencera773bd52006-08-04 18:18:08 +000027263return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027264 ;
27265 return 0;
27266}
27267_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027268for ac_lib in '' ltdl; do
27269 if test -z "$ac_lib"; then
27270 ac_res="none required"
27271 else
27272 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027274 fi
27275 rm -f conftest.$ac_objext conftest$ac_exeext
27276if { (ac_try="$ac_link"
27277case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27280esac
27281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027283 ac_status=$?
27284 grep -v '^ *+' conftest.er1 >conftest.err
27285 rm -f conftest.er1
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27293esac
27294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027296 ac_status=$?
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027300 { (case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27303esac
27304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027309 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027310else
27311 echo "$as_me: failed program was:" >&5
27312sed 's/^/| /' conftest.$ac_ext >&5
27313
Reid Spencera773bd52006-08-04 18:18:08 +000027314
Reid Spencer17795972004-11-18 09:47:37 +000027315fi
Reid Spencera773bd52006-08-04 18:18:08 +000027316
27317rm -f core conftest.err conftest.$ac_objext \
27318 conftest$ac_exeext
27319 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27320 break
Reid Spencer17795972004-11-18 09:47:37 +000027321fi
Reid Spencera773bd52006-08-04 18:18:08 +000027322done
27323if test "${ac_cv_search_lt_dlopen+set}" = set; then
27324 :
27325else
27326 ac_cv_search_lt_dlopen=no
27327fi
27328rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027329LIBS=$ac_func_search_save_LIBS
27330fi
Reid Spencera773bd52006-08-04 18:18:08 +000027331{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27332echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27333ac_res=$ac_cv_search_lt_dlopen
27334if test "$ac_res" != no; then
27335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027336
27337cat >>confdefs.h <<\_ACEOF
27338#define HAVE_LT_DLOPEN 1
27339_ACEOF
27340
27341else
27342 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27343 not be available" >&5
27344echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27345 not be available" >&2;}
27346fi
27347
27348
Reid Spencera773bd52006-08-04 18:18:08 +000027349{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27350echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027351if test "${ac_cv_search_dlopen+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27353else
27354 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027355cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027356/* confdefs.h. */
27357_ACEOF
27358cat confdefs.h >>conftest.$ac_ext
27359cat >>conftest.$ac_ext <<_ACEOF
27360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027361
Reid Spencera773bd52006-08-04 18:18:08 +000027362/* Override any GCC internal prototype to avoid an error.
27363 Use char because int might match the return type of a GCC
27364 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027365#ifdef __cplusplus
27366extern "C"
27367#endif
John Criswell7a73b802003-06-30 21:59:07 +000027368char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027369int
27370main ()
27371{
Reid Spencera773bd52006-08-04 18:18:08 +000027372return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027373 ;
27374 return 0;
27375}
27376_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027377for ac_lib in '' dl; do
27378 if test -z "$ac_lib"; then
27379 ac_res="none required"
27380 else
27381 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027383 fi
27384 rm -f conftest.$ac_objext conftest$ac_exeext
27385if { (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
John Criswell7a73b802003-06-30 21:59:07 +000027392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027393 grep -v '^ *+' conftest.er1 >conftest.err
27394 rm -f conftest.er1
27395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027398 { 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
Reid Spencer2706f8c2004-09-19 23:53:36 +000027405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027409 { (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
John Criswell7a73b802003-06-30 21:59:07 +000027415 ac_status=$?
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027418 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027419else
27420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027421sed 's/^/| /' conftest.$ac_ext >&5
27422
Reid Spencera773bd52006-08-04 18:18:08 +000027423
John Criswell7a73b802003-06-30 21:59:07 +000027424fi
Reid Spencera773bd52006-08-04 18:18:08 +000027425
27426rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext
27428 if test "${ac_cv_search_dlopen+set}" = set; then
27429 break
John Criswell7a73b802003-06-30 21:59:07 +000027430fi
Reid Spencera773bd52006-08-04 18:18:08 +000027431done
27432if test "${ac_cv_search_dlopen+set}" = set; then
27433 :
27434else
27435 ac_cv_search_dlopen=no
27436fi
27437rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027438LIBS=$ac_func_search_save_LIBS
27439fi
Reid Spencera773bd52006-08-04 18:18:08 +000027440{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27441echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27442ac_res=$ac_cv_search_dlopen
27443if test "$ac_res" != no; then
27444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027445
27446cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027447#define HAVE_DLOPEN 1
27448_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027449
27450else
Brian Gaekec45be042003-10-07 06:01:34 +000027451 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27452echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027453fi
27454
27455
Reid Spencera773bd52006-08-04 18:18:08 +000027456{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27457echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027458if test "${ac_cv_search_mallinfo+set}" = set; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27460else
27461 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027462cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027463/* confdefs.h. */
27464_ACEOF
27465cat confdefs.h >>conftest.$ac_ext
27466cat >>conftest.$ac_ext <<_ACEOF
27467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027468
Reid Spencera773bd52006-08-04 18:18:08 +000027469/* Override any GCC internal prototype to avoid an error.
27470 Use char because int might match the return type of a GCC
27471 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027472#ifdef __cplusplus
27473extern "C"
27474#endif
John Criswell7a73b802003-06-30 21:59:07 +000027475char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027476int
27477main ()
27478{
Reid Spencera773bd52006-08-04 18:18:08 +000027479return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027480 ;
27481 return 0;
27482}
27483_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027484for ac_lib in '' malloc; do
27485 if test -z "$ac_lib"; then
27486 ac_res="none required"
27487 else
27488 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027490 fi
27491 rm -f conftest.$ac_objext conftest$ac_exeext
27492if { (ac_try="$ac_link"
27493case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27496esac
27497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027500 grep -v '^ *+' conftest.er1 >conftest.err
27501 rm -f conftest.er1
27502 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509esac
27510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027512 ac_status=$?
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; } &&
27515 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27519esac
27520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027525 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027526else
27527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027528sed 's/^/| /' conftest.$ac_ext >&5
27529
Reid Spencera773bd52006-08-04 18:18:08 +000027530
John Criswell7a73b802003-06-30 21:59:07 +000027531fi
Reid Spencera773bd52006-08-04 18:18:08 +000027532
27533rm -f core conftest.err conftest.$ac_objext \
27534 conftest$ac_exeext
27535 if test "${ac_cv_search_mallinfo+set}" = set; then
27536 break
John Criswell7a73b802003-06-30 21:59:07 +000027537fi
Reid Spencera773bd52006-08-04 18:18:08 +000027538done
27539if test "${ac_cv_search_mallinfo+set}" = set; then
27540 :
27541else
27542 ac_cv_search_mallinfo=no
27543fi
27544rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027545LIBS=$ac_func_search_save_LIBS
27546fi
Reid Spencera773bd52006-08-04 18:18:08 +000027547{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27548echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27549ac_res=$ac_cv_search_mallinfo
27550if test "$ac_res" != no; then
27551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027552
27553cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027554#define HAVE_MALLINFO 1
27555_ACEOF
27556
27557fi
27558
27559
Reid Spencer0a262ba2005-08-24 10:07:20 +000027560if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027561
Reid Spencera773bd52006-08-04 18:18:08 +000027562{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27563echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027564if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27565 echo $ECHO_N "(cached) $ECHO_C" >&6
27566else
27567 ac_check_lib_save_LIBS=$LIBS
27568LIBS="-lpthread $LIBS"
27569cat >conftest.$ac_ext <<_ACEOF
27570/* confdefs.h. */
27571_ACEOF
27572cat confdefs.h >>conftest.$ac_ext
27573cat >>conftest.$ac_ext <<_ACEOF
27574/* end confdefs.h. */
27575
Reid Spencera773bd52006-08-04 18:18:08 +000027576/* Override any GCC internal prototype to avoid an error.
27577 Use char because int might match the return type of a GCC
27578 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027579#ifdef __cplusplus
27580extern "C"
27581#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027582char pthread_mutex_init ();
27583int
27584main ()
27585{
Reid Spencera773bd52006-08-04 18:18:08 +000027586return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027587 ;
27588 return 0;
27589}
27590_ACEOF
27591rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027592if { (ac_try="$ac_link"
27593case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27596esac
27597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027599 ac_status=$?
27600 grep -v '^ *+' conftest.er1 >conftest.err
27601 rm -f conftest.er1
27602 cat conftest.err >&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609esac
27610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; } &&
27615 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027616 { (case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27619esac
27620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027622 ac_status=$?
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; }; then
27625 ac_cv_lib_pthread_pthread_mutex_init=yes
27626else
27627 echo "$as_me: failed program was:" >&5
27628sed 's/^/| /' conftest.$ac_ext >&5
27629
Reid Spencera773bd52006-08-04 18:18:08 +000027630 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027631fi
Reid Spencera773bd52006-08-04 18:18:08 +000027632
27633rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027634 conftest$ac_exeext conftest.$ac_ext
27635LIBS=$ac_check_lib_save_LIBS
27636fi
Reid Spencera773bd52006-08-04 18:18:08 +000027637{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27638echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027639if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27640 cat >>confdefs.h <<_ACEOF
27641#define HAVE_LIBPTHREAD 1
27642_ACEOF
27643
27644 LIBS="-lpthread $LIBS"
27645
27646fi
27647
Reid Spencera773bd52006-08-04 18:18:08 +000027648 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27649echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027650if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27652else
27653 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027654cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027655/* confdefs.h. */
27656_ACEOF
27657cat confdefs.h >>conftest.$ac_ext
27658cat >>conftest.$ac_ext <<_ACEOF
27659/* end confdefs.h. */
27660
Reid Spencera773bd52006-08-04 18:18:08 +000027661/* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027664#ifdef __cplusplus
27665extern "C"
27666#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027667char pthread_mutex_lock ();
27668int
27669main ()
27670{
Reid Spencera773bd52006-08-04 18:18:08 +000027671return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027672 ;
27673 return 0;
27674}
27675_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027676for ac_lib in '' pthread; do
27677 if test -z "$ac_lib"; then
27678 ac_res="none required"
27679 else
27680 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027682 fi
27683 rm -f conftest.$ac_objext conftest$ac_exeext
27684if { (ac_try="$ac_link"
27685case "(($ac_try" in
27686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27688esac
27689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027692 grep -v '^ *+' conftest.er1 >conftest.err
27693 rm -f conftest.er1
27694 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27701esac
27702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
27707 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027708 { (case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27711esac
27712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027714 ac_status=$?
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027717 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027718else
27719 echo "$as_me: failed program was:" >&5
27720sed 's/^/| /' conftest.$ac_ext >&5
27721
Reid Spencera773bd52006-08-04 18:18:08 +000027722
Brian Gaeke5f268f72003-12-05 19:29:01 +000027723fi
Reid Spencera773bd52006-08-04 18:18:08 +000027724
27725rm -f core conftest.err conftest.$ac_objext \
27726 conftest$ac_exeext
27727 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27728 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027729fi
Reid Spencera773bd52006-08-04 18:18:08 +000027730done
27731if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27732 :
27733else
27734 ac_cv_search_pthread_mutex_lock=no
27735fi
27736rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027737LIBS=$ac_func_search_save_LIBS
27738fi
Reid Spencera773bd52006-08-04 18:18:08 +000027739{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27740echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27741ac_res=$ac_cv_search_pthread_mutex_lock
27742if test "$ac_res" != no; then
27743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027744
John Criswell40468462004-09-24 21:19:06 +000027745cat >>confdefs.h <<\_ACEOF
27746#define HAVE_PTHREAD_MUTEX_LOCK 1
27747_ACEOF
27748
27749fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027750
Reid Spencer0a262ba2005-08-24 10:07:20 +000027751fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027752
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027753
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027754# Check whether --with-udis86 was given.
27755if test "${with_udis86+set}" = set; then
27756 withval=$with_udis86;
27757 USE_UDIS86=1
27758
27759 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027760 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027761 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27762 esac
27763
27764{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27765echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27766if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27768else
27769 ac_check_lib_save_LIBS=$LIBS
27770LIBS="-ludis86 $LIBS"
27771cat >conftest.$ac_ext <<_ACEOF
27772/* confdefs.h. */
27773_ACEOF
27774cat confdefs.h >>conftest.$ac_ext
27775cat >>conftest.$ac_ext <<_ACEOF
27776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char ud_init ();
27785int
27786main ()
27787{
27788return ud_init ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
27793rm -f conftest.$ac_objext conftest$ac_exeext
27794if { (ac_try="$ac_link"
27795case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27798esac
27799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_link") 2>conftest.er1
27801 ac_status=$?
27802 grep -v '^ *+' conftest.er1 >conftest.err
27803 rm -f conftest.er1
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27808 { (case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27811esac
27812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
27814 ac_status=$?
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; } &&
27817 { ac_try='test -s conftest$ac_exeext'
27818 { (case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27821esac
27822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_try") 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27827 ac_cv_lib_udis86_ud_init=yes
27828else
27829 echo "$as_me: failed program was:" >&5
27830sed 's/^/| /' conftest.$ac_ext >&5
27831
27832 ac_cv_lib_udis86_ud_init=no
27833fi
27834
27835rm -f core conftest.err conftest.$ac_objext \
27836 conftest$ac_exeext conftest.$ac_ext
27837LIBS=$ac_check_lib_save_LIBS
27838fi
27839{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27840echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27841if test $ac_cv_lib_udis86_ud_init = yes; then
27842 cat >>confdefs.h <<_ACEOF
27843#define HAVE_LIBUDIS86 1
27844_ACEOF
27845
27846 LIBS="-ludis86 $LIBS"
27847
27848else
27849
27850 echo "Error! You need to have libudis86 around."
27851 exit -1
27852
27853fi
27854
27855
27856else
27857 USE_UDIS86=0
27858
27859fi
27860
27861
27862cat >>confdefs.h <<_ACEOF
27863#define USE_UDIS86 $USE_UDIS86
27864_ACEOF
27865
27866
27867
Reid Spencer59473af2004-12-25 07:31:29 +000027868
27869
27870
27871
27872
27873ac_header_dirent=no
27874for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27875 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027876{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27877echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880else
27881 cat >conftest.$ac_ext <<_ACEOF
27882/* confdefs.h. */
27883_ACEOF
27884cat confdefs.h >>conftest.$ac_ext
27885cat >>conftest.$ac_ext <<_ACEOF
27886/* end confdefs.h. */
27887#include <sys/types.h>
27888#include <$ac_hdr>
27889
27890int
27891main ()
27892{
27893if ((DIR *) 0)
27894return 0;
27895 ;
27896 return 0;
27897}
27898_ACEOF
27899rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027900if { (ac_try="$ac_compile"
27901case "(($ac_try" in
27902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903 *) ac_try_echo=$ac_try;;
27904esac
27905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027907 ac_status=$?
27908 grep -v '^ *+' conftest.er1 >conftest.err
27909 rm -f conftest.er1
27910 cat conftest.err >&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27914 { (case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27917esac
27918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027924 { (case "(($ac_try" in
27925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926 *) ac_try_echo=$ac_try;;
27927esac
27928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027930 ac_status=$?
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; }; then
27933 eval "$as_ac_Header=yes"
27934else
27935 echo "$as_me: failed program was:" >&5
27936sed 's/^/| /' conftest.$ac_ext >&5
27937
Reid Spencera773bd52006-08-04 18:18:08 +000027938 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027939fi
Reid Spencera773bd52006-08-04 18:18:08 +000027940
27941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027942fi
Reid Spencera773bd52006-08-04 18:18:08 +000027943ac_res=`eval echo '${'$as_ac_Header'}'`
27944 { echo "$as_me:$LINENO: result: $ac_res" >&5
27945echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027946if test `eval echo '${'$as_ac_Header'}'` = yes; then
27947 cat >>confdefs.h <<_ACEOF
27948#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27949_ACEOF
27950
27951ac_header_dirent=$ac_hdr; break
27952fi
27953
27954done
27955# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27956if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27958echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027959if test "${ac_cv_search_opendir+set}" = set; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27961else
27962 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027963cat >conftest.$ac_ext <<_ACEOF
27964/* confdefs.h. */
27965_ACEOF
27966cat confdefs.h >>conftest.$ac_ext
27967cat >>conftest.$ac_ext <<_ACEOF
27968/* end confdefs.h. */
27969
Reid Spencera773bd52006-08-04 18:18:08 +000027970/* Override any GCC internal prototype to avoid an error.
27971 Use char because int might match the return type of a GCC
27972 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027973#ifdef __cplusplus
27974extern "C"
27975#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027976char opendir ();
27977int
27978main ()
27979{
Reid Spencera773bd52006-08-04 18:18:08 +000027980return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027981 ;
27982 return 0;
27983}
27984_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027985for ac_lib in '' dir; do
27986 if test -z "$ac_lib"; then
27987 ac_res="none required"
27988 else
27989 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027991 fi
27992 rm -f conftest.$ac_objext conftest$ac_exeext
27993if { (ac_try="$ac_link"
27994case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997esac
27998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028000 ac_status=$?
28001 grep -v '^ *+' conftest.er1 >conftest.err
28002 rm -f conftest.er1
28003 cat conftest.err >&5
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28007 { (case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28010esac
28011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; } &&
28016 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028017 { (case "(($ac_try" in
28018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019 *) ac_try_echo=$ac_try;;
28020esac
28021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028023 ac_status=$?
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028026 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028027else
28028 echo "$as_me: failed program was:" >&5
28029sed 's/^/| /' conftest.$ac_ext >&5
28030
Reid Spencera773bd52006-08-04 18:18:08 +000028031
Reid Spencer59473af2004-12-25 07:31:29 +000028032fi
Reid Spencera773bd52006-08-04 18:18:08 +000028033
28034rm -f core conftest.err conftest.$ac_objext \
28035 conftest$ac_exeext
28036 if test "${ac_cv_search_opendir+set}" = set; then
28037 break
Reid Spencer59473af2004-12-25 07:31:29 +000028038fi
Reid Spencera773bd52006-08-04 18:18:08 +000028039done
28040if test "${ac_cv_search_opendir+set}" = set; then
28041 :
28042else
28043 ac_cv_search_opendir=no
28044fi
28045rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028046LIBS=$ac_func_search_save_LIBS
28047fi
Reid Spencera773bd52006-08-04 18:18:08 +000028048{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28049echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28050ac_res=$ac_cv_search_opendir
28051if test "$ac_res" != no; then
28052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028053
28054fi
28055
28056else
Reid Spencera773bd52006-08-04 18:18:08 +000028057 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28058echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028059if test "${ac_cv_search_opendir+set}" = set; then
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28061else
28062 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028063cat >conftest.$ac_ext <<_ACEOF
28064/* confdefs.h. */
28065_ACEOF
28066cat confdefs.h >>conftest.$ac_ext
28067cat >>conftest.$ac_ext <<_ACEOF
28068/* end confdefs.h. */
28069
Reid Spencera773bd52006-08-04 18:18:08 +000028070/* Override any GCC internal prototype to avoid an error.
28071 Use char because int might match the return type of a GCC
28072 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028073#ifdef __cplusplus
28074extern "C"
28075#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028076char opendir ();
28077int
28078main ()
28079{
Reid Spencera773bd52006-08-04 18:18:08 +000028080return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028081 ;
28082 return 0;
28083}
28084_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028085for ac_lib in '' x; do
28086 if test -z "$ac_lib"; then
28087 ac_res="none required"
28088 else
28089 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028091 fi
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093if { (ac_try="$ac_link"
28094case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28097esac
28098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028100 ac_status=$?
28101 grep -v '^ *+' conftest.er1 >conftest.err
28102 rm -f conftest.er1
28103 cat conftest.err >&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28107 { (case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28110esac
28111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028117 { (case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28120esac
28121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028126 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028127else
28128 echo "$as_me: failed program was:" >&5
28129sed 's/^/| /' conftest.$ac_ext >&5
28130
Reid Spencera773bd52006-08-04 18:18:08 +000028131
Reid Spencer59473af2004-12-25 07:31:29 +000028132fi
Reid Spencera773bd52006-08-04 18:18:08 +000028133
28134rm -f core conftest.err conftest.$ac_objext \
28135 conftest$ac_exeext
28136 if test "${ac_cv_search_opendir+set}" = set; then
28137 break
Reid Spencer59473af2004-12-25 07:31:29 +000028138fi
Reid Spencera773bd52006-08-04 18:18:08 +000028139done
28140if test "${ac_cv_search_opendir+set}" = set; then
28141 :
28142else
28143 ac_cv_search_opendir=no
28144fi
28145rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028146LIBS=$ac_func_search_save_LIBS
28147fi
Reid Spencera773bd52006-08-04 18:18:08 +000028148{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28149echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28150ac_res=$ac_cv_search_opendir
28151if test "$ac_res" != no; then
28152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028153
28154fi
28155
28156fi
28157
Reid Spencera773bd52006-08-04 18:18:08 +000028158{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28159echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028160if test "${ac_cv_header_mmap_anon+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
28163 ac_ext=c
28164ac_cpp='$CPP $CPPFLAGS'
28165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28167ac_compiler_gnu=$ac_cv_c_compiler_gnu
28168
28169 cat >conftest.$ac_ext <<_ACEOF
28170/* confdefs.h. */
28171_ACEOF
28172cat confdefs.h >>conftest.$ac_ext
28173cat >>conftest.$ac_ext <<_ACEOF
28174/* end confdefs.h. */
28175#include <sys/mman.h>
28176#include <unistd.h>
28177#include <fcntl.h>
28178int
28179main ()
28180{
28181mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28182 ;
28183 return 0;
28184}
28185_ACEOF
28186rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028187if { (ac_try="$ac_compile"
28188case "(($ac_try" in
28189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190 *) ac_try_echo=$ac_try;;
28191esac
28192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028194 ac_status=$?
28195 grep -v '^ *+' conftest.er1 >conftest.err
28196 rm -f conftest.er1
28197 cat conftest.err >&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28201 { (case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28204esac
28205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; } &&
28210 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028211 { (case "(($ac_try" in
28212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213 *) ac_try_echo=$ac_try;;
28214esac
28215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028217 ac_status=$?
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; }; then
28220 ac_cv_header_mmap_anon=yes
28221else
28222 echo "$as_me: failed program was:" >&5
28223sed 's/^/| /' conftest.$ac_ext >&5
28224
Reid Spencera773bd52006-08-04 18:18:08 +000028225 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028226fi
Reid Spencera773bd52006-08-04 18:18:08 +000028227
28228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028229 ac_ext=c
28230ac_cpp='$CPP $CPPFLAGS'
28231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28233ac_compiler_gnu=$ac_cv_c_compiler_gnu
28234
28235
28236fi
Reid Spencera773bd52006-08-04 18:18:08 +000028237{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28238echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028239if test "$ac_cv_header_mmap_anon" = yes; then
28240
28241cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028242#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028243_ACEOF
28244
28245fi
28246
Reid Spencera773bd52006-08-04 18:18:08 +000028247{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28248echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028249if test "${ac_cv_header_stat_broken+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28251else
28252 cat >conftest.$ac_ext <<_ACEOF
28253/* confdefs.h. */
28254_ACEOF
28255cat confdefs.h >>conftest.$ac_ext
28256cat >>conftest.$ac_ext <<_ACEOF
28257/* end confdefs.h. */
28258#include <sys/types.h>
28259#include <sys/stat.h>
28260
Reid Spencera773bd52006-08-04 18:18:08 +000028261#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028262# if S_ISBLK (S_IFDIR)
28263You lose.
28264# endif
28265#endif
28266
Reid Spencera773bd52006-08-04 18:18:08 +000028267#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028268# if S_ISBLK (S_IFCHR)
28269You lose.
28270# endif
28271#endif
28272
Reid Spencera773bd52006-08-04 18:18:08 +000028273#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028274# if S_ISLNK (S_IFREG)
28275You lose.
28276# endif
28277#endif
28278
Reid Spencera773bd52006-08-04 18:18:08 +000028279#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028280# if S_ISSOCK (S_IFREG)
28281You lose.
28282# endif
28283#endif
28284
28285_ACEOF
28286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28287 $EGREP "You lose" >/dev/null 2>&1; then
28288 ac_cv_header_stat_broken=yes
28289else
28290 ac_cv_header_stat_broken=no
28291fi
28292rm -f conftest*
28293
28294fi
Reid Spencera773bd52006-08-04 18:18:08 +000028295{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28296echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028297if test $ac_cv_header_stat_broken = yes; then
28298
28299cat >>confdefs.h <<\_ACEOF
28300#define STAT_MACROS_BROKEN 1
28301_ACEOF
28302
28303fi
28304
Reid Spencera773bd52006-08-04 18:18:08 +000028305{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28306echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028307if test "${ac_cv_header_stdc+set}" = set; then
28308 echo $ECHO_N "(cached) $ECHO_C" >&6
28309else
28310 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028316#include <stdlib.h>
28317#include <stdarg.h>
28318#include <string.h>
28319#include <float.h>
28320
John Criswell0c38eaf2003-09-10 15:17:25 +000028321int
28322main ()
28323{
28324
28325 ;
28326 return 0;
28327}
John Criswell7a73b802003-06-30 21:59:07 +000028328_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028329rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028330if { (ac_try="$ac_compile"
28331case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28334esac
28335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028338 grep -v '^ *+' conftest.er1 >conftest.err
28339 rm -f conftest.er1
28340 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028342 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28344 { (case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28347esac
28348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; } &&
28353 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028354 { (case "(($ac_try" in
28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356 *) ac_try_echo=$ac_try;;
28357esac
28358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028363 ac_cv_header_stdc=yes
28364else
28365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028366sed 's/^/| /' conftest.$ac_ext >&5
28367
Reid Spencera773bd52006-08-04 18:18:08 +000028368 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028369fi
Reid Spencera773bd52006-08-04 18:18:08 +000028370
28371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028372
28373if test $ac_cv_header_stdc = yes; then
28374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028376/* confdefs.h. */
28377_ACEOF
28378cat confdefs.h >>conftest.$ac_ext
28379cat >>conftest.$ac_ext <<_ACEOF
28380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028381#include <string.h>
28382
28383_ACEOF
28384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028385 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028386 :
28387else
28388 ac_cv_header_stdc=no
28389fi
28390rm -f conftest*
28391
28392fi
28393
28394if test $ac_cv_header_stdc = yes; then
28395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028397/* confdefs.h. */
28398_ACEOF
28399cat confdefs.h >>conftest.$ac_ext
28400cat >>conftest.$ac_ext <<_ACEOF
28401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028402#include <stdlib.h>
28403
28404_ACEOF
28405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028406 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028407 :
28408else
28409 ac_cv_header_stdc=no
28410fi
28411rm -f conftest*
28412
28413fi
28414
28415if test $ac_cv_header_stdc = yes; then
28416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28417 if test "$cross_compiling" = yes; then
28418 :
28419else
28420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028426#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028427#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028428#if ((' ' & 0x0FF) == 0x020)
28429# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28430# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28431#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028432# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028433 (('a' <= (c) && (c) <= 'i') \
28434 || ('j' <= (c) && (c) <= 'r') \
28435 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028436# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28437#endif
28438
28439#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28440int
28441main ()
28442{
28443 int i;
28444 for (i = 0; i < 256; i++)
28445 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028446 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028447 return 2;
28448 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028449}
28450_ACEOF
28451rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028452if { (ac_try="$ac_link"
28453case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456esac
28457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028462 { (case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028468 ac_status=$?
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; }; then
28471 :
28472else
28473 echo "$as_me: program exited with status $ac_status" >&5
28474echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028475sed 's/^/| /' conftest.$ac_ext >&5
28476
John Criswell7a73b802003-06-30 21:59:07 +000028477( exit $ac_status )
28478ac_cv_header_stdc=no
28479fi
Reid Spencera773bd52006-08-04 18:18:08 +000028480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28481fi
28482
28483
John Criswell7a73b802003-06-30 21:59:07 +000028484fi
28485fi
Reid Spencera773bd52006-08-04 18:18:08 +000028486{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28487echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028488if test $ac_cv_header_stdc = yes; then
28489
28490cat >>confdefs.h <<\_ACEOF
28491#define STDC_HEADERS 1
28492_ACEOF
28493
28494fi
28495
Reid Spencera773bd52006-08-04 18:18:08 +000028496{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28497echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028498if test "${ac_cv_header_sys_wait_h+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500else
28501 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028502/* confdefs.h. */
28503_ACEOF
28504cat confdefs.h >>conftest.$ac_ext
28505cat >>conftest.$ac_ext <<_ACEOF
28506/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028507#include <sys/types.h>
28508#include <sys/wait.h>
28509#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028510# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028511#endif
28512#ifndef WIFEXITED
28513# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28514#endif
28515
John Criswell7a73b802003-06-30 21:59:07 +000028516int
28517main ()
28518{
28519 int s;
28520 wait (&s);
28521 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28522 ;
28523 return 0;
28524}
28525_ACEOF
28526rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028527if { (ac_try="$ac_compile"
28528case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28531esac
28532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028535 grep -v '^ *+' conftest.er1 >conftest.err
28536 rm -f conftest.er1
28537 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28541 { (case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28544esac
28545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; } &&
28550 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028551 { (case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28554esac
28555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 ac_cv_header_sys_wait_h=yes
28561else
28562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028563sed 's/^/| /' conftest.$ac_ext >&5
28564
Reid Spencera773bd52006-08-04 18:18:08 +000028565 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028566fi
Reid Spencera773bd52006-08-04 18:18:08 +000028567
28568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028569fi
Reid Spencera773bd52006-08-04 18:18:08 +000028570{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28571echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028572if test $ac_cv_header_sys_wait_h = yes; then
28573
28574cat >>confdefs.h <<\_ACEOF
28575#define HAVE_SYS_WAIT_H 1
28576_ACEOF
28577
28578fi
28579
Reid Spencera773bd52006-08-04 18:18:08 +000028580{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28581echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028582if test "${ac_cv_header_time+set}" = set; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28584else
28585 cat >conftest.$ac_ext <<_ACEOF
28586/* confdefs.h. */
28587_ACEOF
28588cat confdefs.h >>conftest.$ac_ext
28589cat >>conftest.$ac_ext <<_ACEOF
28590/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028591#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028592#include <sys/time.h>
28593#include <time.h>
28594
28595int
28596main ()
28597{
28598if ((struct tm *) 0)
28599return 0;
28600 ;
28601 return 0;
28602}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028603_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028604rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028605if { (ac_try="$ac_compile"
28606case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609esac
28610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028612 ac_status=$?
28613 grep -v '^ *+' conftest.er1 >conftest.err
28614 rm -f conftest.er1
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028617 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28619 { (case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28622esac
28623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028625 ac_status=$?
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; } &&
28628 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028629 { (case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28632esac
28633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028635 ac_status=$?
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; }; then
28638 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028639else
28640 echo "$as_me: failed program was:" >&5
28641sed 's/^/| /' conftest.$ac_ext >&5
28642
Reid Spencera773bd52006-08-04 18:18:08 +000028643 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028644fi
Reid Spencera773bd52006-08-04 18:18:08 +000028645
28646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028647fi
Reid Spencera773bd52006-08-04 18:18:08 +000028648{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28649echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028650if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028652cat >>confdefs.h <<\_ACEOF
28653#define TIME_WITH_SYS_TIME 1
28654_ACEOF
28655
28656fi
28657
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028658
Reid Spencer59473af2004-12-25 07:31:29 +000028659
28660
28661
28662
28663
28664
28665for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28666do
28667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028672 echo $ECHO_N "(cached) $ECHO_C" >&6
28673fi
Reid Spencera773bd52006-08-04 18:18:08 +000028674ac_res=`eval echo '${'$as_ac_Header'}'`
28675 { echo "$as_me:$LINENO: result: $ac_res" >&5
28676echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028677else
28678 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028681cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028682/* confdefs.h. */
28683_ACEOF
28684cat confdefs.h >>conftest.$ac_ext
28685cat >>conftest.$ac_ext <<_ACEOF
28686/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028687$ac_includes_default
28688#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028689_ACEOF
28690rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028691if { (ac_try="$ac_compile"
28692case "(($ac_try" in
28693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694 *) ac_try_echo=$ac_try;;
28695esac
28696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028698 ac_status=$?
28699 grep -v '^ *+' conftest.er1 >conftest.err
28700 rm -f conftest.er1
28701 cat conftest.err >&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28705 { (case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28708esac
28709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; } &&
28714 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028715 { (case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28718esac
28719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028721 ac_status=$?
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028724 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028725else
28726 echo "$as_me: failed program was:" >&5
28727sed 's/^/| /' conftest.$ac_ext >&5
28728
Reid Spencera773bd52006-08-04 18:18:08 +000028729 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028730fi
Reid Spencera773bd52006-08-04 18:18:08 +000028731
28732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28734echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028735
Reid Spencer59473af2004-12-25 07:31:29 +000028736# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028739cat >conftest.$ac_ext <<_ACEOF
28740/* confdefs.h. */
28741_ACEOF
28742cat confdefs.h >>conftest.$ac_ext
28743cat >>conftest.$ac_ext <<_ACEOF
28744/* end confdefs.h. */
28745#include <$ac_header>
28746_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028747if { (ac_try="$ac_cpp conftest.$ac_ext"
28748case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28751esac
28752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028754 ac_status=$?
28755 grep -v '^ *+' conftest.er1 >conftest.err
28756 rm -f conftest.er1
28757 cat conftest.err >&5
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); } >/dev/null; then
28760 if test -s conftest.err; then
28761 ac_cpp_err=$ac_c_preproc_warn_flag
28762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28763 else
28764 ac_cpp_err=
28765 fi
28766else
28767 ac_cpp_err=yes
28768fi
28769if test -z "$ac_cpp_err"; then
28770 ac_header_preproc=yes
28771else
28772 echo "$as_me: failed program was:" >&5
28773sed 's/^/| /' conftest.$ac_ext >&5
28774
28775 ac_header_preproc=no
28776fi
Reid Spencera773bd52006-08-04 18:18:08 +000028777
Reid Spencer59473af2004-12-25 07:31:29 +000028778rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28780echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028781
28782# So? What about this header?
28783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28784 yes:no: )
28785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28789 ac_header_preproc=yes
28790 ;;
28791 no:yes:* )
28792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028804 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028805## ----------------------------------- ##
28806## Report this to llvmbugs@cs.uiuc.edu ##
28807## ----------------------------------- ##
28808_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028809 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028810 ;;
28811esac
Reid Spencera773bd52006-08-04 18:18:08 +000028812{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028815 echo $ECHO_N "(cached) $ECHO_C" >&6
28816else
28817 eval "$as_ac_Header=\$ac_header_preproc"
28818fi
Reid Spencera773bd52006-08-04 18:18:08 +000028819ac_res=`eval echo '${'$as_ac_Header'}'`
28820 { echo "$as_me:$LINENO: result: $ac_res" >&5
28821echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028822
28823fi
Reid Spencer59473af2004-12-25 07:31:29 +000028824if test `eval echo '${'$as_ac_Header'}'` = yes; then
28825 cat >>confdefs.h <<_ACEOF
28826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028827_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028828
28829fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028830
Reid Spencer59473af2004-12-25 07:31:29 +000028831done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028832
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028833
28834
Reid Spencer59473af2004-12-25 07:31:29 +000028835
28836
28837
28838
Reid Spencercdb08a32006-06-05 16:11:07 +000028839for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028840do
28841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028846 echo $ECHO_N "(cached) $ECHO_C" >&6
28847fi
Reid Spencera773bd52006-08-04 18:18:08 +000028848ac_res=`eval echo '${'$as_ac_Header'}'`
28849 { echo "$as_me:$LINENO: result: $ac_res" >&5
28850echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028851else
28852 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028853{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028855cat >conftest.$ac_ext <<_ACEOF
28856/* confdefs.h. */
28857_ACEOF
28858cat confdefs.h >>conftest.$ac_ext
28859cat >>conftest.$ac_ext <<_ACEOF
28860/* end confdefs.h. */
28861$ac_includes_default
28862#include <$ac_header>
28863_ACEOF
28864rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028865if { (ac_try="$ac_compile"
28866case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28869esac
28870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028872 ac_status=$?
28873 grep -v '^ *+' conftest.er1 >conftest.err
28874 rm -f conftest.er1
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882esac
28883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028885 ac_status=$?
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; } &&
28888 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028889 { (case "(($ac_try" in
28890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891 *) ac_try_echo=$ac_try;;
28892esac
28893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028895 ac_status=$?
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; }; then
28898 ac_header_compiler=yes
28899else
28900 echo "$as_me: failed program was:" >&5
28901sed 's/^/| /' conftest.$ac_ext >&5
28902
Reid Spencera773bd52006-08-04 18:18:08 +000028903 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028904fi
Reid Spencera773bd52006-08-04 18:18:08 +000028905
28906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28908echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028909
28910# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028913cat >conftest.$ac_ext <<_ACEOF
28914/* confdefs.h. */
28915_ACEOF
28916cat confdefs.h >>conftest.$ac_ext
28917cat >>conftest.$ac_ext <<_ACEOF
28918/* end confdefs.h. */
28919#include <$ac_header>
28920_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028921if { (ac_try="$ac_cpp conftest.$ac_ext"
28922case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28925esac
28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028928 ac_status=$?
28929 grep -v '^ *+' conftest.er1 >conftest.err
28930 rm -f conftest.er1
28931 cat conftest.err >&5
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } >/dev/null; then
28934 if test -s conftest.err; then
28935 ac_cpp_err=$ac_c_preproc_warn_flag
28936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28937 else
28938 ac_cpp_err=
28939 fi
28940else
28941 ac_cpp_err=yes
28942fi
28943if test -z "$ac_cpp_err"; then
28944 ac_header_preproc=yes
28945else
28946 echo "$as_me: failed program was:" >&5
28947sed 's/^/| /' conftest.$ac_ext >&5
28948
28949 ac_header_preproc=no
28950fi
Reid Spencera773bd52006-08-04 18:18:08 +000028951
Reid Spencer59473af2004-12-25 07:31:29 +000028952rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28954echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028955
28956# So? What about this header?
28957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28958 yes:no: )
28959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28963 ac_header_preproc=yes
28964 ;;
28965 no:yes:* )
28966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28973echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028978 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028979## ----------------------------------- ##
28980## Report this to llvmbugs@cs.uiuc.edu ##
28981## ----------------------------------- ##
28982_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028983 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028984 ;;
28985esac
Reid Spencera773bd52006-08-04 18:18:08 +000028986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028989 echo $ECHO_N "(cached) $ECHO_C" >&6
28990else
28991 eval "$as_ac_Header=\$ac_header_preproc"
28992fi
Reid Spencera773bd52006-08-04 18:18:08 +000028993ac_res=`eval echo '${'$as_ac_Header'}'`
28994 { echo "$as_me:$LINENO: result: $ac_res" >&5
28995echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028996
28997fi
28998if test `eval echo '${'$as_ac_Header'}'` = yes; then
28999 cat >>confdefs.h <<_ACEOF
29000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29001_ACEOF
29002
29003fi
29004
29005done
29006
29007
Reid Spencerbe3e4192007-08-17 05:45:26 +000029008for ac_header in windows.h
29009do
29010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29016fi
29017ac_res=`eval echo '${'$as_ac_Header'}'`
29018 { echo "$as_me:$LINENO: result: $ac_res" >&5
29019echo "${ECHO_T}$ac_res" >&6; }
29020else
29021 # Is the header compilable?
29022{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29024cat >conftest.$ac_ext <<_ACEOF
29025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
29030$ac_includes_default
29031#include <$ac_header>
29032_ACEOF
29033rm -f conftest.$ac_objext
29034if { (ac_try="$ac_compile"
29035case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29038esac
29039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_compile") 2>conftest.er1
29041 ac_status=$?
29042 grep -v '^ *+' conftest.er1 >conftest.err
29043 rm -f conftest.er1
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051esac
29052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest.$ac_objext'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29061esac
29062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_header_compiler=yes
29068else
29069 echo "$as_me: failed program was:" >&5
29070sed 's/^/| /' conftest.$ac_ext >&5
29071
29072 ac_header_compiler=no
29073fi
29074
29075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077echo "${ECHO_T}$ac_header_compiler" >&6; }
29078
29079# Is the header present?
29080{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29082cat >conftest.$ac_ext <<_ACEOF
29083/* confdefs.h. */
29084_ACEOF
29085cat confdefs.h >>conftest.$ac_ext
29086cat >>conftest.$ac_ext <<_ACEOF
29087/* end confdefs.h. */
29088#include <$ac_header>
29089_ACEOF
29090if { (ac_try="$ac_cpp conftest.$ac_ext"
29091case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29094esac
29095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29097 ac_status=$?
29098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29106 else
29107 ac_cpp_err=
29108 fi
29109else
29110 ac_cpp_err=yes
29111fi
29112if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ac_header_preproc=no
29119fi
29120
29121rm -f conftest.err conftest.$ac_ext
29122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123echo "${ECHO_T}$ac_header_preproc" >&6; }
29124
29125# So? What about this header?
29126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29127 yes:no: )
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29132 ac_header_preproc=yes
29133 ;;
29134 no:yes:* )
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29147 ( cat <<\_ASBOX
29148## ----------------------------------- ##
29149## Report this to llvmbugs@cs.uiuc.edu ##
29150## ----------------------------------- ##
29151_ASBOX
29152 ) | sed "s/^/$as_me: WARNING: /" >&2
29153 ;;
29154esac
29155{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 eval "$as_ac_Header=\$ac_header_preproc"
29161fi
29162ac_res=`eval echo '${'$as_ac_Header'}'`
29163 { echo "$as_me:$LINENO: result: $ac_res" >&5
29164echo "${ECHO_T}$ac_res" >&6; }
29165
29166fi
29167if test `eval echo '${'$as_ac_Header'}'` = yes; then
29168 cat >>confdefs.h <<_ACEOF
29169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29170_ACEOF
29171
29172fi
29173
29174done
Reid Spencer59473af2004-12-25 07:31:29 +000029175
29176
29177
29178
Reid Spencerbe3e4192007-08-17 05:45:26 +000029179
29180for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029181do
29182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029187 echo $ECHO_N "(cached) $ECHO_C" >&6
29188fi
Reid Spencera773bd52006-08-04 18:18:08 +000029189ac_res=`eval echo '${'$as_ac_Header'}'`
29190 { echo "$as_me:$LINENO: result: $ac_res" >&5
29191echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029192else
29193 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029194{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029196cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029197/* confdefs.h. */
29198_ACEOF
29199cat confdefs.h >>conftest.$ac_ext
29200cat >>conftest.$ac_ext <<_ACEOF
29201/* end confdefs.h. */
29202$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029203#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029204_ACEOF
29205rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029206if { (ac_try="$ac_compile"
29207case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29210esac
29211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029214 grep -v '^ *+' conftest.er1 >conftest.err
29215 rm -f conftest.er1
29216 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29220 { (case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29223esac
29224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029226 ac_status=$?
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; } &&
29229 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029230 { (case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29233esac
29234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029236 ac_status=$?
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; }; then
29239 ac_header_compiler=yes
29240else
29241 echo "$as_me: failed program was:" >&5
29242sed 's/^/| /' conftest.$ac_ext >&5
29243
Reid Spencera773bd52006-08-04 18:18:08 +000029244 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029245fi
Reid Spencera773bd52006-08-04 18:18:08 +000029246
29247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29249echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029250
29251# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029252{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29253echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029254cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029255/* confdefs.h. */
29256_ACEOF
29257cat confdefs.h >>conftest.$ac_ext
29258cat >>conftest.$ac_ext <<_ACEOF
29259/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029260#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029261_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029262if { (ac_try="$ac_cpp conftest.$ac_ext"
29263case "(($ac_try" in
29264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265 *) ac_try_echo=$ac_try;;
29266esac
29267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029269 ac_status=$?
29270 grep -v '^ *+' conftest.er1 >conftest.err
29271 rm -f conftest.er1
29272 cat conftest.err >&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); } >/dev/null; then
29275 if test -s conftest.err; then
29276 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029278 else
29279 ac_cpp_err=
29280 fi
29281else
29282 ac_cpp_err=yes
29283fi
29284if test -z "$ac_cpp_err"; then
29285 ac_header_preproc=yes
29286else
29287 echo "$as_me: failed program was:" >&5
29288sed 's/^/| /' conftest.$ac_ext >&5
29289
29290 ac_header_preproc=no
29291fi
Reid Spencera773bd52006-08-04 18:18:08 +000029292
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029293rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029294{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29295echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029296
29297# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29299 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029304 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029305 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029306 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29310echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29314echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029319 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029320## ----------------------------------- ##
29321## Report this to llvmbugs@cs.uiuc.edu ##
29322## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029323_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029324 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029325 ;;
29326esac
Reid Spencera773bd52006-08-04 18:18:08 +000029327{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029330 echo $ECHO_N "(cached) $ECHO_C" >&6
29331else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029332 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029333fi
Reid Spencera773bd52006-08-04 18:18:08 +000029334ac_res=`eval echo '${'$as_ac_Header'}'`
29335 { echo "$as_me:$LINENO: result: $ac_res" >&5
29336echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029337
29338fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029339if test `eval echo '${'$as_ac_Header'}'` = yes; then
29340 cat >>confdefs.h <<_ACEOF
29341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029342_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029343
29344fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029345
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029346done
29347
John Criswell7ed43ad2004-07-19 16:12:29 +000029348
Reid Spencercdb08a32006-06-05 16:11:07 +000029349
Reid Spencera6d990a2006-09-14 06:17:21 +000029350
29351for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029352do
29353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029358 echo $ECHO_N "(cached) $ECHO_C" >&6
29359fi
Reid Spencera773bd52006-08-04 18:18:08 +000029360ac_res=`eval echo '${'$as_ac_Header'}'`
29361 { echo "$as_me:$LINENO: result: $ac_res" >&5
29362echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029363else
29364 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029367cat >conftest.$ac_ext <<_ACEOF
29368/* confdefs.h. */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h. */
29373$ac_includes_default
29374#include <$ac_header>
29375_ACEOF
29376rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029377if { (ac_try="$ac_compile"
29378case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29381esac
29382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029384 ac_status=$?
29385 grep -v '^ *+' conftest.er1 >conftest.err
29386 rm -f conftest.er1
29387 cat conftest.err >&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29391 { (case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29394esac
29395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029397 ac_status=$?
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29404esac
29405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029407 ac_status=$?
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 ac_header_compiler=yes
29411else
29412 echo "$as_me: failed program was:" >&5
29413sed 's/^/| /' conftest.$ac_ext >&5
29414
Reid Spencera773bd52006-08-04 18:18:08 +000029415 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029416fi
Reid Spencera773bd52006-08-04 18:18:08 +000029417
29418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29420echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029421
29422# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029425cat >conftest.$ac_ext <<_ACEOF
29426/* confdefs.h. */
29427_ACEOF
29428cat confdefs.h >>conftest.$ac_ext
29429cat >>conftest.$ac_ext <<_ACEOF
29430/* end confdefs.h. */
29431#include <$ac_header>
29432_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029433if { (ac_try="$ac_cpp conftest.$ac_ext"
29434case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29437esac
29438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029440 ac_status=$?
29441 grep -v '^ *+' conftest.er1 >conftest.err
29442 rm -f conftest.er1
29443 cat conftest.err >&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); } >/dev/null; then
29446 if test -s conftest.err; then
29447 ac_cpp_err=$ac_c_preproc_warn_flag
29448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29449 else
29450 ac_cpp_err=
29451 fi
29452else
29453 ac_cpp_err=yes
29454fi
29455if test -z "$ac_cpp_err"; then
29456 ac_header_preproc=yes
29457else
29458 echo "$as_me: failed program was:" >&5
29459sed 's/^/| /' conftest.$ac_ext >&5
29460
29461 ac_header_preproc=no
29462fi
Reid Spencera773bd52006-08-04 18:18:08 +000029463
Chris Lattner0b142592005-11-14 06:57:34 +000029464rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29466echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029467
29468# So? What about this header?
29469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29470 yes:no: )
29471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29475 ac_header_preproc=yes
29476 ;;
29477 no:yes:* )
29478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029490 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029491## ----------------------------------- ##
29492## Report this to llvmbugs@cs.uiuc.edu ##
29493## ----------------------------------- ##
29494_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029495 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029496 ;;
29497esac
Reid Spencera773bd52006-08-04 18:18:08 +000029498{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029501 echo $ECHO_N "(cached) $ECHO_C" >&6
29502else
29503 eval "$as_ac_Header=\$ac_header_preproc"
29504fi
Reid Spencera773bd52006-08-04 18:18:08 +000029505ac_res=`eval echo '${'$as_ac_Header'}'`
29506 { echo "$as_me:$LINENO: result: $ac_res" >&5
29507echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029508
29509fi
29510if test `eval echo '${'$as_ac_Header'}'` = yes; then
29511 cat >>confdefs.h <<_ACEOF
29512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29513_ACEOF
29514
29515fi
29516
29517done
29518
Reid Spencer0a262ba2005-08-24 10:07:20 +000029519if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029520
29521for ac_header in pthread.h
29522do
29523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029528 echo $ECHO_N "(cached) $ECHO_C" >&6
29529fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029530ac_res=`eval echo '${'$as_ac_Header'}'`
29531 { echo "$as_me:$LINENO: result: $ac_res" >&5
29532echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029533else
29534 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029535{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029537cat >conftest.$ac_ext <<_ACEOF
29538/* confdefs.h. */
29539_ACEOF
29540cat confdefs.h >>conftest.$ac_ext
29541cat >>conftest.$ac_ext <<_ACEOF
29542/* end confdefs.h. */
29543$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029544#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029545_ACEOF
29546rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029547if { (ac_try="$ac_compile"
29548case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29551esac
29552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029554 ac_status=$?
29555 grep -v '^ *+' conftest.er1 >conftest.err
29556 rm -f conftest.er1
29557 cat conftest.err >&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29561 { (case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29564esac
29565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029567 ac_status=$?
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; } &&
29570 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029571 { (case "(($ac_try" in
29572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573 *) ac_try_echo=$ac_try;;
29574esac
29575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; }; then
29580 ac_header_compiler=yes
29581else
29582 echo "$as_me: failed program was:" >&5
29583sed 's/^/| /' conftest.$ac_ext >&5
29584
Reid Spencera773bd52006-08-04 18:18:08 +000029585 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029586fi
Reid Spencera773bd52006-08-04 18:18:08 +000029587
29588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29590echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029591
29592# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029595cat >conftest.$ac_ext <<_ACEOF
29596/* confdefs.h. */
29597_ACEOF
29598cat confdefs.h >>conftest.$ac_ext
29599cat >>conftest.$ac_ext <<_ACEOF
29600/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029601#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029603if { (ac_try="$ac_cpp conftest.$ac_ext"
29604case "(($ac_try" in
29605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606 *) ac_try_echo=$ac_try;;
29607esac
29608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029610 ac_status=$?
29611 grep -v '^ *+' conftest.er1 >conftest.err
29612 rm -f conftest.er1
29613 cat conftest.err >&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } >/dev/null; then
29616 if test -s conftest.err; then
29617 ac_cpp_err=$ac_c_preproc_warn_flag
29618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29619 else
29620 ac_cpp_err=
29621 fi
29622else
29623 ac_cpp_err=yes
29624fi
29625if test -z "$ac_cpp_err"; then
29626 ac_header_preproc=yes
29627else
29628 echo "$as_me: failed program was:" >&5
29629sed 's/^/| /' conftest.$ac_ext >&5
29630
29631 ac_header_preproc=no
29632fi
Reid Spencera773bd52006-08-04 18:18:08 +000029633
Reid Spencer0a262ba2005-08-24 10:07:20 +000029634rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29636echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029637
29638# So? What about this header?
29639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29640 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029645 ac_header_preproc=yes
29646 ;;
29647 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029660 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029661## ----------------------------------- ##
29662## Report this to llvmbugs@cs.uiuc.edu ##
29663## ----------------------------------- ##
29664_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029665 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029666 ;;
29667esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029668{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029671 echo $ECHO_N "(cached) $ECHO_C" >&6
29672else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029673 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029674fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029675ac_res=`eval echo '${'$as_ac_Header'}'`
29676 { echo "$as_me:$LINENO: result: $ac_res" >&5
29677echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029678
29679fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029680if test `eval echo '${'$as_ac_Header'}'` = yes; then
29681 cat >>confdefs.h <<_ACEOF
29682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29683_ACEOF
29684 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029685
29686else
29687 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029688
29689fi
29690
Reid Spencerbe3e4192007-08-17 05:45:26 +000029691done
Reid Spencer1000b732006-12-01 00:37:14 +000029692
29693else
29694 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029695
29696fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029697
29698
Reid Spencerb2ed05262006-11-03 18:04:08 +000029699
29700 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29701echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29702if test "${ac_cv_huge_val_sanity+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29704else
29705
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029706 ac_ext=cpp
29707ac_cpp='$CXXCPP $CPPFLAGS'
29708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029711
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029712 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029713 if test "$cross_compiling" = yes; then
29714 ac_cv_huge_val_sanity=yes
29715else
29716 cat >conftest.$ac_ext <<_ACEOF
29717/* confdefs.h. */
29718_ACEOF
29719cat confdefs.h >>conftest.$ac_ext
29720cat >>conftest.$ac_ext <<_ACEOF
29721/* end confdefs.h. */
29722#include <math.h>
29723int
29724main ()
29725{
29726double x = HUGE_VAL; return x != x;
29727 ;
29728 return 0;
29729}
29730_ACEOF
29731rm -f conftest$ac_exeext
29732if { (ac_try="$ac_link"
29733case "(($ac_try" in
29734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735 *) ac_try_echo=$ac_try;;
29736esac
29737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738 (eval "$ac_link") 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29742 { (case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29745esac
29746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_try") 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
29751 ac_cv_huge_val_sanity=yes
29752else
29753 echo "$as_me: program exited with status $ac_status" >&5
29754echo "$as_me: failed program was:" >&5
29755sed 's/^/| /' conftest.$ac_ext >&5
29756
29757( exit $ac_status )
29758ac_cv_huge_val_sanity=no
29759fi
29760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29761fi
29762
29763
29764 ac_ext=c
29765ac_cpp='$CPP $CPPFLAGS'
29766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29768ac_compiler_gnu=$ac_cv_c_compiler_gnu
29769
29770
29771fi
29772{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29773echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29774 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29775
29776
Reid Spencera773bd52006-08-04 18:18:08 +000029777{ echo "$as_me:$LINENO: checking for pid_t" >&5
29778echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029779if test "${ac_cv_type_pid_t+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29781else
29782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029783/* confdefs.h. */
29784_ACEOF
29785cat confdefs.h >>conftest.$ac_ext
29786cat >>conftest.$ac_ext <<_ACEOF
29787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029788$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029789typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029790int
29791main ()
29792{
Reid Spencera773bd52006-08-04 18:18:08 +000029793if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029794 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029795if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029796 return 0;
29797 ;
29798 return 0;
29799}
29800_ACEOF
29801rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029802if { (ac_try="$ac_compile"
29803case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29806esac
29807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029810 grep -v '^ *+' conftest.er1 >conftest.err
29811 rm -f conftest.er1
29812 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29816 { (case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29819esac
29820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029822 ac_status=$?
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); }; } &&
29825 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029826 { (case "(($ac_try" in
29827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828 *) ac_try_echo=$ac_try;;
29829esac
29830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029832 ac_status=$?
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; }; then
29835 ac_cv_type_pid_t=yes
29836else
29837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029838sed 's/^/| /' conftest.$ac_ext >&5
29839
Reid Spencera773bd52006-08-04 18:18:08 +000029840 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029841fi
Reid Spencera773bd52006-08-04 18:18:08 +000029842
29843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029844fi
Reid Spencera773bd52006-08-04 18:18:08 +000029845{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29846echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029847if test $ac_cv_type_pid_t = yes; then
29848 :
29849else
29850
29851cat >>confdefs.h <<_ACEOF
29852#define pid_t int
29853_ACEOF
29854
29855fi
29856
Reid Spencera773bd52006-08-04 18:18:08 +000029857{ echo "$as_me:$LINENO: checking for size_t" >&5
29858echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029859if test "${ac_cv_type_size_t+set}" = set; then
29860 echo $ECHO_N "(cached) $ECHO_C" >&6
29861else
29862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029863/* confdefs.h. */
29864_ACEOF
29865cat confdefs.h >>conftest.$ac_ext
29866cat >>conftest.$ac_ext <<_ACEOF
29867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029868$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029869typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029870int
29871main ()
29872{
Reid Spencera773bd52006-08-04 18:18:08 +000029873if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029874 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029875if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029876 return 0;
29877 ;
29878 return 0;
29879}
29880_ACEOF
29881rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029882if { (ac_try="$ac_compile"
29883case "(($ac_try" in
29884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885 *) ac_try_echo=$ac_try;;
29886esac
29887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029890 grep -v '^ *+' conftest.er1 >conftest.err
29891 rm -f conftest.er1
29892 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29896 { (case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29899esac
29900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; } &&
29905 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029906 { (case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29909esac
29910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 ac_cv_type_size_t=yes
29916else
29917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029918sed 's/^/| /' conftest.$ac_ext >&5
29919
Reid Spencera773bd52006-08-04 18:18:08 +000029920 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029921fi
Reid Spencera773bd52006-08-04 18:18:08 +000029922
29923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029924fi
Reid Spencera773bd52006-08-04 18:18:08 +000029925{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29926echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029927if test $ac_cv_type_size_t = yes; then
29928 :
29929else
29930
29931cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029932#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029933_ACEOF
29934
29935fi
29936
Reid Spencera773bd52006-08-04 18:18:08 +000029937{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29938echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029939if test "${ac_cv_type_signal+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29941else
29942 cat >conftest.$ac_ext <<_ACEOF
29943/* confdefs.h. */
29944_ACEOF
29945cat confdefs.h >>conftest.$ac_ext
29946cat >>conftest.$ac_ext <<_ACEOF
29947/* end confdefs.h. */
29948#include <sys/types.h>
29949#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029950
29951int
29952main ()
29953{
Reid Spencera773bd52006-08-04 18:18:08 +000029954return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029955 ;
29956 return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029960if { (ac_try="$ac_compile"
29961case "(($ac_try" in
29962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963 *) ac_try_echo=$ac_try;;
29964esac
29965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029967 ac_status=$?
29968 grep -v '^ *+' conftest.er1 >conftest.err
29969 rm -f conftest.er1
29970 cat conftest.err >&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29974 { (case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29977esac
29978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029984 { (case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29987esac
29988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029993 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029994else
29995 echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
Reid Spencera773bd52006-08-04 18:18:08 +000029998 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029999fi
Reid Spencera773bd52006-08-04 18:18:08 +000030000
30001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030002fi
Reid Spencera773bd52006-08-04 18:18:08 +000030003{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30004echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030005
30006cat >>confdefs.h <<_ACEOF
30007#define RETSIGTYPE $ac_cv_type_signal
30008_ACEOF
30009
30010
Reid Spencera773bd52006-08-04 18:18:08 +000030011{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30012echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030013if test "${ac_cv_struct_tm+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30015else
30016 cat >conftest.$ac_ext <<_ACEOF
30017/* confdefs.h. */
30018_ACEOF
30019cat confdefs.h >>conftest.$ac_ext
30020cat >>conftest.$ac_ext <<_ACEOF
30021/* end confdefs.h. */
30022#include <sys/types.h>
30023#include <time.h>
30024
30025int
30026main ()
30027{
30028struct tm *tp; tp->tm_sec;
30029 ;
30030 return 0;
30031}
30032_ACEOF
30033rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030034if { (ac_try="$ac_compile"
30035case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30038esac
30039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030041 ac_status=$?
30042 grep -v '^ *+' conftest.er1 >conftest.err
30043 rm -f conftest.er1
30044 cat conftest.err >&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30048 { (case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30051esac
30052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030054 ac_status=$?
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; } &&
30057 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030058 { (case "(($ac_try" in
30059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30061esac
30062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030064 ac_status=$?
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; }; then
30067 ac_cv_struct_tm=time.h
30068else
30069 echo "$as_me: failed program was:" >&5
30070sed 's/^/| /' conftest.$ac_ext >&5
30071
Reid Spencera773bd52006-08-04 18:18:08 +000030072 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030073fi
Reid Spencera773bd52006-08-04 18:18:08 +000030074
30075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030076fi
Reid Spencera773bd52006-08-04 18:18:08 +000030077{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30078echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030079if test $ac_cv_struct_tm = sys/time.h; then
30080
30081cat >>confdefs.h <<\_ACEOF
30082#define TM_IN_SYS_TIME 1
30083_ACEOF
30084
30085fi
30086
Reid Spencera773bd52006-08-04 18:18:08 +000030087{ echo "$as_me:$LINENO: checking for int64_t" >&5
30088echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030089if test "${ac_cv_type_int64_t+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30091else
30092 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030093/* confdefs.h. */
30094_ACEOF
30095cat confdefs.h >>conftest.$ac_ext
30096cat >>conftest.$ac_ext <<_ACEOF
30097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030098$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030099typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030100int
30101main ()
30102{
Reid Spencera773bd52006-08-04 18:18:08 +000030103if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030104 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030105if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030106 return 0;
30107 ;
30108 return 0;
30109}
30110_ACEOF
30111rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030112if { (ac_try="$ac_compile"
30113case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30116esac
30117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030120 grep -v '^ *+' conftest.er1 >conftest.err
30121 rm -f conftest.er1
30122 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30126 { (case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30129esac
30130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; } &&
30135 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030136 { (case "(($ac_try" in
30137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138 *) ac_try_echo=$ac_try;;
30139esac
30140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 ac_cv_type_int64_t=yes
30146else
30147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030148sed 's/^/| /' conftest.$ac_ext >&5
30149
Reid Spencera773bd52006-08-04 18:18:08 +000030150 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030151fi
Reid Spencera773bd52006-08-04 18:18:08 +000030152
30153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030154fi
Reid Spencera773bd52006-08-04 18:18:08 +000030155{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30156echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030157if test $ac_cv_type_int64_t = yes; then
30158
30159cat >>confdefs.h <<_ACEOF
30160#define HAVE_INT64_T 1
30161_ACEOF
30162
30163
30164else
30165 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30166echo "$as_me: error: Type int64_t required but not found" >&2;}
30167 { (exit 1); exit 1; }; }
30168fi
30169
Reid Spencera773bd52006-08-04 18:18:08 +000030170{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30171echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030172if test "${ac_cv_type_uint64_t+set}" = set; then
30173 echo $ECHO_N "(cached) $ECHO_C" >&6
30174else
30175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030176/* confdefs.h. */
30177_ACEOF
30178cat confdefs.h >>conftest.$ac_ext
30179cat >>conftest.$ac_ext <<_ACEOF
30180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030181$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030182typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030183int
30184main ()
30185{
Reid Spencera773bd52006-08-04 18:18:08 +000030186if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030187 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030188if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030189 return 0;
30190 ;
30191 return 0;
30192}
30193_ACEOF
30194rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030195if { (ac_try="$ac_compile"
30196case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30199esac
30200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030203 grep -v '^ *+' conftest.er1 >conftest.err
30204 rm -f conftest.er1
30205 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30209 { (case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30212esac
30213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030215 ac_status=$?
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; } &&
30218 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030219 { (case "(($ac_try" in
30220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30221 *) ac_try_echo=$ac_try;;
30222esac
30223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30224 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030225 ac_status=$?
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); }; }; then
30228 ac_cv_type_uint64_t=yes
30229else
30230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030231sed 's/^/| /' conftest.$ac_ext >&5
30232
Reid Spencera773bd52006-08-04 18:18:08 +000030233 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030234fi
Reid Spencera773bd52006-08-04 18:18:08 +000030235
30236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030237fi
Reid Spencera773bd52006-08-04 18:18:08 +000030238{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30239echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030240if test $ac_cv_type_uint64_t = yes; then
30241
30242cat >>confdefs.h <<_ACEOF
30243#define HAVE_UINT64_T 1
30244_ACEOF
30245
30246
30247else
Reid Spencera773bd52006-08-04 18:18:08 +000030248 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30249echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030250if test "${ac_cv_type_u_int64_t+set}" = set; then
30251 echo $ECHO_N "(cached) $ECHO_C" >&6
30252else
30253 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030254/* confdefs.h. */
30255_ACEOF
30256cat confdefs.h >>conftest.$ac_ext
30257cat >>conftest.$ac_ext <<_ACEOF
30258/* end confdefs.h. */
30259$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030260typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030261int
30262main ()
30263{
Reid Spencera773bd52006-08-04 18:18:08 +000030264if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030265 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030266if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030267 return 0;
30268 ;
30269 return 0;
30270}
30271_ACEOF
30272rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030273if { (ac_try="$ac_compile"
30274case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30277esac
30278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030281 grep -v '^ *+' conftest.er1 >conftest.err
30282 rm -f conftest.er1
30283 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30287 { (case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30290esac
30291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030293 ac_status=$?
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; } &&
30296 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30300esac
30301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000030303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 ac_cv_type_u_int64_t=yes
30307else
30308 echo "$as_me: failed program was:" >&5
30309sed 's/^/| /' conftest.$ac_ext >&5
30310
Reid Spencera773bd52006-08-04 18:18:08 +000030311 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030312fi
Reid Spencera773bd52006-08-04 18:18:08 +000030313
30314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030315fi
Reid Spencera773bd52006-08-04 18:18:08 +000030316{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30317echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030318if test $ac_cv_type_u_int64_t = yes; then
30319
30320cat >>confdefs.h <<_ACEOF
30321#define HAVE_U_INT64_T 1
30322_ACEOF
30323
30324
Misha Brukmanceca9042004-09-02 23:02:30 +000030325else
30326 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30327echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30328 { (exit 1); exit 1; }; }
30329fi
30330
John Criswell679ff312004-09-02 18:44:44 +000030331fi
30332
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030333
30334
30335
30336
30337
30338
30339
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030340
30341
Reid Spencerdf3be822006-01-23 08:15:53 +000030342for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030343do
30344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349else
30350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30358#define $ac_func innocuous_$ac_func
30359
30360/* System header to define __stub macros and hopefully few prototypes,
30361 which can conflict with char $ac_func (); below.
30362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30363 <limits.h> exists even on freestanding compilers. */
30364
30365#ifdef __STDC__
30366# include <limits.h>
30367#else
30368# include <assert.h>
30369#endif
30370
30371#undef $ac_func
30372
Reid Spencera773bd52006-08-04 18:18:08 +000030373/* Override any GCC internal prototype to avoid an error.
30374 Use char because int might match the return type of a GCC
30375 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030376#ifdef __cplusplus
30377extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030378#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030379char $ac_func ();
30380/* The GNU C library defines this for functions which it implements
30381 to always fail with ENOSYS. Some functions are actually named
30382 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030383#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030384choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030385#endif
John Criswell7a73b802003-06-30 21:59:07 +000030386
John Criswell7a73b802003-06-30 21:59:07 +000030387int
30388main ()
30389{
Reid Spencera773bd52006-08-04 18:18:08 +000030390return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030391 ;
30392 return 0;
30393}
30394_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030395rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030396if { (ac_try="$ac_link"
30397case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30400esac
30401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030404 grep -v '^ *+' conftest.er1 >conftest.err
30405 rm -f conftest.er1
30406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30413esac
30414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030416 ac_status=$?
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030419 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30423esac
30424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030429 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030430else
30431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030432sed 's/^/| /' conftest.$ac_ext >&5
30433
Reid Spencera773bd52006-08-04 18:18:08 +000030434 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030435fi
Reid Spencera773bd52006-08-04 18:18:08 +000030436
30437rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030438 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030439fi
Reid Spencera773bd52006-08-04 18:18:08 +000030440ac_res=`eval echo '${'$as_ac_var'}'`
30441 { echo "$as_me:$LINENO: result: $ac_res" >&5
30442echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030443if test `eval echo '${'$as_ac_var'}'` = yes; then
30444 cat >>confdefs.h <<_ACEOF
30445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030446_ACEOF
30447
30448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030449done
John Criswell7a73b802003-06-30 21:59:07 +000030450
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030451
30452
30453
Reid Spencer6af3d262004-12-15 04:01:48 +000030454
Reid Spencer96cf5872007-07-13 10:05:30 +000030455for ac_func in powf fmodf strtof round
30456do
30457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462else
30463 cat >conftest.$ac_ext <<_ACEOF
30464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
30469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30471#define $ac_func innocuous_$ac_func
30472
30473/* System header to define __stub macros and hopefully few prototypes,
30474 which can conflict with char $ac_func (); below.
30475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30476 <limits.h> exists even on freestanding compilers. */
30477
30478#ifdef __STDC__
30479# include <limits.h>
30480#else
30481# include <assert.h>
30482#endif
30483
30484#undef $ac_func
30485
30486/* Override any GCC internal prototype to avoid an error.
30487 Use char because int might match the return type of a GCC
30488 builtin and then its argument prototype would still apply. */
30489#ifdef __cplusplus
30490extern "C"
30491#endif
30492char $ac_func ();
30493/* The GNU C library defines this for functions which it implements
30494 to always fail with ENOSYS. Some functions are actually named
30495 something starting with __ and the normal name is an alias. */
30496#if defined __stub_$ac_func || defined __stub___$ac_func
30497choke me
30498#endif
30499
30500int
30501main ()
30502{
30503return $ac_func ();
30504 ;
30505 return 0;
30506}
30507_ACEOF
30508rm -f conftest.$ac_objext conftest$ac_exeext
30509if { (ac_try="$ac_link"
30510case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30513esac
30514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_link") 2>conftest.er1
30516 ac_status=$?
30517 grep -v '^ *+' conftest.er1 >conftest.err
30518 rm -f conftest.er1
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
30522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30523 { (case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30526esac
30527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_try") 2>&5
30529 ac_status=$?
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; } &&
30532 { ac_try='test -s conftest$ac_exeext'
30533 { (case "(($ac_try" in
30534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535 *) ac_try_echo=$ac_try;;
30536esac
30537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538 (eval "$ac_try") 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542 eval "$as_ac_var=yes"
30543else
30544 echo "$as_me: failed program was:" >&5
30545sed 's/^/| /' conftest.$ac_ext >&5
30546
30547 eval "$as_ac_var=no"
30548fi
30549
30550rm -f core conftest.err conftest.$ac_objext \
30551 conftest$ac_exeext conftest.$ac_ext
30552fi
30553ac_res=`eval echo '${'$as_ac_var'}'`
30554 { echo "$as_me:$LINENO: result: $ac_res" >&5
30555echo "${ECHO_T}$ac_res" >&6; }
30556if test `eval echo '${'$as_ac_var'}'` = yes; then
30557 cat >>confdefs.h <<_ACEOF
30558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30559_ACEOF
30560
30561fi
30562done
30563
30564
30565
30566
30567
Reid Spencer6af3d262004-12-15 04:01:48 +000030568
Reid Spencerb90645c2007-02-16 19:17:20 +000030569for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30570do
30571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30572{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30574if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30576else
30577 cat >conftest.$ac_ext <<_ACEOF
30578/* confdefs.h. */
30579_ACEOF
30580cat confdefs.h >>conftest.$ac_ext
30581cat >>conftest.$ac_ext <<_ACEOF
30582/* end confdefs.h. */
30583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30585#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030586
Reid Spencerb90645c2007-02-16 19:17:20 +000030587/* System header to define __stub macros and hopefully few prototypes,
30588 which can conflict with char $ac_func (); below.
30589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30590 <limits.h> exists even on freestanding compilers. */
30591
30592#ifdef __STDC__
30593# include <limits.h>
30594#else
30595# include <assert.h>
30596#endif
30597
30598#undef $ac_func
30599
30600/* Override any GCC internal prototype to avoid an error.
30601 Use char because int might match the return type of a GCC
30602 builtin and then its argument prototype would still apply. */
30603#ifdef __cplusplus
30604extern "C"
30605#endif
30606char $ac_func ();
30607/* The GNU C library defines this for functions which it implements
30608 to always fail with ENOSYS. Some functions are actually named
30609 something starting with __ and the normal name is an alias. */
30610#if defined __stub_$ac_func || defined __stub___$ac_func
30611choke me
30612#endif
30613
30614int
30615main ()
30616{
30617return $ac_func ();
30618 ;
30619 return 0;
30620}
30621_ACEOF
30622rm -f conftest.$ac_objext conftest$ac_exeext
30623if { (ac_try="$ac_link"
30624case "(($ac_try" in
30625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30626 *) ac_try_echo=$ac_try;;
30627esac
30628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30629 (eval "$ac_link") 2>conftest.er1
30630 ac_status=$?
30631 grep -v '^ *+' conftest.er1 >conftest.err
30632 rm -f conftest.er1
30633 cat conftest.err >&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } &&
30636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30637 { (case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30640esac
30641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_try") 2>&5
30643 ac_status=$?
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; } &&
30646 { ac_try='test -s conftest$ac_exeext'
30647 { (case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30650esac
30651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_try") 2>&5
30653 ac_status=$?
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; }; then
30656 eval "$as_ac_var=yes"
30657else
30658 echo "$as_me: failed program was:" >&5
30659sed 's/^/| /' conftest.$ac_ext >&5
30660
30661 eval "$as_ac_var=no"
30662fi
30663
30664rm -f core conftest.err conftest.$ac_objext \
30665 conftest$ac_exeext conftest.$ac_ext
30666fi
30667ac_res=`eval echo '${'$as_ac_var'}'`
30668 { echo "$as_me:$LINENO: result: $ac_res" >&5
30669echo "${ECHO_T}$ac_res" >&6; }
30670if test `eval echo '${'$as_ac_var'}'` = yes; then
30671 cat >>confdefs.h <<_ACEOF
30672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30673_ACEOF
30674
30675fi
30676done
30677
30678
30679
30680
30681for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030682do
30683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030684{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030687 echo $ECHO_N "(cached) $ECHO_C" >&6
30688else
30689 cat >conftest.$ac_ext <<_ACEOF
30690/* confdefs.h. */
30691_ACEOF
30692cat confdefs.h >>conftest.$ac_ext
30693cat >>conftest.$ac_ext <<_ACEOF
30694/* end confdefs.h. */
30695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30697#define $ac_func innocuous_$ac_func
30698
30699/* System header to define __stub macros and hopefully few prototypes,
30700 which can conflict with char $ac_func (); below.
30701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30702 <limits.h> exists even on freestanding compilers. */
30703
30704#ifdef __STDC__
30705# include <limits.h>
30706#else
30707# include <assert.h>
30708#endif
30709
30710#undef $ac_func
30711
Reid Spencera773bd52006-08-04 18:18:08 +000030712/* Override any GCC internal prototype to avoid an error.
30713 Use char because int might match the return type of a GCC
30714 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030715#ifdef __cplusplus
30716extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030717#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030718char $ac_func ();
30719/* The GNU C library defines this for functions which it implements
30720 to always fail with ENOSYS. Some functions are actually named
30721 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030722#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030723choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030724#endif
30725
30726int
30727main ()
30728{
Reid Spencera773bd52006-08-04 18:18:08 +000030729return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030730 ;
30731 return 0;
30732}
30733_ACEOF
30734rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030735if { (ac_try="$ac_link"
30736case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30739esac
30740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030742 ac_status=$?
30743 grep -v '^ *+' conftest.er1 >conftest.err
30744 rm -f conftest.er1
30745 cat conftest.err >&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30749 { (case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30752esac
30753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } &&
30758 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030759 { (case "(($ac_try" in
30760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761 *) ac_try_echo=$ac_try;;
30762esac
30763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030765 ac_status=$?
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; }; then
30768 eval "$as_ac_var=yes"
30769else
30770 echo "$as_me: failed program was:" >&5
30771sed 's/^/| /' conftest.$ac_ext >&5
30772
Reid Spencera773bd52006-08-04 18:18:08 +000030773 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030774fi
Reid Spencera773bd52006-08-04 18:18:08 +000030775
30776rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030777 conftest$ac_exeext conftest.$ac_ext
30778fi
Reid Spencera773bd52006-08-04 18:18:08 +000030779ac_res=`eval echo '${'$as_ac_var'}'`
30780 { echo "$as_me:$LINENO: result: $ac_res" >&5
30781echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030782if test `eval echo '${'$as_ac_var'}'` = yes; then
30783 cat >>confdefs.h <<_ACEOF
30784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30785_ACEOF
30786
30787fi
30788done
30789
30790
30791
30792
30793
30794
30795
30796
30797for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030798do
30799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030803 echo $ECHO_N "(cached) $ECHO_C" >&6
30804else
30805 cat >conftest.$ac_ext <<_ACEOF
30806/* confdefs.h. */
30807_ACEOF
30808cat confdefs.h >>conftest.$ac_ext
30809cat >>conftest.$ac_ext <<_ACEOF
30810/* end confdefs.h. */
30811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30813#define $ac_func innocuous_$ac_func
30814
30815/* System header to define __stub macros and hopefully few prototypes,
30816 which can conflict with char $ac_func (); below.
30817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30818 <limits.h> exists even on freestanding compilers. */
30819
30820#ifdef __STDC__
30821# include <limits.h>
30822#else
30823# include <assert.h>
30824#endif
30825
30826#undef $ac_func
30827
Reid Spencera773bd52006-08-04 18:18:08 +000030828/* Override any GCC internal prototype to avoid an error.
30829 Use char because int might match the return type of a GCC
30830 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030831#ifdef __cplusplus
30832extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030833#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030834char $ac_func ();
30835/* The GNU C library defines this for functions which it implements
30836 to always fail with ENOSYS. Some functions are actually named
30837 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030838#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030839choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030840#endif
30841
30842int
30843main ()
30844{
Reid Spencera773bd52006-08-04 18:18:08 +000030845return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030846 ;
30847 return 0;
30848}
30849_ACEOF
30850rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030851if { (ac_try="$ac_link"
30852case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30855esac
30856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030858 ac_status=$?
30859 grep -v '^ *+' conftest.er1 >conftest.err
30860 rm -f conftest.er1
30861 cat conftest.err >&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30865 { (case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30868esac
30869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030871 ac_status=$?
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; } &&
30874 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030875 { (case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878esac
30879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030881 ac_status=$?
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; }; then
30884 eval "$as_ac_var=yes"
30885else
30886 echo "$as_me: failed program was:" >&5
30887sed 's/^/| /' conftest.$ac_ext >&5
30888
Reid Spencera773bd52006-08-04 18:18:08 +000030889 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030890fi
Reid Spencera773bd52006-08-04 18:18:08 +000030891
30892rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030893 conftest$ac_exeext conftest.$ac_ext
30894fi
Reid Spencera773bd52006-08-04 18:18:08 +000030895ac_res=`eval echo '${'$as_ac_var'}'`
30896 { echo "$as_me:$LINENO: result: $ac_res" >&5
30897echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030898if test `eval echo '${'$as_ac_var'}'` = yes; then
30899 cat >>confdefs.h <<_ACEOF
30900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30901_ACEOF
30902
30903fi
30904done
30905
30906
Reid Spencerba46ca32004-12-31 05:49:15 +000030907
30908
Chris Lattner0b142592005-11-14 06:57:34 +000030909
Chris Lattner511f11d2005-11-14 07:25:50 +000030910for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030911do
30912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030913{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030916 echo $ECHO_N "(cached) $ECHO_C" >&6
30917else
30918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030919/* confdefs.h. */
30920_ACEOF
30921cat confdefs.h >>conftest.$ac_ext
30922cat >>conftest.$ac_ext <<_ACEOF
30923/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30926#define $ac_func innocuous_$ac_func
30927
30928/* System header to define __stub macros and hopefully few prototypes,
30929 which can conflict with char $ac_func (); below.
30930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30931 <limits.h> exists even on freestanding compilers. */
30932
30933#ifdef __STDC__
30934# include <limits.h>
30935#else
30936# include <assert.h>
30937#endif
30938
30939#undef $ac_func
30940
Reid Spencera773bd52006-08-04 18:18:08 +000030941/* Override any GCC internal prototype to avoid an error.
30942 Use char because int might match the return type of a GCC
30943 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030944#ifdef __cplusplus
30945extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030946#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030947char $ac_func ();
30948/* The GNU C library defines this for functions which it implements
30949 to always fail with ENOSYS. Some functions are actually named
30950 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030951#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030952choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030953#endif
John Criswell7a73b802003-06-30 21:59:07 +000030954
John Criswell7a73b802003-06-30 21:59:07 +000030955int
30956main ()
30957{
Reid Spencera773bd52006-08-04 18:18:08 +000030958return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030959 ;
30960 return 0;
30961}
30962_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030963rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030964if { (ac_try="$ac_link"
30965case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30968esac
30969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030972 grep -v '^ *+' conftest.er1 >conftest.err
30973 rm -f conftest.er1
30974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30981esac
30982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030987 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030988 { (case "(($ac_try" in
30989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990 *) ac_try_echo=$ac_try;;
30991esac
30992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030997 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030998else
30999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031000sed 's/^/| /' conftest.$ac_ext >&5
31001
Reid Spencera773bd52006-08-04 18:18:08 +000031002 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031003fi
Reid Spencera773bd52006-08-04 18:18:08 +000031004
31005rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031006 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031007fi
Reid Spencera773bd52006-08-04 18:18:08 +000031008ac_res=`eval echo '${'$as_ac_var'}'`
31009 { echo "$as_me:$LINENO: result: $ac_res" >&5
31010echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031011if test `eval echo '${'$as_ac_var'}'` = yes; then
31012 cat >>confdefs.h <<_ACEOF
31013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031014_ACEOF
31015
31016fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031017done
John Criswell7a73b802003-06-30 21:59:07 +000031018
Reid Spencercdb08a32006-06-05 16:11:07 +000031019
31020
31021
31022
Reid Spencerafa22e22006-12-10 23:29:19 +000031023for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031024do
31025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031026{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31028if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031029 echo $ECHO_N "(cached) $ECHO_C" >&6
31030else
31031 cat >conftest.$ac_ext <<_ACEOF
31032/* confdefs.h. */
31033_ACEOF
31034cat confdefs.h >>conftest.$ac_ext
31035cat >>conftest.$ac_ext <<_ACEOF
31036/* end confdefs.h. */
31037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31039#define $ac_func innocuous_$ac_func
31040
31041/* System header to define __stub macros and hopefully few prototypes,
31042 which can conflict with char $ac_func (); below.
31043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31044 <limits.h> exists even on freestanding compilers. */
31045
31046#ifdef __STDC__
31047# include <limits.h>
31048#else
31049# include <assert.h>
31050#endif
31051
31052#undef $ac_func
31053
Reid Spencera773bd52006-08-04 18:18:08 +000031054/* Override any GCC internal prototype to avoid an error.
31055 Use char because int might match the return type of a GCC
31056 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031057#ifdef __cplusplus
31058extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031059#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031060char $ac_func ();
31061/* The GNU C library defines this for functions which it implements
31062 to always fail with ENOSYS. Some functions are actually named
31063 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031064#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031065choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031066#endif
31067
31068int
31069main ()
31070{
Reid Spencera773bd52006-08-04 18:18:08 +000031071return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031072 ;
31073 return 0;
31074}
31075_ACEOF
31076rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031077if { (ac_try="$ac_link"
31078case "(($ac_try" in
31079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080 *) ac_try_echo=$ac_try;;
31081esac
31082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031084 ac_status=$?
31085 grep -v '^ *+' conftest.er1 >conftest.err
31086 rm -f conftest.er1
31087 cat conftest.err >&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31094esac
31095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031101 { (case "(($ac_try" in
31102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31104esac
31105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031107 ac_status=$?
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; }; then
31110 eval "$as_ac_var=yes"
31111else
31112 echo "$as_me: failed program was:" >&5
31113sed 's/^/| /' conftest.$ac_ext >&5
31114
Reid Spencera773bd52006-08-04 18:18:08 +000031115 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031116fi
Reid Spencera773bd52006-08-04 18:18:08 +000031117
31118rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031119 conftest$ac_exeext conftest.$ac_ext
31120fi
Reid Spencera773bd52006-08-04 18:18:08 +000031121ac_res=`eval echo '${'$as_ac_var'}'`
31122 { echo "$as_me:$LINENO: result: $ac_res" >&5
31123echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031124if test `eval echo '${'$as_ac_var'}'` = yes; then
31125 cat >>confdefs.h <<_ACEOF
31126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31127_ACEOF
31128
31129fi
31130done
31131
Reid Spencera773bd52006-08-04 18:18:08 +000031132{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31133echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031134if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031135 echo $ECHO_N "(cached) $ECHO_C" >&6
31136else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031137 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031138ac_cpp='$CPP $CPPFLAGS'
31139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31141ac_compiler_gnu=$ac_cv_c_compiler_gnu
31142
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031143 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031144 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031145else
31146 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031147
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031148 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031149_ACEOF
31150cat confdefs.h >>conftest.$ac_ext
31151cat >>conftest.$ac_ext <<_ACEOF
31152/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031153
John Criswella0137d32003-10-13 16:22:01 +000031154#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031155#include <stdlib.h>
31156
John Criswella0137d32003-10-13 16:22:01 +000031157int
31158main ()
31159{
31160
Reid Spencer2706f8c2004-09-19 23:53:36 +000031161volatile double A, B;
31162char Buffer[100];
31163A = 1;
31164A /= 10.0;
31165sprintf(Buffer, "%a", A);
31166B = atof(Buffer);
31167if (A != B)
31168 return (1);
31169if (A != 0x1.999999999999ap-4)
31170 return (1);
31171return (0);
John Criswella0137d32003-10-13 16:22:01 +000031172 ;
31173 return 0;
31174}
31175_ACEOF
31176rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031177if { (ac_try="$ac_link"
31178case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181esac
31182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031184 ac_status=$?
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31190esac
31191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031196 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031197else
31198 echo "$as_me: program exited with status $ac_status" >&5
31199echo "$as_me: failed program was:" >&5
31200sed 's/^/| /' conftest.$ac_ext >&5
31201
31202( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031203llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031204fi
Reid Spencera773bd52006-08-04 18:18:08 +000031205rm -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 +000031206fi
Reid Spencera773bd52006-08-04 18:18:08 +000031207
31208
Reid Spencer2706f8c2004-09-19 23:53:36 +000031209 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031210ac_cpp='$CPP $CPPFLAGS'
31211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213ac_compiler_gnu=$ac_cv_c_compiler_gnu
31214
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215fi
Reid Spencera773bd52006-08-04 18:18:08 +000031216{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31217echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031218 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031219
31220cat >>confdefs.h <<\_ACEOF
31221#define HAVE_PRINTF_A 1
31222_ACEOF
31223
Reid Spencer2706f8c2004-09-19 23:53:36 +000031224 fi
John Criswella0137d32003-10-13 16:22:01 +000031225
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031226# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31227# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031228{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31229echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031230if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031231 echo $ECHO_N "(cached) $ECHO_C" >&6
31232else
John Criswell0021c312004-02-13 21:57:29 +000031233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031234/* confdefs.h. */
31235_ACEOF
31236cat confdefs.h >>conftest.$ac_ext
31237cat >>conftest.$ac_ext <<_ACEOF
31238/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031239#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031240int
31241main ()
31242{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031243char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031244 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031245 ;
31246 return 0;
31247}
31248_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031249rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031250if { (ac_try="$ac_link"
31251case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31254esac
31255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031258 grep -v '^ *+' conftest.er1 >conftest.err
31259 rm -f conftest.er1
31260 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267esac
31268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031273 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031274 { (case "(($ac_try" in
31275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276 *) ac_try_echo=$ac_try;;
31277esac
31278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031280 ac_status=$?
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031283 ac_cv_working_alloca_h=yes
31284else
31285 echo "$as_me: failed program was:" >&5
31286sed 's/^/| /' conftest.$ac_ext >&5
31287
Reid Spencera773bd52006-08-04 18:18:08 +000031288 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031289fi
Reid Spencera773bd52006-08-04 18:18:08 +000031290
31291rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292 conftest$ac_exeext conftest.$ac_ext
31293fi
Reid Spencera773bd52006-08-04 18:18:08 +000031294{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31295echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031296if test $ac_cv_working_alloca_h = yes; then
31297
31298cat >>confdefs.h <<\_ACEOF
31299#define HAVE_ALLOCA_H 1
31300_ACEOF
31301
31302fi
31303
Reid Spencera773bd52006-08-04 18:18:08 +000031304{ echo "$as_me:$LINENO: checking for alloca" >&5
31305echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306if test "${ac_cv_func_alloca_works+set}" = set; then
31307 echo $ECHO_N "(cached) $ECHO_C" >&6
31308else
31309 cat >conftest.$ac_ext <<_ACEOF
31310/* confdefs.h. */
31311_ACEOF
31312cat confdefs.h >>conftest.$ac_ext
31313cat >>conftest.$ac_ext <<_ACEOF
31314/* end confdefs.h. */
31315#ifdef __GNUC__
31316# define alloca __builtin_alloca
31317#else
31318# ifdef _MSC_VER
31319# include <malloc.h>
31320# define alloca _alloca
31321# else
31322# if HAVE_ALLOCA_H
31323# include <alloca.h>
31324# else
31325# ifdef _AIX
31326 #pragma alloca
31327# else
31328# ifndef alloca /* predefined by HP cc +Olibcalls */
31329char *alloca ();
31330# endif
31331# endif
31332# endif
31333# endif
31334#endif
31335
31336int
31337main ()
31338{
31339char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031340 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031341 ;
31342 return 0;
31343}
31344_ACEOF
31345rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031346if { (ac_try="$ac_link"
31347case "(($ac_try" in
31348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31349 *) ac_try_echo=$ac_try;;
31350esac
31351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31352 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031353 ac_status=$?
31354 grep -v '^ *+' conftest.er1 >conftest.err
31355 rm -f conftest.er1
31356 cat conftest.err >&5
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31360 { (case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31363esac
31364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; } &&
31369 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031370 { (case "(($ac_try" in
31371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372 *) ac_try_echo=$ac_try;;
31373esac
31374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031376 ac_status=$?
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 ac_cv_func_alloca_works=yes
31380else
31381 echo "$as_me: failed program was:" >&5
31382sed 's/^/| /' conftest.$ac_ext >&5
31383
Reid Spencera773bd52006-08-04 18:18:08 +000031384 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031385fi
Reid Spencera773bd52006-08-04 18:18:08 +000031386
31387rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031388 conftest$ac_exeext conftest.$ac_ext
31389fi
Reid Spencera773bd52006-08-04 18:18:08 +000031390{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31391echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392
31393if test $ac_cv_func_alloca_works = yes; then
31394
31395cat >>confdefs.h <<\_ACEOF
31396#define HAVE_ALLOCA 1
31397_ACEOF
31398
31399else
31400 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31401# that cause trouble. Some versions do not even contain alloca or
31402# contain a buggy version. If you still want to use their alloca,
31403# use ar to extract alloca.o from them instead of compiling alloca.c.
31404
Reid Spencera773bd52006-08-04 18:18:08 +000031405ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031406
31407cat >>confdefs.h <<\_ACEOF
31408#define C_ALLOCA 1
31409_ACEOF
31410
31411
Reid Spencera773bd52006-08-04 18:18:08 +000031412{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31413echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031414if test "${ac_cv_os_cray+set}" = set; then
31415 echo $ECHO_N "(cached) $ECHO_C" >&6
31416else
31417 cat >conftest.$ac_ext <<_ACEOF
31418/* confdefs.h. */
31419_ACEOF
31420cat confdefs.h >>conftest.$ac_ext
31421cat >>conftest.$ac_ext <<_ACEOF
31422/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031423#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031424webecray
31425#else
31426wenotbecray
31427#endif
31428
31429_ACEOF
31430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431 $EGREP "webecray" >/dev/null 2>&1; then
31432 ac_cv_os_cray=yes
31433else
31434 ac_cv_os_cray=no
31435fi
31436rm -f conftest*
31437
31438fi
Reid Spencera773bd52006-08-04 18:18:08 +000031439{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31440echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031441if test $ac_cv_os_cray = yes; then
31442 for ac_func in _getb67 GETB67 getb67; do
31443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031444{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031447 echo $ECHO_N "(cached) $ECHO_C" >&6
31448else
31449 cat >conftest.$ac_ext <<_ACEOF
31450/* confdefs.h. */
31451_ACEOF
31452cat confdefs.h >>conftest.$ac_ext
31453cat >>conftest.$ac_ext <<_ACEOF
31454/* end confdefs.h. */
31455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31457#define $ac_func innocuous_$ac_func
31458
31459/* System header to define __stub macros and hopefully few prototypes,
31460 which can conflict with char $ac_func (); below.
31461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31462 <limits.h> exists even on freestanding compilers. */
31463
31464#ifdef __STDC__
31465# include <limits.h>
31466#else
31467# include <assert.h>
31468#endif
31469
31470#undef $ac_func
31471
Reid Spencera773bd52006-08-04 18:18:08 +000031472/* Override any GCC internal prototype to avoid an error.
31473 Use char because int might match the return type of a GCC
31474 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031475#ifdef __cplusplus
31476extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031477#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031478char $ac_func ();
31479/* The GNU C library defines this for functions which it implements
31480 to always fail with ENOSYS. Some functions are actually named
31481 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031482#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031484#endif
31485
31486int
31487main ()
31488{
Reid Spencera773bd52006-08-04 18:18:08 +000031489return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031490 ;
31491 return 0;
31492}
31493_ACEOF
31494rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031495if { (ac_try="$ac_link"
31496case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31499esac
31500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031502 ac_status=$?
31503 grep -v '^ *+' conftest.er1 >conftest.err
31504 rm -f conftest.er1
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522esac
31523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 eval "$as_ac_var=yes"
31529else
31530 echo "$as_me: failed program was:" >&5
31531sed 's/^/| /' conftest.$ac_ext >&5
31532
Reid Spencera773bd52006-08-04 18:18:08 +000031533 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031534fi
Reid Spencera773bd52006-08-04 18:18:08 +000031535
31536rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031537 conftest$ac_exeext conftest.$ac_ext
31538fi
Reid Spencera773bd52006-08-04 18:18:08 +000031539ac_res=`eval echo '${'$as_ac_var'}'`
31540 { echo "$as_me:$LINENO: result: $ac_res" >&5
31541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031542if test `eval echo '${'$as_ac_var'}'` = yes; then
31543
31544cat >>confdefs.h <<_ACEOF
31545#define CRAY_STACKSEG_END $ac_func
31546_ACEOF
31547
31548 break
31549fi
31550
31551 done
31552fi
31553
Reid Spencera773bd52006-08-04 18:18:08 +000031554{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31555echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031556if test "${ac_cv_c_stack_direction+set}" = set; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31558else
31559 if test "$cross_compiling" = yes; then
31560 ac_cv_c_stack_direction=0
31561else
31562 cat >conftest.$ac_ext <<_ACEOF
31563/* confdefs.h. */
31564_ACEOF
31565cat confdefs.h >>conftest.$ac_ext
31566cat >>conftest.$ac_ext <<_ACEOF
31567/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031568$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031569int
31570find_stack_direction ()
31571{
31572 static char *addr = 0;
31573 auto char dummy;
31574 if (addr == 0)
31575 {
31576 addr = &dummy;
31577 return find_stack_direction ();
31578 }
John Criswell0021c312004-02-13 21:57:29 +000031579 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031580 return (&dummy > addr) ? 1 : -1;
31581}
John Criswell0021c312004-02-13 21:57:29 +000031582
John Criswell0021c312004-02-13 21:57:29 +000031583int
31584main ()
31585{
Reid Spencera773bd52006-08-04 18:18:08 +000031586 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031587}
31588_ACEOF
31589rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031590if { (ac_try="$ac_link"
31591case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31594esac
31595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031597 ac_status=$?
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031600 { (case "(($ac_try" in
31601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31602 *) ac_try_echo=$ac_try;;
31603esac
31604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31605 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031606 ac_status=$?
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031609 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031610else
31611 echo "$as_me: program exited with status $ac_status" >&5
31612echo "$as_me: failed program was:" >&5
31613sed 's/^/| /' conftest.$ac_ext >&5
31614
31615( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031616ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031617fi
Reid Spencera773bd52006-08-04 18:18:08 +000031618rm -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 +000031619fi
Reid Spencera773bd52006-08-04 18:18:08 +000031620
31621
John Criswell0021c312004-02-13 21:57:29 +000031622fi
Reid Spencera773bd52006-08-04 18:18:08 +000031623{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31624echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031625
31626cat >>confdefs.h <<_ACEOF
31627#define STACK_DIRECTION $ac_cv_c_stack_direction
31628_ACEOF
31629
31630
John Criswell0021c312004-02-13 21:57:29 +000031631fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031632
31633
Reid Spencera773bd52006-08-04 18:18:08 +000031634{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31635echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031636if test "${ac_cv_func_rand48+set}" = set; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31638else
Reid Spencera773bd52006-08-04 18:18:08 +000031639 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031640ac_cpp='$CXXCPP $CPPFLAGS'
31641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31644
31645 cat >conftest.$ac_ext <<_ACEOF
31646/* confdefs.h. */
31647_ACEOF
31648cat confdefs.h >>conftest.$ac_ext
31649cat >>conftest.$ac_ext <<_ACEOF
31650/* end confdefs.h. */
31651#include <stdlib.h>
31652int
31653main ()
31654{
31655srand48(0);lrand48();drand48();
31656 ;
31657 return 0;
31658}
31659_ACEOF
31660rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031661if { (ac_try="$ac_compile"
31662case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665esac
31666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031668 ac_status=$?
31669 grep -v '^ *+' conftest.er1 >conftest.err
31670 rm -f conftest.er1
31671 cat conftest.err >&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31678esac
31679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031681 ac_status=$?
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31688esac
31689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031691 ac_status=$?
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; }; then
31694 ac_cv_func_rand48=yes
31695else
31696 echo "$as_me: failed program was:" >&5
31697sed 's/^/| /' conftest.$ac_ext >&5
31698
Reid Spencera773bd52006-08-04 18:18:08 +000031699 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031700fi
Reid Spencera773bd52006-08-04 18:18:08 +000031701
31702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031703 ac_ext=c
31704ac_cpp='$CPP $CPPFLAGS'
31705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31707ac_compiler_gnu=$ac_cv_c_compiler_gnu
31708
31709fi
Reid Spencera773bd52006-08-04 18:18:08 +000031710{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31711echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031712
31713if test "$ac_cv_func_rand48" = "yes" ; then
31714
31715cat >>confdefs.h <<\_ACEOF
31716#define HAVE_RAND48 1
31717_ACEOF
31718
31719fi
John Criswell0021c312004-02-13 21:57:29 +000031720
31721
Reid Spencera773bd52006-08-04 18:18:08 +000031722{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31723echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031724if test "${ac_cv_cxx_namespaces+set}" = set; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31726else
Reid Spencera773bd52006-08-04 18:18:08 +000031727 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031728ac_cpp='$CXXCPP $CPPFLAGS'
31729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31732
31733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031734/* confdefs.h. */
31735_ACEOF
31736cat confdefs.h >>conftest.$ac_ext
31737cat >>conftest.$ac_ext <<_ACEOF
31738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031739namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031740int
31741main ()
31742{
31743using namespace Outer::Inner; return i;
31744 ;
31745 return 0;
31746}
31747_ACEOF
31748rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031749if { (ac_try="$ac_compile"
31750case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31753esac
31754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031757 grep -v '^ *+' conftest.er1 >conftest.err
31758 rm -f conftest.er1
31759 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31763 { (case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31766esac
31767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031769 ac_status=$?
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; } &&
31772 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031773 { (case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31776esac
31777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031779 ac_status=$?
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; }; then
31782 ac_cv_cxx_namespaces=yes
31783else
31784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031785sed 's/^/| /' conftest.$ac_ext >&5
31786
Reid Spencera773bd52006-08-04 18:18:08 +000031787 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031788fi
Reid Spencera773bd52006-08-04 18:18:08 +000031789
31790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031791 ac_ext=c
31792ac_cpp='$CPP $CPPFLAGS'
31793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31795ac_compiler_gnu=$ac_cv_c_compiler_gnu
31796
31797
31798fi
Reid Spencera773bd52006-08-04 18:18:08 +000031799{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31800echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031801if test "$ac_cv_cxx_namespaces" = yes; then
31802
31803cat >>confdefs.h <<\_ACEOF
31804#define HAVE_NAMESPACES
31805_ACEOF
31806
31807fi
31808
Reid Spencera773bd52006-08-04 18:18:08 +000031809{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31810echo $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 +000031811if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031812 echo $ECHO_N "(cached) $ECHO_C" >&6
31813else
31814
Reid Spencera773bd52006-08-04 18:18:08 +000031815 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031816ac_cpp='$CXXCPP $CPPFLAGS'
31817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31820
31821 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031822/* confdefs.h. */
31823_ACEOF
31824cat confdefs.h >>conftest.$ac_ext
31825cat >>conftest.$ac_ext <<_ACEOF
31826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031827#include <ext/hash_map>
31828#ifdef HAVE_NAMESPACES
31829using namespace std;
31830#endif
John Criswell7a73b802003-06-30 21:59:07 +000031831int
31832main ()
31833{
Brian Gaeke90583492003-11-10 03:06:28 +000031834hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031835 ;
31836 return 0;
31837}
31838_ACEOF
31839rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031840if { (ac_try="$ac_compile"
31841case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31844esac
31845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031848 grep -v '^ *+' conftest.er1 >conftest.err
31849 rm -f conftest.er1
31850 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31854 { (case "(($ac_try" in
31855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856 *) ac_try_echo=$ac_try;;
31857esac
31858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031860 ac_status=$?
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; } &&
31863 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031864 { (case "(($ac_try" in
31865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866 *) ac_try_echo=$ac_try;;
31867esac
31868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031870 ac_status=$?
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031873 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031874else
31875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031876sed 's/^/| /' conftest.$ac_ext >&5
31877
Reid Spencera773bd52006-08-04 18:18:08 +000031878 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031879fi
Reid Spencera773bd52006-08-04 18:18:08 +000031880
31881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031882 ac_ext=c
31883ac_cpp='$CPP $CPPFLAGS'
31884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31886ac_compiler_gnu=$ac_cv_c_compiler_gnu
31887
John Criswell7a73b802003-06-30 21:59:07 +000031888fi
Reid Spencera773bd52006-08-04 18:18:08 +000031889{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31890echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031891 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31892 then
John Criswell9f011862004-09-24 18:28:00 +000031893
31894cat >>confdefs.h <<\_ACEOF
31895#define HAVE_STD_EXT_HASH_MAP 1
31896_ACEOF
31897
31898 else
31899
31900cat >>confdefs.h <<\_ACEOF
31901#define HAVE_STD_EXT_HASH_MAP 0
31902_ACEOF
31903
Brian Gaeke90583492003-11-10 03:06:28 +000031904 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031905
Reid Spencera773bd52006-08-04 18:18:08 +000031906 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31907echo $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 +000031908if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31909 echo $ECHO_N "(cached) $ECHO_C" >&6
31910else
31911
Reid Spencera773bd52006-08-04 18:18:08 +000031912 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031913ac_cpp='$CXXCPP $CPPFLAGS'
31914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31917
31918 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031919/* confdefs.h. */
31920_ACEOF
31921cat confdefs.h >>conftest.$ac_ext
31922cat >>conftest.$ac_ext <<_ACEOF
31923/* end confdefs.h. */
31924#include <ext/hash_map>
31925#ifdef HAVE_NAMESPACES
31926using namespace __gnu_cxx;
31927#endif
31928int
31929main ()
31930{
31931hash_map<int,int> t;
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031937if { (ac_try="$ac_compile"
31938case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031945 grep -v '^ *+' conftest.er1 >conftest.err
31946 rm -f conftest.er1
31947 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31951 { (case "(($ac_try" in
31952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953 *) ac_try_echo=$ac_try;;
31954esac
31955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031961 { (case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31964esac
31965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031967 ac_status=$?
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); }; }; then
31970 ac_cv_cxx_have_gnu_ext_hash_map=yes
31971else
31972 echo "$as_me: failed program was:" >&5
31973sed 's/^/| /' conftest.$ac_ext >&5
31974
Reid Spencera773bd52006-08-04 18:18:08 +000031975 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031976fi
Reid Spencera773bd52006-08-04 18:18:08 +000031977
31978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031979 ac_ext=c
31980ac_cpp='$CPP $CPPFLAGS'
31981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31983ac_compiler_gnu=$ac_cv_c_compiler_gnu
31984
31985fi
Reid Spencera773bd52006-08-04 18:18:08 +000031986{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31987echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031988 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31989 then
John Criswell9f011862004-09-24 18:28:00 +000031990
31991cat >>confdefs.h <<\_ACEOF
31992#define HAVE_GNU_EXT_HASH_MAP 1
31993_ACEOF
31994
31995 else
31996
31997cat >>confdefs.h <<\_ACEOF
31998#define HAVE_GNU_EXT_HASH_MAP 0
31999_ACEOF
32000
Brian Gaeke90583492003-11-10 03:06:28 +000032001 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032002
Reid Spencera773bd52006-08-04 18:18:08 +000032003 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32004echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032005if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007else
John Criswell7a73b802003-06-30 21:59:07 +000032008
Reid Spencera773bd52006-08-04 18:18:08 +000032009 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032010ac_cpp='$CXXCPP $CPPFLAGS'
32011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32014
32015 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
32021#include <hash_map>
32022int
32023main ()
32024{
32025hash_map<int,int> t;
32026 ;
32027 return 0;
32028}
32029_ACEOF
32030rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032031if { (ac_try="$ac_compile"
32032case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32035esac
32036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032039 grep -v '^ *+' conftest.er1 >conftest.err
32040 rm -f conftest.er1
32041 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32045 { (case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32048esac
32049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } &&
32054 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032055 { (case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32058esac
32059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032061 ac_status=$?
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; }; then
32064 ac_cv_cxx_have_global_hash_map=yes
32065else
32066 echo "$as_me: failed program was:" >&5
32067sed 's/^/| /' conftest.$ac_ext >&5
32068
Reid Spencera773bd52006-08-04 18:18:08 +000032069 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032070fi
Reid Spencera773bd52006-08-04 18:18:08 +000032071
32072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032073 ac_ext=c
32074ac_cpp='$CPP $CPPFLAGS'
32075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32077ac_compiler_gnu=$ac_cv_c_compiler_gnu
32078
32079fi
Reid Spencera773bd52006-08-04 18:18:08 +000032080{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32081echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032082 if test "$ac_cv_cxx_have_global_hash_map" = yes
32083 then
John Criswell9f011862004-09-24 18:28:00 +000032084
32085cat >>confdefs.h <<\_ACEOF
32086#define HAVE_GLOBAL_HASH_MAP 1
32087_ACEOF
32088
32089 else
32090
32091cat >>confdefs.h <<\_ACEOF
32092#define HAVE_GLOBAL_HASH_MAP 0
32093_ACEOF
32094
Brian Gaeke90583492003-11-10 03:06:28 +000032095 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032096
Reid Spencera773bd52006-08-04 18:18:08 +000032097{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32098echo $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 +000032099if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032100 echo $ECHO_N "(cached) $ECHO_C" >&6
32101else
32102
Reid Spencera773bd52006-08-04 18:18:08 +000032103 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032104ac_cpp='$CXXCPP $CPPFLAGS'
32105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32108
32109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032110/* confdefs.h. */
32111_ACEOF
32112cat confdefs.h >>conftest.$ac_ext
32113cat >>conftest.$ac_ext <<_ACEOF
32114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032115#include <ext/hash_set>
32116#ifdef HAVE_NAMESPACES
32117using namespace std;
32118#endif
John Criswell7a73b802003-06-30 21:59:07 +000032119int
32120main ()
32121{
Brian Gaeke90583492003-11-10 03:06:28 +000032122hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032123 ;
32124 return 0;
32125}
32126_ACEOF
32127rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032128if { (ac_try="$ac_compile"
32129case "(($ac_try" in
32130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131 *) ac_try_echo=$ac_try;;
32132esac
32133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032135 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032136 grep -v '^ *+' conftest.er1 >conftest.err
32137 rm -f conftest.er1
32138 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145esac
32146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; } &&
32151 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032152 { (case "(($ac_try" in
32153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32154 *) ac_try_echo=$ac_try;;
32155esac
32156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32157 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032158 ac_status=$?
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032161 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032162else
32163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032164sed 's/^/| /' conftest.$ac_ext >&5
32165
Reid Spencera773bd52006-08-04 18:18:08 +000032166 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032167fi
Reid Spencera773bd52006-08-04 18:18:08 +000032168
32169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032170 ac_ext=c
32171ac_cpp='$CPP $CPPFLAGS'
32172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174ac_compiler_gnu=$ac_cv_c_compiler_gnu
32175
32176fi
Reid Spencera773bd52006-08-04 18:18:08 +000032177{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32178echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032179 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32180 then
John Criswell9f011862004-09-24 18:28:00 +000032181
32182cat >>confdefs.h <<\_ACEOF
32183#define HAVE_STD_EXT_HASH_SET 1
32184_ACEOF
32185
32186 else
32187
32188cat >>confdefs.h <<\_ACEOF
32189#define HAVE_STD_EXT_HASH_SET 0
32190_ACEOF
32191
Brian Gaeke90583492003-11-10 03:06:28 +000032192 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032193
Reid Spencera773bd52006-08-04 18:18:08 +000032194 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32195echo $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 +000032196if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32197 echo $ECHO_N "(cached) $ECHO_C" >&6
32198else
32199
Reid Spencera773bd52006-08-04 18:18:08 +000032200 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032201ac_cpp='$CXXCPP $CPPFLAGS'
32202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32205
John Criswell7a73b802003-06-30 21:59:07 +000032206 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032207/* confdefs.h. */
32208_ACEOF
32209cat confdefs.h >>conftest.$ac_ext
32210cat >>conftest.$ac_ext <<_ACEOF
32211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032212#include <ext/hash_set>
32213#ifdef HAVE_NAMESPACES
32214using namespace __gnu_cxx;
32215#endif
John Criswell7a73b802003-06-30 21:59:07 +000032216int
32217main ()
32218{
Brian Gaeke90583492003-11-10 03:06:28 +000032219hash_set<int> t;
32220 ;
32221 return 0;
32222}
32223_ACEOF
32224rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032225if { (ac_try="$ac_compile"
32226case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32229esac
32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032233 grep -v '^ *+' conftest.er1 >conftest.err
32234 rm -f conftest.er1
32235 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32239 { (case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32242esac
32243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32252esac
32253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; }; then
32258 ac_cv_cxx_have_gnu_ext_hash_set=yes
32259else
32260 echo "$as_me: failed program was:" >&5
32261sed 's/^/| /' conftest.$ac_ext >&5
32262
Reid Spencera773bd52006-08-04 18:18:08 +000032263 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032264fi
Reid Spencera773bd52006-08-04 18:18:08 +000032265
32266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032267 ac_ext=c
32268ac_cpp='$CPP $CPPFLAGS'
32269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32271ac_compiler_gnu=$ac_cv_c_compiler_gnu
32272
32273fi
Reid Spencera773bd52006-08-04 18:18:08 +000032274{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32275echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032276 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32277 then
John Criswell9f011862004-09-24 18:28:00 +000032278
32279cat >>confdefs.h <<\_ACEOF
32280#define HAVE_GNU_EXT_HASH_SET 1
32281_ACEOF
32282
32283 else
32284
32285cat >>confdefs.h <<\_ACEOF
32286#define HAVE_GNU_EXT_HASH_SET 0
32287_ACEOF
32288
Brian Gaeke90583492003-11-10 03:06:28 +000032289 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032290
Reid Spencera773bd52006-08-04 18:18:08 +000032291 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32292echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032293if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32294 echo $ECHO_N "(cached) $ECHO_C" >&6
32295else
32296
Reid Spencera773bd52006-08-04 18:18:08 +000032297 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032298ac_cpp='$CXXCPP $CPPFLAGS'
32299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32302
32303 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032304/* confdefs.h. */
32305_ACEOF
32306cat confdefs.h >>conftest.$ac_ext
32307cat >>conftest.$ac_ext <<_ACEOF
32308/* end confdefs.h. */
32309#include <hash_set>
32310int
32311main ()
32312{
John Criswell7a73b802003-06-30 21:59:07 +000032313hash_set<int> t; return 0;
32314 ;
32315 return 0;
32316}
32317_ACEOF
32318rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032319if { (ac_try="$ac_compile"
32320case "(($ac_try" in
32321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322 *) ac_try_echo=$ac_try;;
32323esac
32324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032327 grep -v '^ *+' conftest.er1 >conftest.err
32328 rm -f conftest.er1
32329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32336esac
32337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; } &&
32342 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032343 { (case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32346esac
32347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032349 ac_status=$?
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032352 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032353else
32354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032355sed 's/^/| /' conftest.$ac_ext >&5
32356
Reid Spencera773bd52006-08-04 18:18:08 +000032357 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032358fi
Reid Spencera773bd52006-08-04 18:18:08 +000032359
32360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032361 ac_ext=c
32362ac_cpp='$CPP $CPPFLAGS'
32363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365ac_compiler_gnu=$ac_cv_c_compiler_gnu
32366
John Criswell7a73b802003-06-30 21:59:07 +000032367fi
Reid Spencera773bd52006-08-04 18:18:08 +000032368{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32369echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032370 if test "$ac_cv_cxx_have_global_hash_set" = yes
32371 then
John Criswell9f011862004-09-24 18:28:00 +000032372
32373cat >>confdefs.h <<\_ACEOF
32374#define HAVE_GLOBAL_HASH_SET 1
32375_ACEOF
32376
32377 else
32378
32379cat >>confdefs.h <<\_ACEOF
32380#define HAVE_GLOBAL_HASH_SET 0
32381_ACEOF
32382
Brian Gaeke90583492003-11-10 03:06:28 +000032383 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032384
Reid Spencera773bd52006-08-04 18:18:08 +000032385{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32386echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032387if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32388 echo $ECHO_N "(cached) $ECHO_C" >&6
32389else
32390
Reid Spencera773bd52006-08-04 18:18:08 +000032391 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032392ac_cpp='$CXXCPP $CPPFLAGS'
32393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32396
32397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032398/* confdefs.h. */
32399_ACEOF
32400cat confdefs.h >>conftest.$ac_ext
32401cat >>conftest.$ac_ext <<_ACEOF
32402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032403#include <iterator>
32404#ifdef HAVE_NAMESPACES
32405using namespace std;
32406#endif
John Criswell7a73b802003-06-30 21:59:07 +000032407int
32408main ()
32409{
32410iterator<int,int,int> t; return 0;
32411 ;
32412 return 0;
32413}
32414_ACEOF
32415rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032416if { (ac_try="$ac_compile"
32417case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32420esac
32421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032424 grep -v '^ *+' conftest.er1 >conftest.err
32425 rm -f conftest.er1
32426 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32430 { (case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32433esac
32434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32443esac
32444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449 ac_cv_cxx_have_std_iterator=yes
32450else
32451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032452sed 's/^/| /' conftest.$ac_ext >&5
32453
Reid Spencera773bd52006-08-04 18:18:08 +000032454 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032455fi
Reid Spencera773bd52006-08-04 18:18:08 +000032456
32457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032458 ac_ext=c
32459ac_cpp='$CPP $CPPFLAGS'
32460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32462ac_compiler_gnu=$ac_cv_c_compiler_gnu
32463
32464
32465fi
Reid Spencera773bd52006-08-04 18:18:08 +000032466{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32467echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032468if test "$ac_cv_cxx_have_std_iterator" = yes
32469then
John Criswell40468462004-09-24 21:19:06 +000032470
32471cat >>confdefs.h <<\_ACEOF
32472#define HAVE_STD_ITERATOR 1
32473_ACEOF
32474
32475else
32476
32477cat >>confdefs.h <<\_ACEOF
32478#define HAVE_STD_ITERATOR 0
32479_ACEOF
32480
John Criswell7a73b802003-06-30 21:59:07 +000032481fi
32482
Reid Spencera773bd52006-08-04 18:18:08 +000032483{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32484echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032485if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32487else
32488
Reid Spencera773bd52006-08-04 18:18:08 +000032489 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032490ac_cpp='$CXXCPP $CPPFLAGS'
32491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32494
32495 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032496/* confdefs.h. */
32497_ACEOF
32498cat confdefs.h >>conftest.$ac_ext
32499cat >>conftest.$ac_ext <<_ACEOF
32500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032501#include <iterator>
32502#ifdef HAVE_NAMESPACES
32503using namespace std;
32504#endif
John Criswell7a73b802003-06-30 21:59:07 +000032505int
32506main ()
32507{
John Criswellc78022e2003-07-29 19:11:58 +000032508bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032509 ;
32510 return 0;
32511}
32512_ACEOF
32513rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032514if { (ac_try="$ac_compile"
32515case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518esac
32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32541esac
32542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 ac_cv_cxx_have_bi_iterator=yes
32548else
32549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032550sed 's/^/| /' conftest.$ac_ext >&5
32551
Reid Spencera773bd52006-08-04 18:18:08 +000032552 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032553fi
Reid Spencera773bd52006-08-04 18:18:08 +000032554
32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032556 ac_ext=c
32557ac_cpp='$CPP $CPPFLAGS'
32558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562
32563fi
Reid Spencera773bd52006-08-04 18:18:08 +000032564{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32565echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032566if test "$ac_cv_cxx_have_bi_iterator" = yes
32567then
John Criswell40468462004-09-24 21:19:06 +000032568
32569cat >>confdefs.h <<\_ACEOF
32570#define HAVE_BI_ITERATOR 1
32571_ACEOF
32572
32573else
32574
32575cat >>confdefs.h <<\_ACEOF
32576#define HAVE_BI_ITERATOR 0
32577_ACEOF
32578
John Criswell7a73b802003-06-30 21:59:07 +000032579fi
32580
Reid Spencera773bd52006-08-04 18:18:08 +000032581{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32582echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032583if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32585else
32586
Reid Spencera773bd52006-08-04 18:18:08 +000032587 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032588ac_cpp='$CXXCPP $CPPFLAGS'
32589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592
32593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032594/* confdefs.h. */
32595_ACEOF
32596cat confdefs.h >>conftest.$ac_ext
32597cat >>conftest.$ac_ext <<_ACEOF
32598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032599#include <iterator>
32600#ifdef HAVE_NAMESPACES
32601using namespace std;
32602#endif
John Criswell7a73b802003-06-30 21:59:07 +000032603int
32604main ()
32605{
John Criswellc78022e2003-07-29 19:11:58 +000032606forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032607 ;
32608 return 0;
32609}
32610_ACEOF
32611rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032612if { (ac_try="$ac_compile"
32613case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32616esac
32617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032620 grep -v '^ *+' conftest.er1 >conftest.err
32621 rm -f conftest.er1
32622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32626 { (case "(($ac_try" in
32627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628 *) ac_try_echo=$ac_try;;
32629esac
32630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032632 ac_status=$?
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; } &&
32635 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032636 { (case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639esac
32640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032642 ac_status=$?
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
32645 ac_cv_cxx_have_fwd_iterator=yes
32646else
32647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032648sed 's/^/| /' conftest.$ac_ext >&5
32649
Reid Spencera773bd52006-08-04 18:18:08 +000032650 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032651fi
Reid Spencera773bd52006-08-04 18:18:08 +000032652
32653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032654 ac_ext=c
32655ac_cpp='$CPP $CPPFLAGS'
32656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658ac_compiler_gnu=$ac_cv_c_compiler_gnu
32659
32660
32661fi
Reid Spencera773bd52006-08-04 18:18:08 +000032662{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32663echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032664if test "$ac_cv_cxx_have_fwd_iterator" = yes
32665then
John Criswell40468462004-09-24 21:19:06 +000032666
32667cat >>confdefs.h <<\_ACEOF
32668#define HAVE_FWD_ITERATOR 1
32669_ACEOF
32670
32671else
32672
32673cat >>confdefs.h <<\_ACEOF
32674#define HAVE_FWD_ITERATOR 0
32675_ACEOF
32676
John Criswell7a73b802003-06-30 21:59:07 +000032677fi
32678
32679
Reid Spencera773bd52006-08-04 18:18:08 +000032680{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32681echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032682if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32683 echo $ECHO_N "(cached) $ECHO_C" >&6
32684else
Reid Spencera773bd52006-08-04 18:18:08 +000032685 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032686ac_cpp='$CXXCPP $CPPFLAGS'
32687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32690
Reid Spencerabec8f92004-10-27 23:03:44 +000032691 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032692/* confdefs.h. */
32693_ACEOF
32694cat confdefs.h >>conftest.$ac_ext
32695cat >>conftest.$ac_ext <<_ACEOF
32696/* end confdefs.h. */
32697#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032698int
32699main ()
32700{
32701float f; isnan(f);
32702 ;
32703 return 0;
32704}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032705_ACEOF
32706rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032707if { (ac_try="$ac_compile"
32708case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32711esac
32712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032715 grep -v '^ *+' conftest.er1 >conftest.err
32716 rm -f conftest.er1
32717 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32724esac
32725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; } &&
32730 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032731 { (case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32734esac
32735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ac_cv_func_isnan_in_math_h=yes
32741else
32742 echo "$as_me: failed program was:" >&5
32743sed 's/^/| /' conftest.$ac_ext >&5
32744
Reid Spencera773bd52006-08-04 18:18:08 +000032745 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032746fi
Reid Spencera773bd52006-08-04 18:18:08 +000032747
32748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032749 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032750ac_cpp='$CPP $CPPFLAGS'
32751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32753ac_compiler_gnu=$ac_cv_c_compiler_gnu
32754
32755fi
Reid Spencera773bd52006-08-04 18:18:08 +000032756{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32757echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032758
32759
32760if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032761
32762cat >>confdefs.h <<\_ACEOF
32763#define HAVE_ISNAN_IN_MATH_H 1
32764_ACEOF
32765
Reid Spencerabec8f92004-10-27 23:03:44 +000032766fi
32767
Reid Spencera773bd52006-08-04 18:18:08 +000032768{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32769echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032770if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32771 echo $ECHO_N "(cached) $ECHO_C" >&6
32772else
Reid Spencera773bd52006-08-04 18:18:08 +000032773 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032774ac_cpp='$CXXCPP $CPPFLAGS'
32775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32778
Reid Spencerabec8f92004-10-27 23:03:44 +000032779 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032780/* confdefs.h. */
32781_ACEOF
32782cat confdefs.h >>conftest.$ac_ext
32783cat >>conftest.$ac_ext <<_ACEOF
32784/* end confdefs.h. */
32785#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032786int
32787main ()
32788{
32789float f; isnan(f);
32790 ;
32791 return 0;
32792}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032793_ACEOF
32794rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032795if { (ac_try="$ac_compile"
32796case "(($ac_try" in
32797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798 *) ac_try_echo=$ac_try;;
32799esac
32800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032803 grep -v '^ *+' conftest.er1 >conftest.err
32804 rm -f conftest.er1
32805 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32809 { (case "(($ac_try" in
32810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811 *) ac_try_echo=$ac_try;;
32812esac
32813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032815 ac_status=$?
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; } &&
32818 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32822esac
32823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; }; then
32828 ac_cv_func_isnan_in_cmath=yes
32829else
32830 echo "$as_me: failed program was:" >&5
32831sed 's/^/| /' conftest.$ac_ext >&5
32832
Reid Spencera773bd52006-08-04 18:18:08 +000032833 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032834fi
Reid Spencera773bd52006-08-04 18:18:08 +000032835
32836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032837 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032838ac_cpp='$CPP $CPPFLAGS'
32839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32841ac_compiler_gnu=$ac_cv_c_compiler_gnu
32842
32843fi
Reid Spencera773bd52006-08-04 18:18:08 +000032844{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32845echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032846
32847if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032848
32849cat >>confdefs.h <<\_ACEOF
32850#define HAVE_ISNAN_IN_CMATH 1
32851_ACEOF
32852
Reid Spencerabec8f92004-10-27 23:03:44 +000032853fi
32854
Reid Spencera773bd52006-08-04 18:18:08 +000032855{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32856echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032857if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32859else
Reid Spencera773bd52006-08-04 18:18:08 +000032860 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032861ac_cpp='$CXXCPP $CPPFLAGS'
32862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32865
Reid Spencerabec8f92004-10-27 23:03:44 +000032866 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032867/* confdefs.h. */
32868_ACEOF
32869cat confdefs.h >>conftest.$ac_ext
32870cat >>conftest.$ac_ext <<_ACEOF
32871/* end confdefs.h. */
32872#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032873int
32874main ()
32875{
32876float f; std::isnan(f);
32877 ;
32878 return 0;
32879}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032880_ACEOF
32881rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032882if { (ac_try="$ac_compile"
32883case "(($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_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032890 grep -v '^ *+' conftest.er1 >conftest.err
32891 rm -f conftest.er1
32892 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899esac
32900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; } &&
32905 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032906 { (case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32909esac
32910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 ac_cv_func_std_isnan_in_cmath=yes
32916else
32917 echo "$as_me: failed program was:" >&5
32918sed 's/^/| /' conftest.$ac_ext >&5
32919
Reid Spencera773bd52006-08-04 18:18:08 +000032920 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032921fi
Reid Spencera773bd52006-08-04 18:18:08 +000032922
32923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032924 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032925ac_cpp='$CPP $CPPFLAGS'
32926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928ac_compiler_gnu=$ac_cv_c_compiler_gnu
32929
32930fi
Reid Spencera773bd52006-08-04 18:18:08 +000032931{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32932echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032933
32934if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032935
32936cat >>confdefs.h <<\_ACEOF
32937#define HAVE_STD_ISNAN_IN_CMATH 1
32938_ACEOF
32939
Reid Spencerabec8f92004-10-27 23:03:44 +000032940fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032941
32942
Reid Spencera773bd52006-08-04 18:18:08 +000032943{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32944echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032945if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32947else
Reid Spencera773bd52006-08-04 18:18:08 +000032948 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032949ac_cpp='$CXXCPP $CPPFLAGS'
32950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32953
Reid Spencerabec8f92004-10-27 23:03:44 +000032954 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032955/* confdefs.h. */
32956_ACEOF
32957cat confdefs.h >>conftest.$ac_ext
32958cat >>conftest.$ac_ext <<_ACEOF
32959/* end confdefs.h. */
32960#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032961int
32962main ()
32963{
32964float f; isinf(f);
32965 ;
32966 return 0;
32967}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032968_ACEOF
32969rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032970if { (ac_try="$ac_compile"
32971case "(($ac_try" in
32972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973 *) ac_try_echo=$ac_try;;
32974esac
32975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32976 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032978 grep -v '^ *+' conftest.er1 >conftest.err
32979 rm -f conftest.er1
32980 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32984 { (case "(($ac_try" in
32985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986 *) ac_try_echo=$ac_try;;
32987esac
32988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032990 ac_status=$?
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; } &&
32993 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32997esac
32998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033000 ac_status=$?
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; }; then
33003 ac_cv_func_isinf_in_math_h=yes
33004else
33005 echo "$as_me: failed program was:" >&5
33006sed 's/^/| /' conftest.$ac_ext >&5
33007
Reid Spencera773bd52006-08-04 18:18:08 +000033008 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033009fi
Reid Spencera773bd52006-08-04 18:18:08 +000033010
33011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033012 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033013ac_cpp='$CPP $CPPFLAGS'
33014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33016ac_compiler_gnu=$ac_cv_c_compiler_gnu
33017
33018fi
Reid Spencera773bd52006-08-04 18:18:08 +000033019{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33020echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033021
33022if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033023
33024cat >>confdefs.h <<\_ACEOF
33025#define HAVE_ISINF_IN_MATH_H 1
33026_ACEOF
33027
Reid Spencerabec8f92004-10-27 23:03:44 +000033028fi
33029
Reid Spencera773bd52006-08-04 18:18:08 +000033030{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33031echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033032if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33033 echo $ECHO_N "(cached) $ECHO_C" >&6
33034else
Reid Spencera773bd52006-08-04 18:18:08 +000033035 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033036ac_cpp='$CXXCPP $CPPFLAGS'
33037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33040
Reid Spencerabec8f92004-10-27 23:03:44 +000033041 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033042/* confdefs.h. */
33043_ACEOF
33044cat confdefs.h >>conftest.$ac_ext
33045cat >>conftest.$ac_ext <<_ACEOF
33046/* end confdefs.h. */
33047#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033048int
33049main ()
33050{
33051float f; isinf(f);
33052 ;
33053 return 0;
33054}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033055_ACEOF
33056rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033057if { (ac_try="$ac_compile"
33058case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33061esac
33062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074esac
33075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33084esac
33085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033087 ac_status=$?
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 ac_cv_func_isinf_in_cmath=yes
33091else
33092 echo "$as_me: failed program was:" >&5
33093sed 's/^/| /' conftest.$ac_ext >&5
33094
Reid Spencera773bd52006-08-04 18:18:08 +000033095 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033096fi
Reid Spencera773bd52006-08-04 18:18:08 +000033097
33098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033099 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033100ac_cpp='$CPP $CPPFLAGS'
33101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103ac_compiler_gnu=$ac_cv_c_compiler_gnu
33104
33105fi
Reid Spencera773bd52006-08-04 18:18:08 +000033106{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33107echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033108
33109if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033110
33111cat >>confdefs.h <<\_ACEOF
33112#define HAVE_ISINF_IN_CMATH 1
33113_ACEOF
33114
Reid Spencerabec8f92004-10-27 23:03:44 +000033115fi
33116
Reid Spencera773bd52006-08-04 18:18:08 +000033117{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33118echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033119if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121else
Reid Spencera773bd52006-08-04 18:18:08 +000033122 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033123ac_cpp='$CXXCPP $CPPFLAGS'
33124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33127
Reid Spencerabec8f92004-10-27 23:03:44 +000033128 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
33134#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033135int
33136main ()
33137{
33138float f; std::isinf(f)}
33139 ;
33140 return 0;
33141}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033142_ACEOF
33143rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033144if { (ac_try="$ac_compile"
33145case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33148esac
33149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; } &&
33167 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171esac
33172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; }; then
33177 ac_cv_func_std_isinf_in_cmath=yes
33178else
33179 echo "$as_me: failed program was:" >&5
33180sed 's/^/| /' conftest.$ac_ext >&5
33181
Reid Spencera773bd52006-08-04 18:18:08 +000033182 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033183fi
Reid Spencera773bd52006-08-04 18:18:08 +000033184
33185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033186 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033187ac_cpp='$CPP $CPPFLAGS'
33188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33190ac_compiler_gnu=$ac_cv_c_compiler_gnu
33191
33192fi
Reid Spencera773bd52006-08-04 18:18:08 +000033193{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33194echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033195
33196if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033197
33198cat >>confdefs.h <<\_ACEOF
33199#define HAVE_STD_ISINF_IN_CMATH 1
33200_ACEOF
33201
Reid Spencerabec8f92004-10-27 23:03:44 +000033202fi
33203
Reid Spencera773bd52006-08-04 18:18:08 +000033204{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33205echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033206if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33207 echo $ECHO_N "(cached) $ECHO_C" >&6
33208else
Reid Spencera773bd52006-08-04 18:18:08 +000033209 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033210ac_cpp='$CXXCPP $CPPFLAGS'
33211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33214
Reid Spencerabec8f92004-10-27 23:03:44 +000033215 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033216/* confdefs.h. */
33217_ACEOF
33218cat confdefs.h >>conftest.$ac_ext
33219cat >>conftest.$ac_ext <<_ACEOF
33220/* end confdefs.h. */
33221#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033222int
33223main ()
33224{
33225float f; finite(f);
33226 ;
33227 return 0;
33228}
Brian Gaeked59a6472004-07-21 03:33:58 +000033229_ACEOF
33230rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033231if { (ac_try="$ac_compile"
33232case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33235esac
33236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033239 grep -v '^ *+' conftest.er1 >conftest.err
33240 rm -f conftest.er1
33241 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33248esac
33249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; } &&
33254 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033255 { (case "(($ac_try" in
33256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33257 *) ac_try_echo=$ac_try;;
33258esac
33259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 ac_cv_func_finite_in_ieeefp_h=yes
33265else
33266 echo "$as_me: failed program was:" >&5
33267sed 's/^/| /' conftest.$ac_ext >&5
33268
Reid Spencera773bd52006-08-04 18:18:08 +000033269 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033270fi
Reid Spencera773bd52006-08-04 18:18:08 +000033271
33272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033273 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033274ac_cpp='$CPP $CPPFLAGS'
33275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33277ac_compiler_gnu=$ac_cv_c_compiler_gnu
33278
33279fi
Reid Spencera773bd52006-08-04 18:18:08 +000033280{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33281echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033282
Brian Gaeke6802b552004-10-28 05:06:45 +000033283if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033284
33285cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033286#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033287_ACEOF
33288
Reid Spencerabec8f92004-10-27 23:03:44 +000033289fi
33290
33291
33292
Reid Spencer30fe5262007-01-20 07:48:49 +000033293if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033294
33295
33296for ac_header in stdlib.h unistd.h
33297do
33298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033303 echo $ECHO_N "(cached) $ECHO_C" >&6
33304fi
Reid Spencera773bd52006-08-04 18:18:08 +000033305ac_res=`eval echo '${'$as_ac_Header'}'`
33306 { echo "$as_me:$LINENO: result: $ac_res" >&5
33307echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033308else
33309 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033310{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033312cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033313/* confdefs.h. */
33314_ACEOF
33315cat confdefs.h >>conftest.$ac_ext
33316cat >>conftest.$ac_ext <<_ACEOF
33317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033318$ac_includes_default
33319#include <$ac_header>
33320_ACEOF
33321rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033322if { (ac_try="$ac_compile"
33323case "(($ac_try" in
33324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33325 *) ac_try_echo=$ac_try;;
33326esac
33327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33328 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033330 grep -v '^ *+' conftest.er1 >conftest.err
33331 rm -f conftest.er1
33332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33336 { (case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33339esac
33340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; } &&
33345 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033346 { (case "(($ac_try" in
33347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348 *) ac_try_echo=$ac_try;;
33349esac
33350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033352 ac_status=$?
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); }; }; then
33355 ac_header_compiler=yes
33356else
33357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033358sed 's/^/| /' conftest.$ac_ext >&5
33359
Reid Spencera773bd52006-08-04 18:18:08 +000033360 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033361fi
Reid Spencera773bd52006-08-04 18:18:08 +000033362
33363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33365echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033366
33367# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033368{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033370cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033371/* confdefs.h. */
33372_ACEOF
33373cat confdefs.h >>conftest.$ac_ext
33374cat >>conftest.$ac_ext <<_ACEOF
33375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033376#include <$ac_header>
33377_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033378if { (ac_try="$ac_cpp conftest.$ac_ext"
33379case "(($ac_try" in
33380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381 *) ac_try_echo=$ac_try;;
33382esac
33383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033385 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033386 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033387 rm -f conftest.er1
33388 cat conftest.err >&5
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); } >/dev/null; then
33391 if test -s conftest.err; then
33392 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000033393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000033394 else
33395 ac_cpp_err=
33396 fi
33397else
33398 ac_cpp_err=yes
33399fi
33400if test -z "$ac_cpp_err"; then
33401 ac_header_preproc=yes
33402else
33403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033404sed 's/^/| /' conftest.$ac_ext >&5
33405
John Criswell7a73b802003-06-30 21:59:07 +000033406 ac_header_preproc=no
33407fi
Reid Spencera773bd52006-08-04 18:18:08 +000033408
John Criswell7a73b802003-06-30 21:59:07 +000033409rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033410{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33411echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033412
33413# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33415 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33420 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033421 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033422 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033435 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033436## ----------------------------------- ##
33437## Report this to llvmbugs@cs.uiuc.edu ##
33438## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033439_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033440 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033441 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033442esac
Reid Spencera773bd52006-08-04 18:18:08 +000033443{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033446 echo $ECHO_N "(cached) $ECHO_C" >&6
33447else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033448 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033449fi
Reid Spencera773bd52006-08-04 18:18:08 +000033450ac_res=`eval echo '${'$as_ac_Header'}'`
33451 { echo "$as_me:$LINENO: result: $ac_res" >&5
33452echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033453
33454fi
33455if test `eval echo '${'$as_ac_Header'}'` = yes; then
33456 cat >>confdefs.h <<_ACEOF
33457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33458_ACEOF
33459
33460fi
33461
33462done
33463
33464
33465for ac_func in getpagesize
33466do
33467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472else
33473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033474/* confdefs.h. */
33475_ACEOF
33476cat confdefs.h >>conftest.$ac_ext
33477cat >>conftest.$ac_ext <<_ACEOF
33478/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33481#define $ac_func innocuous_$ac_func
33482
John Criswell7a73b802003-06-30 21:59:07 +000033483/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033484 which can conflict with char $ac_func (); below.
33485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033487
John Criswell0c38eaf2003-09-10 15:17:25 +000033488#ifdef __STDC__
33489# include <limits.h>
33490#else
33491# include <assert.h>
33492#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033493
33494#undef $ac_func
33495
Reid Spencera773bd52006-08-04 18:18:08 +000033496/* Override any GCC internal prototype to avoid an error.
33497 Use char because int might match the return type of a GCC
33498 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033499#ifdef __cplusplus
33500extern "C"
33501#endif
John Criswell7a73b802003-06-30 21:59:07 +000033502char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033503/* The GNU C library defines this for functions which it implements
33504 to always fail with ENOSYS. Some functions are actually named
33505 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033506#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033507choke me
John Criswell7a73b802003-06-30 21:59:07 +000033508#endif
33509
John Criswell0c38eaf2003-09-10 15:17:25 +000033510int
33511main ()
33512{
Reid Spencera773bd52006-08-04 18:18:08 +000033513return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033514 ;
33515 return 0;
33516}
33517_ACEOF
33518rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033519if { (ac_try="$ac_link"
33520case "(($ac_try" in
33521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522 *) ac_try_echo=$ac_try;;
33523esac
33524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033527 grep -v '^ *+' conftest.er1 >conftest.err
33528 rm -f conftest.er1
33529 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33533 { (case "(($ac_try" in
33534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535 *) ac_try_echo=$ac_try;;
33536esac
33537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033539 ac_status=$?
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; } &&
33542 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33546esac
33547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 eval "$as_ac_var=yes"
33553else
33554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033555sed 's/^/| /' conftest.$ac_ext >&5
33556
Reid Spencera773bd52006-08-04 18:18:08 +000033557 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033558fi
Reid Spencera773bd52006-08-04 18:18:08 +000033559
33560rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033561 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033562fi
Reid Spencera773bd52006-08-04 18:18:08 +000033563ac_res=`eval echo '${'$as_ac_var'}'`
33564 { echo "$as_me:$LINENO: result: $ac_res" >&5
33565echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033566if test `eval echo '${'$as_ac_var'}'` = yes; then
33567 cat >>confdefs.h <<_ACEOF
33568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33569_ACEOF
33570
33571fi
33572done
33573
Reid Spencera773bd52006-08-04 18:18:08 +000033574{ echo "$as_me:$LINENO: checking for working mmap" >&5
33575echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033576if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33577 echo $ECHO_N "(cached) $ECHO_C" >&6
33578else
33579 if test "$cross_compiling" = yes; then
33580 ac_cv_func_mmap_fixed_mapped=no
33581else
33582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033583/* confdefs.h. */
33584_ACEOF
33585cat confdefs.h >>conftest.$ac_ext
33586cat >>conftest.$ac_ext <<_ACEOF
33587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033588$ac_includes_default
33589/* malloc might have been renamed as rpl_malloc. */
33590#undef malloc
33591
33592/* Thanks to Mike Haertel and Jim Avera for this test.
33593 Here is a matrix of mmap possibilities:
33594 mmap private not fixed
33595 mmap private fixed at somewhere currently unmapped
33596 mmap private fixed at somewhere already mapped
33597 mmap shared not fixed
33598 mmap shared fixed at somewhere currently unmapped
33599 mmap shared fixed at somewhere already mapped
33600 For private mappings, we should verify that changes cannot be read()
33601 back from the file, nor mmap's back from the file at a different
33602 address. (There have been systems where private was not correctly
33603 implemented like the infamous i386 svr4.0, and systems where the
33604 VM page cache was not coherent with the file system buffer cache
33605 like early versions of FreeBSD and possibly contemporary NetBSD.)
33606 For shared mappings, we should conversely verify that changes get
33607 propagated back to all the places they're supposed to be.
33608
33609 Grep wants private fixed already mapped.
33610 The main things grep needs to know about mmap are:
33611 * does it exist and is it safe to write into the mmap'd area
33612 * how to use it (BSD variants) */
33613
33614#include <fcntl.h>
33615#include <sys/mman.h>
33616
33617#if !STDC_HEADERS && !HAVE_STDLIB_H
33618char *malloc ();
33619#endif
33620
33621/* This mess was copied from the GNU getpagesize.h. */
33622#if !HAVE_GETPAGESIZE
33623/* Assume that all systems that can run configure have sys/param.h. */
33624# if !HAVE_SYS_PARAM_H
33625# define HAVE_SYS_PARAM_H 1
33626# endif
33627
33628# ifdef _SC_PAGESIZE
33629# define getpagesize() sysconf(_SC_PAGESIZE)
33630# else /* no _SC_PAGESIZE */
33631# if HAVE_SYS_PARAM_H
33632# include <sys/param.h>
33633# ifdef EXEC_PAGESIZE
33634# define getpagesize() EXEC_PAGESIZE
33635# else /* no EXEC_PAGESIZE */
33636# ifdef NBPG
33637# define getpagesize() NBPG * CLSIZE
33638# ifndef CLSIZE
33639# define CLSIZE 1
33640# endif /* no CLSIZE */
33641# else /* no NBPG */
33642# ifdef NBPC
33643# define getpagesize() NBPC
33644# else /* no NBPC */
33645# ifdef PAGESIZE
33646# define getpagesize() PAGESIZE
33647# endif /* PAGESIZE */
33648# endif /* no NBPC */
33649# endif /* no NBPG */
33650# endif /* no EXEC_PAGESIZE */
33651# else /* no HAVE_SYS_PARAM_H */
33652# define getpagesize() 8192 /* punt totally */
33653# endif /* no HAVE_SYS_PARAM_H */
33654# endif /* no _SC_PAGESIZE */
33655
33656#endif /* no HAVE_GETPAGESIZE */
33657
33658int
33659main ()
33660{
33661 char *data, *data2, *data3;
33662 int i, pagesize;
33663 int fd;
33664
33665 pagesize = getpagesize ();
33666
33667 /* First, make a file with some known garbage in it. */
33668 data = (char *) malloc (pagesize);
33669 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033670 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033671 for (i = 0; i < pagesize; ++i)
33672 *(data + i) = rand ();
33673 umask (0);
33674 fd = creat ("conftest.mmap", 0600);
33675 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033676 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033677 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033678 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033679 close (fd);
33680
33681 /* Next, try to mmap the file at a fixed address which already has
33682 something else allocated at it. If we can, also make sure that
33683 we see the same garbage. */
33684 fd = open ("conftest.mmap", O_RDWR);
33685 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033686 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033687 data2 = (char *) malloc (2 * pagesize);
33688 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033689 return 1;
33690 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033693 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033694 for (i = 0; i < pagesize; ++i)
33695 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033696 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033697
33698 /* Finally, make sure that changes to the mapped area do not
33699 percolate back to the file as seen by read(). (This is a bug on
33700 some variants of i386 svr4.0.) */
33701 for (i = 0; i < pagesize; ++i)
33702 *(data2 + i) = *(data2 + i) + 1;
33703 data3 = (char *) malloc (pagesize);
33704 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033705 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033706 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033707 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033708 for (i = 0; i < pagesize; ++i)
33709 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033710 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033711 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033712 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033713}
33714_ACEOF
33715rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033716if { (ac_try="$ac_link"
33717case "(($ac_try" in
33718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719 *) ac_try_echo=$ac_try;;
33720esac
33721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033726 { (case "(($ac_try" in
33727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728 *) ac_try_echo=$ac_try;;
33729esac
33730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033732 ac_status=$?
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; }; then
33735 ac_cv_func_mmap_fixed_mapped=yes
33736else
33737 echo "$as_me: program exited with status $ac_status" >&5
33738echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033739sed 's/^/| /' conftest.$ac_ext >&5
33740
John Criswell7a73b802003-06-30 21:59:07 +000033741( exit $ac_status )
33742ac_cv_func_mmap_fixed_mapped=no
33743fi
Reid Spencera773bd52006-08-04 18:18:08 +000033744rm -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 +000033745fi
Reid Spencera773bd52006-08-04 18:18:08 +000033746
33747
John Criswell7a73b802003-06-30 21:59:07 +000033748fi
Reid Spencera773bd52006-08-04 18:18:08 +000033749{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33750echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033751if test $ac_cv_func_mmap_fixed_mapped = yes; then
33752
33753cat >>confdefs.h <<\_ACEOF
33754#define HAVE_MMAP 1
33755_ACEOF
33756
33757fi
33758rm -f conftest.mmap
33759
Reid Spencer30fe5262007-01-20 07:48:49 +000033760 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033761echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033762if test "${ac_cv_func_mmap_file+set}" = set; then
33763 echo $ECHO_N "(cached) $ECHO_C" >&6
33764else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033765 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033766ac_cpp='$CPP $CPPFLAGS'
33767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33769ac_compiler_gnu=$ac_cv_c_compiler_gnu
33770
33771 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033772 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033773else
33774 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033775
Reid Spencer777ce172004-09-20 04:09:56 +000033776 /* confdefs.h. */
33777_ACEOF
33778cat confdefs.h >>conftest.$ac_ext
33779cat >>conftest.$ac_ext <<_ACEOF
33780/* end confdefs.h. */
33781
John Criswell7a73b802003-06-30 21:59:07 +000033782#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033783#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033784#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033785
33786int
33787main ()
33788{
John Criswell7a73b802003-06-30 21:59:07 +000033789
33790 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033791 fd = creat ("foo",0777);
33792 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33793 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033794 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033795 ;
33796 return 0;
33797}
John Criswell7a73b802003-06-30 21:59:07 +000033798_ACEOF
33799rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033800if { (ac_try="$ac_link"
33801case "(($ac_try" in
33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803 *) ac_try_echo=$ac_try;;
33804esac
33805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033810 { (case "(($ac_try" in
33811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33813esac
33814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 ac_cv_func_mmap_file=yes
33820else
33821 echo "$as_me: program exited with status $ac_status" >&5
33822echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033823sed 's/^/| /' conftest.$ac_ext >&5
33824
John Criswell7a73b802003-06-30 21:59:07 +000033825( exit $ac_status )
33826ac_cv_func_mmap_file=no
33827fi
Reid Spencera773bd52006-08-04 18:18:08 +000033828rm -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 +000033829fi
Reid Spencera773bd52006-08-04 18:18:08 +000033830
33831
John Criswell7a73b802003-06-30 21:59:07 +000033832 ac_ext=c
33833ac_cpp='$CPP $CPPFLAGS'
33834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33836ac_compiler_gnu=$ac_cv_c_compiler_gnu
33837
33838
33839fi
Reid Spencera773bd52006-08-04 18:18:08 +000033840{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33841echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033842if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033843
33844cat >>confdefs.h <<\_ACEOF
33845#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033846_ACEOF
33847
33848 MMAP_FILE=yes
33849
33850fi
33851
Reid Spencer30fe5262007-01-20 07:48:49 +000033852 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033853echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033854if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33856else
Reid Spencer582a23c2004-12-29 07:07:57 +000033857 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033858 ac_cv_need_dev_zero_for_mmap=yes
33859 else
33860 ac_cv_need_dev_zero_for_mmap=no
33861 fi
33862
33863fi
Reid Spencera773bd52006-08-04 18:18:08 +000033864{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33865echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033866if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33867
33868cat >>confdefs.h <<\_ACEOF
33869#define NEED_DEV_ZERO_FOR_MMAP 1
33870_ACEOF
33871
33872fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033873
Reid Spencer30fe5262007-01-20 07:48:49 +000033874 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33875 then
33876 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033877echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033878 fi
33879 if test "$ac_cv_func_mmap_file" = "no"
33880 then
33881 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033882echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033883 fi
John Criswellb13092b2003-07-22 21:00:24 +000033884fi
John Criswell7a73b802003-06-30 21:59:07 +000033885
33886
Reid Spencer9372f152007-07-30 20:13:24 +000033887
33888for ac_func in __dso_handle
33889do
33890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33891{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33893if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33894 echo $ECHO_N "(cached) $ECHO_C" >&6
33895else
33896 cat >conftest.$ac_ext <<_ACEOF
33897/* confdefs.h. */
33898_ACEOF
33899cat confdefs.h >>conftest.$ac_ext
33900cat >>conftest.$ac_ext <<_ACEOF
33901/* end confdefs.h. */
33902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33904#define $ac_func innocuous_$ac_func
33905
33906/* System header to define __stub macros and hopefully few prototypes,
33907 which can conflict with char $ac_func (); below.
33908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33909 <limits.h> exists even on freestanding compilers. */
33910
33911#ifdef __STDC__
33912# include <limits.h>
33913#else
33914# include <assert.h>
33915#endif
33916
33917#undef $ac_func
33918
33919/* Override any GCC internal prototype to avoid an error.
33920 Use char because int might match the return type of a GCC
33921 builtin and then its argument prototype would still apply. */
33922#ifdef __cplusplus
33923extern "C"
33924#endif
33925char $ac_func ();
33926/* The GNU C library defines this for functions which it implements
33927 to always fail with ENOSYS. Some functions are actually named
33928 something starting with __ and the normal name is an alias. */
33929#if defined __stub_$ac_func || defined __stub___$ac_func
33930choke me
33931#endif
33932
33933int
33934main ()
33935{
33936return $ac_func ();
33937 ;
33938 return 0;
33939}
33940_ACEOF
33941rm -f conftest.$ac_objext conftest$ac_exeext
33942if { (ac_try="$ac_link"
33943case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33946esac
33947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_link") 2>conftest.er1
33949 ac_status=$?
33950 grep -v '^ *+' conftest.er1 >conftest.err
33951 rm -f conftest.er1
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33959esac
33960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest$ac_exeext'
33966 { (case "(($ac_try" in
33967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968 *) ac_try_echo=$ac_try;;
33969esac
33970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971 (eval "$ac_try") 2>&5
33972 ac_status=$?
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; }; then
33975 eval "$as_ac_var=yes"
33976else
33977 echo "$as_me: failed program was:" >&5
33978sed 's/^/| /' conftest.$ac_ext >&5
33979
33980 eval "$as_ac_var=no"
33981fi
33982
33983rm -f core conftest.err conftest.$ac_objext \
33984 conftest$ac_exeext conftest.$ac_ext
33985fi
33986ac_res=`eval echo '${'$as_ac_var'}'`
33987 { echo "$as_me:$LINENO: result: $ac_res" >&5
33988echo "${ECHO_T}$ac_res" >&6; }
33989if test `eval echo '${'$as_ac_var'}'` = yes; then
33990 cat >>confdefs.h <<_ACEOF
33991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33992_ACEOF
33993
33994fi
33995done
33996
33997
Reid Spencera773bd52006-08-04 18:18:08 +000033998{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33999echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034000if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34001 echo $ECHO_N "(cached) $ECHO_C" >&6
34002else
34003 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034004if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034005 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034006 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34007 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034008 if test $? -eq 0 ; then
34009 llvm_cv_llvmgcc_sanity="yes"
34010 fi
34011 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034012fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034013fi
Reid Spencera773bd52006-08-04 18:18:08 +000034014{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34015echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034016
34017if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034018 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34019echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034020 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034021 LLVMCC1=$llvmcc1path
34022
Reid Spencer502935f2004-12-22 05:56:56 +000034023 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034024 LLVMCC1PLUS=$llvmcc1pluspath
34025
Reid Spencer502935f2004-12-22 05:56:56 +000034026 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34027 LLVMGCCDIR=$llvmgccdir
34028
Reid Spencer282d8c12006-12-21 22:55:41 +000034029 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34030 LLVMGCCLIBEXEC=$llvmgcclibexec
34031
Reid Spencerb5d75b82006-05-09 00:31:01 +000034032 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034033 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34034 LLVMGCC_VERSION=$llvmgccversion
34035
34036 LLVMGCC_MAJVERS=$llvmgccmajvers
34037
Reid Spencer0d238182007-04-21 21:28:52 +000034038 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34039 LLVMGCC_LANGS=$llvmgcclangs
34040
34041 { echo "$as_me:$LINENO: result: ok" >&5
34042echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034043fi
34044
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034045SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034046
34047
Reid Spencere9de0912004-08-20 09:03:57 +000034048# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034049# information into substitutions that will end up in Makefile.config.in
34050# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034051if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034052 prefix="/usr/local"
34053fi
Reid Spencere9de0912004-08-20 09:03:57 +000034054eval LLVM_PREFIX="${prefix}";
34055eval LLVM_BINDIR="${prefix}/bin";
34056eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034057eval LLVM_DATADIR="${prefix}/share/llvm";
34058eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34059eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034060eval LLVM_INCLUDEDIR="${prefix}/include";
34061eval LLVM_INFODIR="${prefix}/info";
34062eval LLVM_MANDIR="${prefix}/man";
34063LLVM_CONFIGTIME=`date`
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034075# Place the various directores into the config.h file as #defines so that we
34076# can know about the installation paths within LLVM.
34077
Reid Spencere9de0912004-08-20 09:03:57 +000034078cat >>confdefs.h <<_ACEOF
34079#define LLVM_PREFIX "$LLVM_PREFIX"
34080_ACEOF
34081
34082
34083cat >>confdefs.h <<_ACEOF
34084#define LLVM_BINDIR "$LLVM_BINDIR"
34085_ACEOF
34086
34087
34088cat >>confdefs.h <<_ACEOF
34089#define LLVM_LIBDIR "$LLVM_LIBDIR"
34090_ACEOF
34091
34092
34093cat >>confdefs.h <<_ACEOF
34094#define LLVM_DATADIR "$LLVM_DATADIR"
34095_ACEOF
34096
34097
34098cat >>confdefs.h <<_ACEOF
34099#define LLVM_DATADIR "$LLVM_DOCSDIR"
34100_ACEOF
34101
34102
34103cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034104#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034105_ACEOF
34106
34107
34108cat >>confdefs.h <<_ACEOF
34109#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34110_ACEOF
34111
34112
34113cat >>confdefs.h <<_ACEOF
34114#define LLVM_INFODIR "$LLVM_INFODIR"
34115_ACEOF
34116
34117
34118cat >>confdefs.h <<_ACEOF
34119#define LLVM_MANDIR "$LLVM_MANDIR"
34120_ACEOF
34121
34122
34123cat >>confdefs.h <<_ACEOF
34124#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34125_ACEOF
34126
34127
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034128
Reid Spencera773bd52006-08-04 18:18:08 +000034129ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034130
Reid Spencera773bd52006-08-04 18:18:08 +000034131ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034132
Reid Spencera773bd52006-08-04 18:18:08 +000034133ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034134
Reid Spencera773bd52006-08-04 18:18:08 +000034135ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034136
Reid Spencera773bd52006-08-04 18:18:08 +000034137ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034138
34139
Reid Spencera773bd52006-08-04 18:18:08 +000034140ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034141
34142
Reid Spencerea949cf2006-08-16 00:45:38 +000034143ac_config_files="$ac_config_files llvm.spec"
34144
34145
Reid Spencera773bd52006-08-04 18:18:08 +000034146ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034147
34148
Reid Spencera773bd52006-08-04 18:18:08 +000034149ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034150
34151
Reid Spencera773bd52006-08-04 18:18:08 +000034152ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034153
Reid Spencera773bd52006-08-04 18:18:08 +000034154ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034155
34156
Reid Spencera773bd52006-08-04 18:18:08 +000034157ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034158
34159
Reid Spencera773bd52006-08-04 18:18:08 +000034160ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034161
34162
Reid Spencera773bd52006-08-04 18:18:08 +000034163ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034164
34165
Reid Spencer8b2e1412006-11-17 03:32:33 +000034166ac_config_commands="$ac_config_commands runtime/Makefile"
34167
34168
Reid Spencera773bd52006-08-04 18:18:08 +000034169ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034170
34171
Reid Spencera773bd52006-08-04 18:18:08 +000034172ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034173
34174
Reid Spencera773bd52006-08-04 18:18:08 +000034175ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034176
34177
Reid Spencera773bd52006-08-04 18:18:08 +000034178ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034179
34180
Reid Spencera773bd52006-08-04 18:18:08 +000034181ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034182
34183
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034184ac_config_commands="$ac_config_commands bindings/Makefile"
34185
34186
34187ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34188
34189
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034190
John Criswell7a73b802003-06-30 21:59:07 +000034191cat >confcache <<\_ACEOF
34192# This file is a shell script that caches the results of configure
34193# tests run on this system so they can be shared between configure
34194# scripts and configure runs, see configure's option --config-cache.
34195# It is not useful on other systems. If it contains results you don't
34196# want to keep, you may remove or edit it.
34197#
34198# config.status only pays attention to the cache file if you give it
34199# the --recheck option to rerun configure.
34200#
John Criswell0c38eaf2003-09-10 15:17:25 +000034201# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034202# loading this file, other *unset* `ac_cv_foo' will be assigned the
34203# following values.
34204
34205_ACEOF
34206
34207# The following way of writing the cache mishandles newlines in values,
34208# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034209# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034210# Ultrix sh set writes to stderr and can't be redirected directly,
34211# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034212(
34213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34214 eval ac_val=\$$ac_var
34215 case $ac_val in #(
34216 *${as_nl}*)
34217 case $ac_var in #(
34218 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34219echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34220 esac
34221 case $ac_var in #(
34222 _ | IFS | as_nl) ;; #(
34223 *) $as_unset $ac_var ;;
34224 esac ;;
34225 esac
34226 done
34227
John Criswell7a73b802003-06-30 21:59:07 +000034228 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34230 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034231 # `set' does not quote correctly, so add quotes (double-quote
34232 # substitution turns \\\\ into \\, and sed turns \\ into \).
34233 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034234 "s/'/'\\\\''/g;
34235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034236 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034237 *)
34238 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034240 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034241 esac |
34242 sort
34243) |
John Criswell7a73b802003-06-30 21:59:07 +000034244 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034245 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034246 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034247 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34249 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34251 :end' >>confcache
34252if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34253 if test -w "$cache_file"; then
34254 test "x$cache_file" != "x/dev/null" &&
34255 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34256echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034257 cat confcache >$cache_file
34258 else
Reid Spencera773bd52006-08-04 18:18:08 +000034259 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34260echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034261 fi
34262fi
34263rm -f confcache
34264
34265test "x$prefix" = xNONE && prefix=$ac_default_prefix
34266# Let make expand exec_prefix.
34267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34268
John Criswell7a73b802003-06-30 21:59:07 +000034269DEFS=-DHAVE_CONFIG_H
34270
John Criswell0c38eaf2003-09-10 15:17:25 +000034271ac_libobjs=
34272ac_ltlibobjs=
34273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34274 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34276 ac_i=`echo "$ac_i" | sed "$ac_script"`
34277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34278 # will be set to the directory where LIBOBJS objects are built.
34279 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34280 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034281done
34282LIBOBJS=$ac_libobjs
34283
34284LTLIBOBJS=$ac_ltlibobjs
34285
34286
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034287if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34288 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34289Usually this means the macro was only invoked conditionally." >&5
34290echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34291Usually this means the macro was only invoked conditionally." >&2;}
34292 { (exit 1); exit 1; }; }
34293fi
34294if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34295 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34296Usually this means the macro was only invoked conditionally." >&5
34297echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34298Usually this means the macro was only invoked conditionally." >&2;}
34299 { (exit 1); exit 1; }; }
34300fi
John Criswell7a73b802003-06-30 21:59:07 +000034301
34302: ${CONFIG_STATUS=./config.status}
34303ac_clean_files_save=$ac_clean_files
34304ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34305{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34306echo "$as_me: creating $CONFIG_STATUS" >&6;}
34307cat >$CONFIG_STATUS <<_ACEOF
34308#! $SHELL
34309# Generated by $as_me.
34310# Run this file to recreate the current configuration.
34311# Compiler output produced by configure, useful for debugging
34312# configure, is in config.log if it exists.
34313
34314debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034315ac_cs_recheck=false
34316ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034317SHELL=\${CONFIG_SHELL-$SHELL}
34318_ACEOF
34319
34320cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034321## --------------------- ##
34322## M4sh Initialization. ##
34323## --------------------- ##
34324
34325# Be Bourne compatible
34326if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34327 emulate sh
34328 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034329 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34330 # is contrary to our usage. Disable this feature.
34331 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034332 setopt NO_GLOB_SUBST
34333else
34334 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034335fi
Reid Spencera773bd52006-08-04 18:18:08 +000034336BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000034337DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034338
John Criswell7a73b802003-06-30 21:59:07 +000034339
Reid Spencera773bd52006-08-04 18:18:08 +000034340# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034341# Avoid depending upon Character Ranges.
34342as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34343as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34344as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34345as_cr_digits='0123456789'
34346as_cr_alnum=$as_cr_Letters$as_cr_digits
34347
34348# The user is always right.
34349if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034350 echo "#! /bin/sh" >conf$$.sh
34351 echo "exit 0" >>conf$$.sh
34352 chmod +x conf$$.sh
34353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034354 PATH_SEPARATOR=';'
34355 else
34356 PATH_SEPARATOR=:
34357 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034358 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034359fi
34360
Reid Spencera773bd52006-08-04 18:18:08 +000034361# Support unset when possible.
34362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34363 as_unset=unset
34364else
34365 as_unset=false
34366fi
John Criswell7a73b802003-06-30 21:59:07 +000034367
Reid Spencera773bd52006-08-04 18:18:08 +000034368
34369# IFS
34370# We need space, tab and new line, in precisely that order. Quoting is
34371# there to prevent editors from complaining about space-tab.
34372# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34373# splitting by setting IFS to empty value.)
34374as_nl='
34375'
34376IFS=" "" $as_nl"
34377
34378# Find who we are. Look in the path if we contain no directory separator.
34379case $0 in
34380 *[\\/]* ) as_myself=$0 ;;
34381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034382for as_dir in $PATH
34383do
34384 IFS=$as_save_IFS
34385 test -z "$as_dir" && as_dir=.
34386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34387done
Reid Spencera773bd52006-08-04 18:18:08 +000034388IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034389
Reid Spencera773bd52006-08-04 18:18:08 +000034390 ;;
34391esac
34392# We did not find ourselves, most probably we were run as `sh COMMAND'
34393# in which case we are not to be found in the path.
34394if test "x$as_myself" = x; then
34395 as_myself=$0
34396fi
34397if test ! -f "$as_myself"; then
34398 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34399 { (exit 1); exit 1; }
34400fi
34401
34402# Work around bugs in pre-3.0 UWIN ksh.
34403for as_var in ENV MAIL MAILPATH
34404do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34405done
34406PS1='$ '
34407PS2='> '
34408PS4='+ '
34409
34410# NLS nuisances.
34411for as_var in \
34412 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34413 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34414 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034415do
Reid Spencera773bd52006-08-04 18:18:08 +000034416 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34417 eval $as_var=C; export $as_var
34418 else
34419 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34420 fi
34421done
34422
34423# Required to use basename.
34424if expr a : '\(a\)' >/dev/null 2>&1 &&
34425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34426 as_expr=expr
34427else
34428 as_expr=false
34429fi
34430
34431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34432 as_basename=basename
34433else
34434 as_basename=false
34435fi
34436
34437
34438# Name of the executable.
34439as_me=`$as_basename -- "$0" ||
34440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34441 X"$0" : 'X\(//\)$' \| \
34442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34443echo X/"$0" |
34444 sed '/^.*\/\([^/][^/]*\)\/*$/{
34445 s//\1/
34446 q
34447 }
34448 /^X\/\(\/\/\)$/{
34449 s//\1/
34450 q
34451 }
34452 /^X\/\(\/\).*/{
34453 s//\1/
34454 q
34455 }
34456 s/.*/./; q'`
34457
34458# CDPATH.
34459$as_unset CDPATH
34460
34461
34462
John Criswell7a73b802003-06-30 21:59:07 +000034463 as_lineno_1=$LINENO
34464 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034465 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034466 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034467
34468 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34469 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034470 # line-number line after each line using $LINENO; the second 'sed'
34471 # does the real work. The second script uses 'N' to pair each
34472 # line-number line with the line containing $LINENO, and appends
34473 # trailing '-' during substitution so that $LINENO is not a special
34474 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034476 # scripts with optimization help from Paolo Bonzini. Blame Lee
34477 # E. McMahon (1931-1989) for sed's syntax. :-)
34478 sed -n '
34479 p
34480 /[$]LINENO/=
34481 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034482 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034483 s/[$]LINENO.*/&-/
34484 t lineno
34485 b
34486 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034487 N
Reid Spencera773bd52006-08-04 18:18:08 +000034488 :loop
34489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034490 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034491 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034492 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034493 chmod +x "$as_me.lineno" ||
34494 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034495 { (exit 1); exit 1; }; }
34496
34497 # Don't try to exec as it changes $[0], causing all sort of problems
34498 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034499 # original and so on. Autoconf is especially sensitive to this).
34500 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034501 # Exit status is that of the last command.
34502 exit
34503}
34504
34505
Reid Spencera773bd52006-08-04 18:18:08 +000034506if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34507 as_dirname=dirname
34508else
34509 as_dirname=false
34510fi
34511
34512ECHO_C= ECHO_N= ECHO_T=
34513case `echo -n x` in
34514-n*)
34515 case `echo 'x\c'` in
34516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34517 *) ECHO_C='\c';;
34518 esac;;
34519*)
34520 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034521esac
34522
Reid Spencera773bd52006-08-04 18:18:08 +000034523if expr a : '\(a\)' >/dev/null 2>&1 &&
34524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034525 as_expr=expr
34526else
34527 as_expr=false
34528fi
34529
34530rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034531if test -d conf$$.dir; then
34532 rm -f conf$$.dir/conf$$.file
34533else
34534 rm -f conf$$.dir
34535 mkdir conf$$.dir
34536fi
John Criswell7a73b802003-06-30 21:59:07 +000034537echo >conf$$.file
34538if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034539 as_ln_s='ln -s'
34540 # ... but there are two gotchas:
34541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34543 # In both cases, we have to default to `cp -p'.
34544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034545 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034546elif ln conf$$.file conf$$ 2>/dev/null; then
34547 as_ln_s=ln
34548else
34549 as_ln_s='cp -p'
34550fi
Reid Spencera773bd52006-08-04 18:18:08 +000034551rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34552rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034553
John Criswell0c38eaf2003-09-10 15:17:25 +000034554if mkdir -p . 2>/dev/null; then
34555 as_mkdir_p=:
34556else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034557 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034558 as_mkdir_p=false
34559fi
34560
Reid Spencera773bd52006-08-04 18:18:08 +000034561# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34562# systems may use methods other than mode bits to determine executability.
34563cat >conf$$.file <<_ASEOF
34564#! /bin/sh
34565exit 0
34566_ASEOF
34567chmod +x conf$$.file
34568if test -x conf$$.file >/dev/null 2>&1; then
34569 as_executable_p="test -x"
34570else
34571 as_executable_p=:
34572fi
34573rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034574
34575# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034576as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034577
34578# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034579as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034580
34581
John Criswell7a73b802003-06-30 21:59:07 +000034582exec 6>&1
34583
Reid Spencera773bd52006-08-04 18:18:08 +000034584# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034585# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034586# values after options handling.
34587ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000034588This file was extended by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034589generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034590
34591 CONFIG_FILES = $CONFIG_FILES
34592 CONFIG_HEADERS = $CONFIG_HEADERS
34593 CONFIG_LINKS = $CONFIG_LINKS
34594 CONFIG_COMMANDS = $CONFIG_COMMANDS
34595 $ $0 $@
34596
Reid Spencera773bd52006-08-04 18:18:08 +000034597on `(hostname || uname -n) 2>/dev/null | sed 1q`
34598"
34599
John Criswell7a73b802003-06-30 21:59:07 +000034600_ACEOF
34601
Reid Spencera773bd52006-08-04 18:18:08 +000034602cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034603# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034604config_files="$ac_config_files"
34605config_headers="$ac_config_headers"
34606config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034607
Reid Spencera773bd52006-08-04 18:18:08 +000034608_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034609
34610cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034611ac_cs_usage="\
34612\`$as_me' instantiates files from templates according to the
34613current configuration.
34614
34615Usage: $0 [OPTIONS] [FILE]...
34616
34617 -h, --help print this help, then exit
34618 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034619 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034620 -d, --debug don't remove temporary files
34621 --recheck update $as_me by reconfiguring in the same conditions
34622 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034623 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034624 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034625 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034626
34627Configuration files:
34628$config_files
34629
34630Configuration headers:
34631$config_headers
34632
John Criswellc764fbc2003-09-06 15:17:13 +000034633Configuration commands:
34634$config_commands
34635
John Criswell7a73b802003-06-30 21:59:07 +000034636Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034637
Reid Spencera773bd52006-08-04 18:18:08 +000034638_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034639cat >>$CONFIG_STATUS <<_ACEOF
34640ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000034641llvm config.status 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +000034642configured by $0, generated by GNU Autoconf 2.60,
34643 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034644
Reid Spencera773bd52006-08-04 18:18:08 +000034645Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034646This config.status script is free software; the Free Software Foundation
34647gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034648
34649ac_pwd='$ac_pwd'
34650srcdir='$srcdir'
34651INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034652_ACEOF
34653
34654cat >>$CONFIG_STATUS <<\_ACEOF
34655# If no file are specified by the user, then we need to provide default
34656# value. By we need to know if files were specified by the user.
34657ac_need_defaults=:
34658while test $# != 0
34659do
34660 case $1 in
34661 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034664 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034666 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034667 ac_option=$1
34668 ac_optarg=$2
34669 ac_shift=shift
34670 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034671 esac
34672
John Criswell0c38eaf2003-09-10 15:17:25 +000034673 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034674 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34676 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34678 echo "$ac_cs_version"; exit ;;
34679 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034680 debug=: ;;
34681 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034682 $ac_shift
34683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034684 ac_need_defaults=false;;
34685 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034686 $ac_shift
34687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034688 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034689 --he | --h)
34690 # Conflict between --help and --header
34691 { echo "$as_me: error: ambiguous option: $1
34692Try \`$0 --help' for more information." >&2
34693 { (exit 1); exit 1; }; };;
34694 --help | --hel | -h )
34695 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34698 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034699
34700 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034701 -*) { echo "$as_me: error: unrecognized option: $1
34702Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034703 { (exit 1); exit 1; }; } ;;
34704
Reid Spencera773bd52006-08-04 18:18:08 +000034705 *) ac_config_targets="$ac_config_targets $1"
34706 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034707
34708 esac
34709 shift
34710done
34711
John Criswell0c38eaf2003-09-10 15:17:25 +000034712ac_configure_extra_args=
34713
34714if $ac_cs_silent; then
34715 exec 6>/dev/null
34716 ac_configure_extra_args="$ac_configure_extra_args --silent"
34717fi
34718
34719_ACEOF
34720cat >>$CONFIG_STATUS <<_ACEOF
34721if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034722 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34723 CONFIG_SHELL=$SHELL
34724 export CONFIG_SHELL
34725 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034726fi
34727
John Criswell7a73b802003-06-30 21:59:07 +000034728_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034729cat >>$CONFIG_STATUS <<\_ACEOF
34730exec 5>>config.log
34731{
34732 echo
34733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34734## Running $as_me. ##
34735_ASBOX
34736 echo "$ac_log"
34737} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034738
Reid Spencera773bd52006-08-04 18:18:08 +000034739_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034740cat >>$CONFIG_STATUS <<_ACEOF
34741#
Reid Spencera773bd52006-08-04 18:18:08 +000034742# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034743#
Reid Spencerc0682832005-02-24 19:05:19 +000034744llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034745
34746_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034747
John Criswell7a73b802003-06-30 21:59:07 +000034748cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034749
34750# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034751for ac_config_target in $ac_config_targets
34752do
Reid Spencera773bd52006-08-04 18:18:08 +000034753 case $ac_config_target in
34754 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34755 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34756 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34757 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34758 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34759 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034760 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034761 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34762 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34763 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34764 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34765 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34766 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34767 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034768 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034769 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34770 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34771 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34772 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34773 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034774 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34775 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034776
John Criswell7a73b802003-06-30 21:59:07 +000034777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34778echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34779 { (exit 1); exit 1; }; };;
34780 esac
34781done
34782
Reid Spencera773bd52006-08-04 18:18:08 +000034783
John Criswell7a73b802003-06-30 21:59:07 +000034784# If the user did not use the arguments to specify the items to instantiate,
34785# then the envvar interface is used. Set only those that are not.
34786# We use the long form for the default assignment because of an extremely
34787# bizarre bug on SunOS 4.1.3.
34788if $ac_need_defaults; then
34789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034792fi
34793
John Criswell0c38eaf2003-09-10 15:17:25 +000034794# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034795# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034796# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034797# Hook for its removal unless debugging.
34798# Note that there is a small window in which the directory will not be cleaned:
34799# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034800$debug ||
34801{
Reid Spencera773bd52006-08-04 18:18:08 +000034802 tmp=
34803 trap 'exit_status=$?
34804 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34805' 0
John Criswell7a73b802003-06-30 21:59:07 +000034806 trap '{ (exit 1); exit 1; }' 1 2 13 15
34807}
John Criswell7a73b802003-06-30 21:59:07 +000034808# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034809
John Criswell7a73b802003-06-30 21:59:07 +000034810{
Reid Spencera773bd52006-08-04 18:18:08 +000034811 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034812 test -n "$tmp" && test -d "$tmp"
34813} ||
34814{
Reid Spencera773bd52006-08-04 18:18:08 +000034815 tmp=./conf$$-$RANDOM
34816 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034817} ||
34818{
John Criswell0c38eaf2003-09-10 15:17:25 +000034819 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034820 { (exit 1); exit 1; }
34821}
34822
John Criswell7a73b802003-06-30 21:59:07 +000034823#
Reid Spencera773bd52006-08-04 18:18:08 +000034824# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034825#
34826
34827# No need to generate the scripts if there are no CONFIG_FILES.
34828# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034829if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034830
34831_ACEOF
34832
Reid Spencera773bd52006-08-04 18:18:08 +000034833
34834
34835ac_delim='%!_!# '
34836for ac_last_try in false false false false false :; do
34837 cat >conf$$subs.sed <<_ACEOF
34838SHELL!$SHELL$ac_delim
34839PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34840PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34841PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34842PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34843PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34844PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34845exec_prefix!$exec_prefix$ac_delim
34846prefix!$prefix$ac_delim
34847program_transform_name!$program_transform_name$ac_delim
34848bindir!$bindir$ac_delim
34849sbindir!$sbindir$ac_delim
34850libexecdir!$libexecdir$ac_delim
34851datarootdir!$datarootdir$ac_delim
34852datadir!$datadir$ac_delim
34853sysconfdir!$sysconfdir$ac_delim
34854sharedstatedir!$sharedstatedir$ac_delim
34855localstatedir!$localstatedir$ac_delim
34856includedir!$includedir$ac_delim
34857oldincludedir!$oldincludedir$ac_delim
34858docdir!$docdir$ac_delim
34859infodir!$infodir$ac_delim
34860htmldir!$htmldir$ac_delim
34861dvidir!$dvidir$ac_delim
34862pdfdir!$pdfdir$ac_delim
34863psdir!$psdir$ac_delim
34864libdir!$libdir$ac_delim
34865localedir!$localedir$ac_delim
34866mandir!$mandir$ac_delim
34867DEFS!$DEFS$ac_delim
34868ECHO_C!$ECHO_C$ac_delim
34869ECHO_N!$ECHO_N$ac_delim
34870ECHO_T!$ECHO_T$ac_delim
34871LIBS!$LIBS$ac_delim
34872build_alias!$build_alias$ac_delim
34873host_alias!$host_alias$ac_delim
34874target_alias!$target_alias$ac_delim
34875LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34876subdirs!$subdirs$ac_delim
34877build!$build$ac_delim
34878build_cpu!$build_cpu$ac_delim
34879build_vendor!$build_vendor$ac_delim
34880build_os!$build_os$ac_delim
34881host!$host$ac_delim
34882host_cpu!$host_cpu$ac_delim
34883host_vendor!$host_vendor$ac_delim
34884host_os!$host_os$ac_delim
34885target!$target$ac_delim
34886target_cpu!$target_cpu$ac_delim
34887target_vendor!$target_vendor$ac_delim
34888target_os!$target_os$ac_delim
34889OS!$OS$ac_delim
34890LINKALL!$LINKALL$ac_delim
34891NOLINKALL!$NOLINKALL$ac_delim
34892LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34893LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34894ARCH!$ARCH$ac_delim
34895ENDIAN!$ENDIAN$ac_delim
34896CC!$CC$ac_delim
34897CFLAGS!$CFLAGS$ac_delim
34898LDFLAGS!$LDFLAGS$ac_delim
34899CPPFLAGS!$CPPFLAGS$ac_delim
34900ac_ct_CC!$ac_ct_CC$ac_delim
34901EXEEXT!$EXEEXT$ac_delim
34902OBJEXT!$OBJEXT$ac_delim
34903CPP!$CPP$ac_delim
34904GREP!$GREP$ac_delim
34905EGREP!$EGREP$ac_delim
34906LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34907BUILD_CC!$BUILD_CC$ac_delim
34908BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34909CVSBUILD!$CVSBUILD$ac_delim
34910ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34911DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034912ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34913EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034914DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034915JIT!$JIT$ac_delim
34916TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34917ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34918ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034919ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034920TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034921ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034922EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34923CXX!$CXX$ac_delim
34924CXXFLAGS!$CXXFLAGS$ac_delim
34925ac_ct_CXX!$ac_ct_CXX$ac_delim
34926LEX!$LEX$ac_delim
34927LEXLIB!$LEXLIB$ac_delim
34928LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34929FLEX!$FLEX$ac_delim
34930YACC!$YACC$ac_delim
34931YFLAGS!$YFLAGS$ac_delim
34932BISON!$BISON$ac_delim
34933NM!$NM$ac_delim
34934ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034935_ACEOF
34936
34937 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34938 break
34939 elif $ac_last_try; then
34940 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34941echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34942 { (exit 1); exit 1; }; }
34943 else
34944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034945 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034946done
34947
34948ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34949if test -n "$ac_eof"; then
34950 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34951 ac_eof=`expr $ac_eof + 1`
34952fi
34953
34954cat >>$CONFIG_STATUS <<_ACEOF
34955cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34956/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34957_ACEOF
34958sed '
34959s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34960s/^/s,@/; s/!/@,|#_!!_#|/
34961:n
34962t n
34963s/'"$ac_delim"'$/,g/; t
34964s/$/\\/; p
34965N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34966' >>$CONFIG_STATUS <conf$$subs.sed
34967rm -f conf$$subs.sed
34968cat >>$CONFIG_STATUS <<_ACEOF
34969CEOF$ac_eof
34970_ACEOF
34971
34972
34973ac_delim='%!_!# '
34974for ac_last_try in false false false false false :; do
34975 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000034976LN_S!$LN_S$ac_delim
34977CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034978CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034979DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034980FIND!$FIND$ac_delim
34981MKDIR!$MKDIR$ac_delim
34982MV!$MV$ac_delim
34983RANLIB!$RANLIB$ac_delim
34984RM!$RM$ac_delim
34985SED!$SED$ac_delim
34986TAR!$TAR$ac_delim
34987BINPWD!$BINPWD$ac_delim
34988GRAPHVIZ!$GRAPHVIZ$ac_delim
34989DOT!$DOT$ac_delim
34990GV!$GV$ac_delim
34991DOTTY!$DOTTY$ac_delim
34992PERL!$PERL$ac_delim
34993HAVE_PERL!$HAVE_PERL$ac_delim
34994INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34995INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34996INSTALL_DATA!$INSTALL_DATA$ac_delim
34997BZIP2!$BZIP2$ac_delim
34998DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034999GROFF!$GROFF$ac_delim
35000GZIP!$GZIP$ac_delim
35001POD2HTML!$POD2HTML$ac_delim
35002POD2MAN!$POD2MAN$ac_delim
35003RUNTEST!$RUNTEST$ac_delim
35004TCLSH!$TCLSH$ac_delim
35005ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035006OCAMLC!$OCAMLC$ac_delim
35007OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035008OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035009INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35010INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35011CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35012CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35013LIBADD_DL!$LIBADD_DL$ac_delim
35014ECHO!$ECHO$ac_delim
35015AR!$AR$ac_delim
35016STRIP!$STRIP$ac_delim
35017CXXCPP!$CXXCPP$ac_delim
35018F77!$F77$ac_delim
35019FFLAGS!$FFLAGS$ac_delim
35020ac_ct_F77!$ac_ct_F77$ac_delim
35021LIBTOOL!$LIBTOOL$ac_delim
35022ETAGSFLAGS!$ETAGSFLAGS$ac_delim
35023LLVMGCC!$LLVMGCC$ac_delim
35024LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035025USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035026HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035027HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035028ALLOCA!$ALLOCA$ac_delim
35029MMAP_FILE!$MMAP_FILE$ac_delim
35030LLVMCC1!$LLVMCC1$ac_delim
35031LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35032LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035033LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035034LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35035LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035036LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035037SHLIBEXT!$SHLIBEXT$ac_delim
35038LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35039LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35040LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35041LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35042LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35043LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35044LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35045LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35046LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35047LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35048LIBOBJS!$LIBOBJS$ac_delim
35049LTLIBOBJS!$LTLIBOBJS$ac_delim
35050_ACEOF
35051
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
Reid Spencera773bd52006-08-04 18:18:08 +000035053 break
35054 elif $ac_last_try; then
35055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35056echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35057 { (exit 1); exit 1; }; }
35058 else
35059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35060 fi
35061done
35062
35063ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35064if test -n "$ac_eof"; then
35065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35066 ac_eof=`expr $ac_eof + 1`
35067fi
35068
35069cat >>$CONFIG_STATUS <<_ACEOF
35070cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35072_ACEOF
35073sed '
35074s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35075s/^/s,@/; s/!/@,|#_!!_#|/
35076:n
35077t n
35078s/'"$ac_delim"'$/,g/; t
35079s/$/\\/; p
35080N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35081' >>$CONFIG_STATUS <conf$$subs.sed
35082rm -f conf$$subs.sed
35083cat >>$CONFIG_STATUS <<_ACEOF
35084:end
35085s/|#_!!_#|//g
35086CEOF$ac_eof
35087_ACEOF
35088
35089
35090# VPATH may cause trouble with some makes, so we remove $(srcdir),
35091# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35092# trailing colons and then remove the whole line if VPATH becomes empty
35093# (actually we leave an empty line to preserve line numbers).
35094if test "x$srcdir" = x.; then
35095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35096s/:*\$(srcdir):*/:/
35097s/:*\${srcdir}:*/:/
35098s/:*@srcdir@:*/:/
35099s/^\([^=]*=[ ]*\):*/\1/
35100s/:*$//
35101s/^[^=]*=[ ]*$//
35102}'
35103fi
35104
35105cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035106fi # test -n "$CONFIG_FILES"
35107
Reid Spencera773bd52006-08-04 18:18:08 +000035108
35109for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35110do
35111 case $ac_tag in
35112 :[FHLC]) ac_mode=$ac_tag; continue;;
35113 esac
35114 case $ac_mode$ac_tag in
35115 :[FHL]*:*);;
35116 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35117echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35118 { (exit 1); exit 1; }; };;
35119 :[FH]-) ac_tag=-:-;;
35120 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35121 esac
35122 ac_save_IFS=$IFS
35123 IFS=:
35124 set x $ac_tag
35125 IFS=$ac_save_IFS
35126 shift
35127 ac_file=$1
35128 shift
35129
35130 case $ac_mode in
35131 :L) ac_source=$1;;
35132 :[FH])
35133 ac_file_inputs=
35134 for ac_f
35135 do
35136 case $ac_f in
35137 -) ac_f="$tmp/stdin";;
35138 *) # Look for the file first in the build tree, then in the source tree
35139 # (if the path is not absolute). The absolute path cannot be DOS-style,
35140 # because $ac_f cannot contain `:'.
35141 test -f "$ac_f" ||
35142 case $ac_f in
35143 [\\/$]*) false;;
35144 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35145 esac ||
35146 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35147echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35148 { (exit 1); exit 1; }; };;
35149 esac
35150 ac_file_inputs="$ac_file_inputs $ac_f"
35151 done
35152
35153 # Let's still pretend it is `configure' which instantiates (i.e., don't
35154 # use $as_me), people would be surprised to read:
35155 # /* config.h. Generated by config.status. */
35156 configure_input="Generated from "`IFS=:
35157 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35158 if test x"$ac_file" != x-; then
35159 configure_input="$ac_file. $configure_input"
35160 { echo "$as_me:$LINENO: creating $ac_file" >&5
35161echo "$as_me: creating $ac_file" >&6;}
35162 fi
35163
35164 case $ac_tag in
35165 *:-:* | *:-) cat >"$tmp/stdin";;
35166 esac
35167 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035168 esac
35169
Reid Spencera773bd52006-08-04 18:18:08 +000035170 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035172 X"$ac_file" : 'X\(//\)[^/]' \| \
35173 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035175echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35177 s//\1/
35178 q
35179 }
35180 /^X\(\/\/\)[^/].*/{
35181 s//\1/
35182 q
35183 }
35184 /^X\(\/\/\)$/{
35185 s//\1/
35186 q
35187 }
35188 /^X\(\/\).*/{
35189 s//\1/
35190 q
35191 }
35192 s/.*/./; q'`
35193 { as_dir="$ac_dir"
35194 case $as_dir in #(
35195 -*) as_dir=./$as_dir;;
35196 esac
35197 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035198 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035199 while :; do
35200 case $as_dir in #(
35201 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35202 *) as_qdir=$as_dir;;
35203 esac
35204 as_dirs="'$as_qdir' $as_dirs"
35205 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035207 X"$as_dir" : 'X\(//\)[^/]' \| \
35208 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035210echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35212 s//\1/
35213 q
35214 }
35215 /^X\(\/\/\)[^/].*/{
35216 s//\1/
35217 q
35218 }
35219 /^X\(\/\/\)$/{
35220 s//\1/
35221 q
35222 }
35223 /^X\(\/\).*/{
35224 s//\1/
35225 q
35226 }
35227 s/.*/./; q'`
35228 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035229 done
Reid Spencera773bd52006-08-04 18:18:08 +000035230 test -z "$as_dirs" || eval "mkdir $as_dirs"
35231 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35232echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035233 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035234 ac_builddir=.
35235
Reid Spencera773bd52006-08-04 18:18:08 +000035236case "$ac_dir" in
35237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35238*)
John Criswell7a73b802003-06-30 21:59:07 +000035239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035240 # A ".." for each directory in $ac_dir_suffix.
35241 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35242 case $ac_top_builddir_sub in
35243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35245 esac ;;
35246esac
35247ac_abs_top_builddir=$ac_pwd
35248ac_abs_builddir=$ac_pwd$ac_dir_suffix
35249# for backward compatibility:
35250ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035251
35252case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035253 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035254 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035255 ac_top_srcdir=$ac_top_builddir_sub
35256 ac_abs_top_srcdir=$ac_pwd ;;
35257 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035258 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035259 ac_top_srcdir=$srcdir
35260 ac_abs_top_srcdir=$srcdir ;;
35261 *) # Relative name.
35262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35263 ac_top_srcdir=$ac_top_build_prefix$srcdir
35264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035265esac
Reid Spencera773bd52006-08-04 18:18:08 +000035266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035267
John Criswell7a73b802003-06-30 21:59:07 +000035268
Reid Spencera773bd52006-08-04 18:18:08 +000035269 case $ac_mode in
35270 :F)
35271 #
35272 # CONFIG_FILE
35273 #
John Criswell7a73b802003-06-30 21:59:07 +000035274
35275 case $INSTALL in
35276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035278 esac
John Criswell7a73b802003-06-30 21:59:07 +000035279_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035280
35281cat >>$CONFIG_STATUS <<\_ACEOF
35282# If the template does not know about datarootdir, expand it.
35283# FIXME: This hack should be removed a few years after 2.60.
35284ac_datarootdir_hack=; ac_datarootdir_seen=
35285
35286case `sed -n '/datarootdir/ {
35287 p
35288 q
35289}
35290/@datadir@/p
35291/@docdir@/p
35292/@infodir@/p
35293/@localedir@/p
35294/@mandir@/p
35295' $ac_file_inputs` in
35296*datarootdir*) ac_datarootdir_seen=yes;;
35297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35298 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35299echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35300_ACEOF
35301cat >>$CONFIG_STATUS <<_ACEOF
35302 ac_datarootdir_hack='
35303 s&@datadir@&$datadir&g
35304 s&@docdir@&$docdir&g
35305 s&@infodir@&$infodir&g
35306 s&@localedir@&$localedir&g
35307 s&@mandir@&$mandir&g
35308 s&\\\${datarootdir}&$datarootdir&g' ;;
35309esac
35310_ACEOF
35311
35312# Neutralize VPATH when `$srcdir' = `.'.
35313# Shell code in configure.ac might set extrasub.
35314# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035315cat >>$CONFIG_STATUS <<_ACEOF
35316 sed "$ac_vpsub
35317$extrasub
35318_ACEOF
35319cat >>$CONFIG_STATUS <<\_ACEOF
35320:t
35321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035322s&@configure_input@&$configure_input&;t t
35323s&@top_builddir@&$ac_top_builddir_sub&;t t
35324s&@srcdir@&$ac_srcdir&;t t
35325s&@abs_srcdir@&$ac_abs_srcdir&;t t
35326s&@top_srcdir@&$ac_top_srcdir&;t t
35327s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35328s&@builddir@&$ac_builddir&;t t
35329s&@abs_builddir@&$ac_abs_builddir&;t t
35330s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35331s&@INSTALL@&$ac_INSTALL&;t t
35332$ac_datarootdir_hack
35333" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035334
Reid Spencera773bd52006-08-04 18:18:08 +000035335test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35338 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35339which seems to be undefined. Please make sure it is defined." >&5
35340echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35341which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035342
Reid Spencera773bd52006-08-04 18:18:08 +000035343 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035344 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035345 -) cat "$tmp/out"; rm -f "$tmp/out";;
35346 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035347 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035348 ;;
35349 :H)
35350 #
35351 # CONFIG_HEADER
35352 #
John Criswell7a73b802003-06-30 21:59:07 +000035353_ACEOF
35354
Reid Spencera773bd52006-08-04 18:18:08 +000035355# Transform confdefs.h into a sed script `conftest.defines', that
35356# substitutes the proper values into config.h.in to produce config.h.
35357rm -f conftest.defines conftest.tail
35358# First, append a space to every undef/define line, to ease matching.
35359echo 's/$/ /' >conftest.defines
35360# Then, protect against being on the right side of a sed subst, or in
35361# an unquoted here document, in config.status. If some macros were
35362# called several times there might be several #defines for the same
35363# symbol, which is useless. But do not sort them, since the last
35364# AC_DEFINE must be honored.
35365ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35366# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35367# NAME is the cpp macro being defined, VALUE is the value it is being given.
35368# PARAMS is the parameter list in the macro definition--in most cases, it's
35369# just an empty string.
35370ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35371ac_dB='\\)[ (].*,\\1define\\2'
35372ac_dC=' '
35373ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035374
Reid Spencera773bd52006-08-04 18:18:08 +000035375uniq confdefs.h |
35376 sed -n '
35377 t rset
35378 :rset
35379 s/^[ ]*#[ ]*define[ ][ ]*//
35380 t ok
35381 d
35382 :ok
35383 s/[\\&,]/\\&/g
35384 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35385 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35386 ' >>conftest.defines
35387
35388# Remove the space that was appended to ease matching.
35389# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035390# example, in the case of _POSIX_SOURCE, which is predefined and required
35391# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035392# (The regexp can be short, since the line contains either #define or #undef.)
35393echo 's/ $//
35394s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035395
Reid Spencera773bd52006-08-04 18:18:08 +000035396# Break up conftest.defines:
35397ac_max_sed_lines=50
35398
35399# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35400# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35401# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35402# et cetera.
35403ac_in='$ac_file_inputs'
35404ac_out='"$tmp/out1"'
35405ac_nxt='"$tmp/out2"'
35406
35407while :
John Criswell7a73b802003-06-30 21:59:07 +000035408do
Reid Spencera773bd52006-08-04 18:18:08 +000035409 # Write a here document:
35410 cat >>$CONFIG_STATUS <<_ACEOF
35411 # First, check the format of the line:
35412 cat >"\$tmp/defines.sed" <<\\CEOF
35413/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35414/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35415b
35416:def
35417_ACEOF
35418 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035419 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035420 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35421 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35422 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35423 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035424 rm -f conftest.defines
35425 mv conftest.tail conftest.defines
35426done
Reid Spencera773bd52006-08-04 18:18:08 +000035427rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035428
Reid Spencera773bd52006-08-04 18:18:08 +000035429echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035430cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035431 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035432 echo "/* $configure_input */" >"$tmp/config.h"
35433 cat "$ac_result" >>"$tmp/config.h"
35434 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35436echo "$as_me: $ac_file is unchanged" >&6;}
35437 else
John Criswell7a73b802003-06-30 21:59:07 +000035438 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035439 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035440 fi
35441 else
Reid Spencera773bd52006-08-04 18:18:08 +000035442 echo "/* $configure_input */"
35443 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035444 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035445 rm -f "$tmp/out12"
35446 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035447
Reid Spencera773bd52006-08-04 18:18:08 +000035448 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35449echo "$as_me: executing $ac_file commands" >&6;}
35450 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035451 esac
John Criswell7a73b802003-06-30 21:59:07 +000035452
Reid Spencera773bd52006-08-04 18:18:08 +000035453
35454 case $ac_file$ac_mode in
35455 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35456 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35457 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35458 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35459 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35460 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35461 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35462 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035463 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35464 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035465 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35466 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35467 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35468 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35469 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35470 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35471 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35472 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35473 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35474 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035475 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35476 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35477 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35478 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035479
35480 esac
35481done # for ac_tag
35482
John Criswell7a73b802003-06-30 21:59:07 +000035483
35484{ (exit 0); exit 0; }
35485_ACEOF
35486chmod +x $CONFIG_STATUS
35487ac_clean_files=$ac_clean_files_save
35488
35489
35490# configure is writing to config.log, and then calls config.status.
35491# config.status does its own redirection, appending to config.log.
35492# Unfortunately, on DOS this fails, as config.log is still kept open
35493# by configure, so config.status won't be able to write to it; its
35494# output is simply discarded. So we exec the FD to /dev/null,
35495# effectively closing config.log, so it can be properly (re)opened and
35496# appended to by config.status. When coming back to configure, we
35497# need to make the FD available again.
35498if test "$no_create" != yes; then
35499 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035500 ac_config_status_args=
35501 test "$silent" = yes &&
35502 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035503 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035505 exec 5>>config.log
35506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35507 # would make configure fail if this is the last instruction.
35508 $ac_cs_success || { (exit 1); exit 1; }
35509fi
35510
John Criswell12399a12003-09-30 15:55:44 +000035511#
35512# CONFIG_SUBDIRS section.
35513#
35514if test "$no_recursion" != yes; then
35515
35516 # Remove --cache-file and --srcdir arguments so they do not pile up.
35517 ac_sub_configure_args=
35518 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035519 eval "set x $ac_configure_args"
35520 shift
35521 for ac_arg
35522 do
John Criswell12399a12003-09-30 15:55:44 +000035523 if test -n "$ac_prev"; then
35524 ac_prev=
35525 continue
35526 fi
35527 case $ac_arg in
35528 -cache-file | --cache-file | --cache-fil | --cache-fi \
35529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35530 ac_prev=cache_file ;;
35531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35533 | --c=*)
35534 ;;
35535 --config-cache | -C)
35536 ;;
35537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35538 ac_prev=srcdir ;;
35539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35540 ;;
35541 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35542 ac_prev=prefix ;;
35543 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035545 *)
35546 case $ac_arg in
35547 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35548 esac
35549 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035550 esac
35551 done
35552
35553 # Always prepend --prefix to ensure using the same prefix
35554 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035555 ac_arg="--prefix=$prefix"
35556 case $ac_arg in
35557 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35558 esac
35559 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035560
35561 ac_popdir=`pwd`
35562 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35563
35564 # Do not complain, so a configure script can configure whichever
35565 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035566 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035567
Reid Spencera773bd52006-08-04 18:18:08 +000035568 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35569 echo "$as_me:$LINENO: $ac_msg" >&5
35570 echo "$ac_msg" >&6
35571 { as_dir="$ac_dir"
35572 case $as_dir in #(
35573 -*) as_dir=./$as_dir;;
35574 esac
35575 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035576 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035577 while :; do
35578 case $as_dir in #(
35579 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35580 *) as_qdir=$as_dir;;
35581 esac
35582 as_dirs="'$as_qdir' $as_dirs"
35583 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035585 X"$as_dir" : 'X\(//\)[^/]' \| \
35586 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035588echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35590 s//\1/
35591 q
35592 }
35593 /^X\(\/\/\)[^/].*/{
35594 s//\1/
35595 q
35596 }
35597 /^X\(\/\/\)$/{
35598 s//\1/
35599 q
35600 }
35601 /^X\(\/\).*/{
35602 s//\1/
35603 q
35604 }
35605 s/.*/./; q'`
35606 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035607 done
Reid Spencera773bd52006-08-04 18:18:08 +000035608 test -z "$as_dirs" || eval "mkdir $as_dirs"
35609 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35610echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035611 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035612 ac_builddir=.
35613
Reid Spencera773bd52006-08-04 18:18:08 +000035614case "$ac_dir" in
35615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35616*)
John Criswell12399a12003-09-30 15:55:44 +000035617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035618 # A ".." for each directory in $ac_dir_suffix.
35619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35620 case $ac_top_builddir_sub in
35621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35623 esac ;;
35624esac
35625ac_abs_top_builddir=$ac_pwd
35626ac_abs_builddir=$ac_pwd$ac_dir_suffix
35627# for backward compatibility:
35628ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035629
35630case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035631 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035632 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035633 ac_top_srcdir=$ac_top_builddir_sub
35634 ac_abs_top_srcdir=$ac_pwd ;;
35635 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035636 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035637 ac_top_srcdir=$srcdir
35638 ac_abs_top_srcdir=$srcdir ;;
35639 *) # Relative name.
35640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35641 ac_top_srcdir=$ac_top_build_prefix$srcdir
35642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035643esac
Reid Spencera773bd52006-08-04 18:18:08 +000035644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035645
35646
Reid Spencera773bd52006-08-04 18:18:08 +000035647 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035648
35649 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035650 if test -f "$ac_srcdir/configure.gnu"; then
35651 ac_sub_configure=$ac_srcdir/configure.gnu
35652 elif test -f "$ac_srcdir/configure"; then
35653 ac_sub_configure=$ac_srcdir/configure
35654 elif test -f "$ac_srcdir/configure.in"; then
35655 # This should be Cygnus configure.
35656 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035657 else
35658 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35659echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35660 ac_sub_configure=
35661 fi
35662
35663 # The recursion is here.
35664 if test -n "$ac_sub_configure"; then
35665 # Make the cache file name correct relative to the subdirectory.
35666 case $cache_file in
35667 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035668 *) # Relative name.
35669 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035670 esac
35671
Reid Spencera773bd52006-08-04 18:18:08 +000035672 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35673echo "$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 +000035674 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035675 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35676 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035677 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035678echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35679 { (exit 1); exit 1; }; }
35680 fi
35681
Reid Spencera773bd52006-08-04 18:18:08 +000035682 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035683 done
35684fi
35685
Brian Gaekef3b24102003-11-16 18:38:14 +000035686