blob: a3a758cb5c212f36c069f44c551e6914d29431d0 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer53b24862007-07-09 08:10:07 +00003# Generated by GNU Autoconf 2.60 for llvm 2.1svn.
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-'
Reid Spencer53b24862007-07-09 08:10:07 +0000718PACKAGE_VERSION='2.1svn'
719PACKAGE_STRING='llvm 2.1svn'
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
886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
899ETAGSFLAGS
900LLVMGCC
901LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000902USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000903HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000904HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000910LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000913LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
925LIBOBJS
926LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000927ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934CPPFLAGS
935CPP
936CXX
937CXXFLAGS
938CCC
939YACC
940YFLAGS
941CXXCPP
942F77
943FFLAGS'
944ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000945projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000946projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000947projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000948projects/llvm-reopt
949projects/llvm-gcc
950projects/llvm-java
951projects/llvm-tv
952projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000953projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000954projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000955
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
959# The variables have the same names as the options, with
960# dashes changed to underlines.
961cache_file=/dev/null
962exec_prefix=NONE
963no_create=
964no_recursion=
965prefix=NONE
966program_prefix=NONE
967program_suffix=NONE
968program_transform_name=s,x,x,
969silent=
970site=
971srcdir=
972verbose=
973x_includes=NONE
974x_libraries=NONE
975
976# Installation directory options.
977# These are left unexpanded so users can "make install exec_prefix=/foo"
978# and all the variables that are supposed to be based on exec_prefix
979# by default will actually change.
980# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000981# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000982bindir='${exec_prefix}/bin'
983sbindir='${exec_prefix}/sbin'
984libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000985datarootdir='${prefix}/share'
986datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000987sysconfdir='${prefix}/etc'
988sharedstatedir='${prefix}/com'
989localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000990includedir='${prefix}/include'
991oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000992docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993infodir='${datarootdir}/info'
994htmldir='${docdir}'
995dvidir='${docdir}'
996pdfdir='${docdir}'
997psdir='${docdir}'
998libdir='${exec_prefix}/lib'
999localedir='${datarootdir}/locale'
1000mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001001
1002ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001003ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001004for ac_option
1005do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001008 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=
1010 continue
1011 fi
1012
Reid Spencera773bd52006-08-04 18:18:08 +00001013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
John Criswell7a73b802003-06-30 21:59:07 +00001017
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001023
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1028
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1033
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1040
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1043
Reid Spencera773bd52006-08-04 18:18:08 +00001044 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001045 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001047 datadir=$ac_optarg ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1055
John Criswell7a73b802003-06-30 21:59:07 +00001056 -disable-* | --disable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001063 eval enable_$ac_feature=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075 -enable-* | --enable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001082 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1103
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1108
Reid Spencera773bd52006-08-04 18:18:08 +00001109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
John Criswell7a73b802003-06-30 21:59:07 +00001115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1138
Reid Spencera773bd52006-08-04 18:18:08 +00001139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
John Criswell7a73b802003-06-30 21:59:07 +00001144 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001145 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001146 ac_prev=localstatedir ;;
1147 -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 localstatedir=$ac_optarg ;;
1150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1212
Reid Spencera773bd52006-08-04 18:18:08 +00001213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
John Criswell7a73b802003-06-30 21:59:07 +00001223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1232
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1243
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1248
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1253
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1260
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1265
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1268
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1271
1272 -with-* | --with-*)
1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001279 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001280
1281 -without-* | --without-*)
1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1293
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1300
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1307
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1311 ;;
1312
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001319 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001320 export $ac_envvar ;;
1321
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 ;;
1329
1330 esac
1331done
1332
1333if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1337fi
1338
Reid Spencera773bd52006-08-04 18:18:08 +00001339# Be sure to have absolute directory names.
1340for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001344do
Reid Spencera773bd52006-08-04 18:18:08 +00001345 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001346 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001349 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001352done
1353
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
1360
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
1376
1377
Reid Spencera773bd52006-08-04 18:18:08 +00001378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1386
1387
John Criswell7a73b802003-06-30 21:59:07 +00001388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001393$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001397echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001415 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001416 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
Reid Spencera773bd52006-08-04 18:18:08 +00001422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001425 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001430 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
John Criswell7a73b802003-06-30 21:59:07 +00001448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
Reid Spencer53b24862007-07-09 08:10:07 +00001456\`configure' configures llvm 2.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
John Criswell7a73b802003-06-30 21:59:07 +00001476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001478 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001480 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521 case $ac_init_help in
Reid Spencer53b24862007-07-09 08:10:07 +00001522 short | recursive ) echo "Configuration of llvm 2.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001523 esac
1524 cat <<\_ACEOF
1525
1526Optional Features:
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001530 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001531 --enable-expensive-checks
1532
Reid Spencer8b2e1412006-11-17 03:32:33 +00001533 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001535 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001536 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001537 --enable-pic Build LLVM with Position Independent Code (default
1538 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001539 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001540 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001541 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1542 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001543 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001544 --enable-shared[=PKGS] build shared libraries
1545 [default=enable_shared_default]
1546 --enable-static[=PKGS] build static libraries
1547 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001548 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001549 optimize for fast installation
1550 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001551 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001556 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1557 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001558 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001559 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001563 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001564 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001565
1566Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 CC C compiler command
1568 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001571 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001573 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001576 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1577 the first program found out of: `bison -y', `byacc', `yacc'.
1578 YFLAGS The list of arguments that will be passed by default to $YACC.
1579 This script will default YFLAGS to the empty string to avoid a
1580 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001581 CXXCPP C++ preprocessor
1582 F77 Fortran 77 compiler command
1583 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
1588Report bugs to <llvmbugs@cs.uiuc.edu>.
1589_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001590ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001596 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001597 ac_builddir=.
1598
Reid Spencera773bd52006-08-04 18:18:08 +00001599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
John Criswell7a73b802003-06-30 21:59:07 +00001602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001616 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001617 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001621 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001628esac
Reid Spencera773bd52006-08-04 18:18:08 +00001629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630
Reid Spencera773bd52006-08-04 18:18:08 +00001631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001639 else
1640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001643 done
1644fi
1645
Reid Spencera773bd52006-08-04 18:18:08 +00001646test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001647if $ac_init_version; then
1648 cat <<\_ACEOF
Reid Spencer53b24862007-07-09 08:10:07 +00001649llvm configure 2.1svn
Reid Spencera773bd52006-08-04 18:18:08 +00001650generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001651
Reid Spencera773bd52006-08-04 18:18:08 +00001652Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16532002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001654This configure script is free software; the Free Software Foundation
1655gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001656
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001657Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001658_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001659 exit
John Criswell7a73b802003-06-30 21:59:07 +00001660fi
Reid Spencera773bd52006-08-04 18:18:08 +00001661cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001662This file contains any messages produced by compilers while
1663running configure, to aid debugging if configure makes a mistake.
1664
Reid Spencer53b24862007-07-09 08:10:07 +00001665It was created by llvm $as_me 2.1svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001666generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001667
1668 $ $0 $@
1669
1670_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001671exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001672{
1673cat <<_ASUNAME
1674## --------- ##
1675## Platform. ##
1676## --------- ##
1677
1678hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001690/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001691/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
1695_ASUNAME
1696
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 echo "PATH: $as_dir"
1703done
Reid Spencera773bd52006-08-04 18:18:08 +00001704IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001705
1706} >&5
1707
1708cat >&5 <<_ACEOF
1709
1710
1711## ----------- ##
1712## Core tests. ##
1713## ----------- ##
1714
1715_ACEOF
1716
1717
1718# Keep a trace of the command line.
1719# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001720# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001721# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001722# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001723ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001724ac_configure_args0=
1725ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001726ac_must_keep_next=false
1727for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001728do
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001736 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001744 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001758 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 ;;
1760 esac
1761 done
John Criswell7a73b802003-06-30 21:59:07 +00001762done
John Criswell0c38eaf2003-09-10 15:17:25 +00001763$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764$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 +00001765
1766# When interrupted or exit'd, cleanup temporary files, and complete
1767# config.log. We remove comments because anyway the quotes in there
1768# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001769# WARNING: Use '\'' to represent an apostrophe within the trap.
1770# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001771trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1773 {
1774 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776 cat <<\_ASBOX
1777## ---------------- ##
1778## Cache variables. ##
1779## ---------------- ##
1780_ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001783(
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 *) $as_unset $ac_var ;;
1795 esac ;;
1796 esac
1797 done
John Criswell7a73b802003-06-30 21:59:07 +00001798 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001805 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001807 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001808 esac |
1809 sort
1810)
John Criswell7a73b802003-06-30 21:59:07 +00001811 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001812
1813 cat <<\_ASBOX
1814## ----------------- ##
1815## Output variables. ##
1816## ----------------- ##
1817_ASBOX
1818 echo
1819 for ac_var in $ac_subst_vars
1820 do
Reid Spencera773bd52006-08-04 18:18:08 +00001821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 done | sort
1827 echo
1828
1829 if test -n "$ac_subst_files"; then
1830 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001831## ------------------- ##
1832## File substitutions. ##
1833## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001834_ASBOX
1835 echo
1836 for ac_var in $ac_subst_files
1837 do
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001843 done | sort
1844 echo
1845 fi
1846
John Criswell7a73b802003-06-30 21:59:07 +00001847 if test -s confdefs.h; then
1848 cat <<\_ASBOX
1849## ----------- ##
1850## confdefs.h. ##
1851## ----------- ##
1852_ASBOX
1853 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001854 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001855 echo
1856 fi
1857 test "$ac_signal" != 0 &&
1858 echo "$as_me: caught signal $ac_signal"
1859 echo "$as_me: exit $exit_status"
1860 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001861 rm -f core *.core core.conftest.* &&
1862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001863 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001864' 0
John Criswell7a73b802003-06-30 21:59:07 +00001865for ac_signal in 1 2 13 15; do
1866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867done
1868ac_signal=0
1869
1870# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001871rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001872
1873# Predefined preprocessor variables.
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_NAME "$PACKAGE_NAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_VERSION "$PACKAGE_VERSION"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_STRING "$PACKAGE_STRING"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897_ACEOF
1898
1899
1900# Let the site file select an alternate cache file if it wants to.
1901# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001902if test -n "$CONFIG_SITE"; then
1903 set x "$CONFIG_SITE"
1904elif test "x$prefix" != xNONE; then
1905 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1906else
1907 set x "$ac_default_prefix/share/config.site" \
1908 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001909fi
Reid Spencera773bd52006-08-04 18:18:08 +00001910shift
1911for ac_site_file
1912do
John Criswell7a73b802003-06-30 21:59:07 +00001913 if test -r "$ac_site_file"; then
1914 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1915echo "$as_me: loading site script $ac_site_file" >&6;}
1916 sed 's/^/| /' "$ac_site_file" >&5
1917 . "$ac_site_file"
1918 fi
1919done
1920
1921if test -r "$cache_file"; then
1922 # Some versions of bash will fail to source /dev/null (special
1923 # files actually), so we avoid doing that.
1924 if test -f "$cache_file"; then
1925 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1926echo "$as_me: loading cache $cache_file" >&6;}
1927 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001930 esac
1931 fi
1932else
1933 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1934echo "$as_me: creating cache $cache_file" >&6;}
1935 >$cache_file
1936fi
1937
1938# Check that the precious variables saved in the cache have kept the same
1939# value.
1940ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001941for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1945 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001946 case $ac_old_set,$ac_new_set in
1947 set,)
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1949echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1951 ,set)
1952 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1953echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954 ac_cache_corrupted=: ;;
1955 ,);;
1956 *)
1957 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001958 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001959echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001960 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001961echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001962 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001963echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001964 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001965 fi;;
1966 esac
1967 # Pass precious variables to config.status.
1968 if test "$ac_new_set" = set; then
1969 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001970 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001971 *) ac_arg=$ac_var=$ac_new_val ;;
1972 esac
1973 case " $ac_configure_args " in
1974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1975 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1976 esac
1977 fi
1978done
1979if $ac_cache_corrupted; then
1980 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1981echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1982 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1983echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984 { (exit 1); exit 1; }; }
1985fi
1986
Reid Spencera773bd52006-08-04 18:18:08 +00001987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
John Criswell7a73b802003-06-30 21:59:07 +00002011ac_ext=c
2012ac_cpp='$CPP $CPPFLAGS'
2013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016
2017
2018
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002019LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002020
2021
2022
2023
2024
2025
2026
John Criswell7a73b802003-06-30 21:59:07 +00002027ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002028for ac_dir in autoconf "$srcdir"/autoconf; do
2029 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002030 ac_aux_dir=$ac_dir
2031 ac_install_sh="$ac_aux_dir/install-sh -c"
2032 break
Reid Spencera773bd52006-08-04 18:18:08 +00002033 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002034 ac_aux_dir=$ac_dir
2035 ac_install_sh="$ac_aux_dir/install.sh -c"
2036 break
Reid Spencera773bd52006-08-04 18:18:08 +00002037 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/shtool install -c"
2040 break
2041 fi
2042done
2043if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002044 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2045echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002046 { (exit 1); exit 1; }; }
2047fi
Reid Spencera773bd52006-08-04 18:18:08 +00002048
2049# These three variables are undocumented and unsupported,
2050# and are intended to be withdrawn in a future Autoconf release.
2051# They can cause serious problems if a builder's source tree is in a directory
2052# whose full name contains unusual characters.
2053ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2054ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2055ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2056
John Criswell7a73b802003-06-30 21:59:07 +00002057
John Criswell392aaa32003-07-22 19:18:09 +00002058
Reid Spencer2706f8c2004-09-19 23:53:36 +00002059if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2061 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002062echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2063 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064 fi
John Criswell93e1c722003-09-15 17:04:06 +00002065fi
2066
John Criswell33a911a2003-11-25 20:36:46 +00002067for i in `ls ${srcdir}/projects`
2068do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002069 if test -d ${srcdir}/projects/${i} ; then
2070 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002071 CVS) ;;
2072 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002073 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002074 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002075 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002076 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002078 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002079 ;;
2080 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002085 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002086 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002089 ;;
Andrew Lenharth0af32252007-07-17 20:37:35 +00002090 poolalloc) subdirs="$subdirs projects/poolalloc"
2091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002093 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002095 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2096echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002097 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098 esac
John Criswell33a911a2003-11-25 20:36:46 +00002099 fi
2100done
John Criswell559a6c12003-09-30 16:31:48 +00002101
John Criswell7a73b802003-06-30 21:59:07 +00002102
2103# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002104$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2105 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002107 { (exit 1); exit 1; }; }
2108
Reid Spencera773bd52006-08-04 18:18:08 +00002109{ echo "$as_me:$LINENO: checking build system type" >&5
2110echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002111if test "${ac_cv_build+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
Reid Spencera773bd52006-08-04 18:18:08 +00002114 ac_build_alias=$build_alias
2115test "x$ac_build_alias" = x &&
2116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002118 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002121ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2122 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002124 { (exit 1); exit 1; }; }
2125
2126fi
Reid Spencera773bd52006-08-04 18:18:08 +00002127{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2128echo "${ECHO_T}$ac_cv_build" >&6; }
2129case $ac_cv_build in
2130*-*-*) ;;
2131*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132echo "$as_me: error: invalid value of canonical build" >&2;}
2133 { (exit 1); exit 1; }; };;
2134esac
John Criswell7a73b802003-06-30 21:59:07 +00002135build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_save_IFS=$IFS; IFS='-'
2137set x $ac_cv_build
2138shift
2139build_cpu=$1
2140build_vendor=$2
2141shift; shift
2142# Remember, the first character of IFS is used to create $*,
2143# except with old shells:
2144build_os=$*
2145IFS=$ac_save_IFS
2146case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148
Reid Spencera773bd52006-08-04 18:18:08 +00002149{ echo "$as_me:$LINENO: checking host system type" >&5
2150echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002151if test "${ac_cv_host+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
Reid Spencera773bd52006-08-04 18:18:08 +00002154 if test "x$host_alias" = x; then
2155 ac_cv_host=$ac_cv_build
2156else
2157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002160 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002161fi
John Criswell7a73b802003-06-30 21:59:07 +00002162
2163fi
Reid Spencera773bd52006-08-04 18:18:08 +00002164{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165echo "${ECHO_T}$ac_cv_host" >&6; }
2166case $ac_cv_host in
2167*-*-*) ;;
2168*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169echo "$as_me: error: invalid value of canonical host" >&2;}
2170 { (exit 1); exit 1; }; };;
2171esac
John Criswell7a73b802003-06-30 21:59:07 +00002172host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_host
2175shift
2176host_cpu=$1
2177host_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181host_os=$*
2182IFS=$ac_save_IFS
2183case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: checking target system type" >&5
2187echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002188if test "${ac_cv_target+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
Reid Spencera773bd52006-08-04 18:18:08 +00002191 if test "x$target_alias" = x; then
2192 ac_cv_target=$ac_cv_host
2193else
2194 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2196echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002198fi
John Criswell7a73b802003-06-30 21:59:07 +00002199
2200fi
Reid Spencera773bd52006-08-04 18:18:08 +00002201{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2202echo "${ECHO_T}$ac_cv_target" >&6; }
2203case $ac_cv_target in
2204*-*-*) ;;
2205*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2206echo "$as_me: error: invalid value of canonical target" >&2;}
2207 { (exit 1); exit 1; }; };;
2208esac
John Criswell7a73b802003-06-30 21:59:07 +00002209target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_target
2212shift
2213target_cpu=$1
2214target_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218target_os=$*
2219IFS=$ac_save_IFS
2220case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222
2223# The aliases save the names the user supplied, while $host etc.
2224# will get canonicalized.
2225test -n "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2227 NONENONEs,x,x, &&
2228 program_prefix=${target_alias}-
2229
Reid Spencera773bd52006-08-04 18:18:08 +00002230{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2231echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002235 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 llvm_cv_os_type="AIX"
2240 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002241 *-*-irix*)
2242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244 llvm_cv_os_type="IRIX"
2245 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 llvm_cv_os_type="Cygwin"
2250 llvm_cv_platform_type="Unix" ;;
2251 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002252 llvm_cv_link_all_option="-Wl,-all_load"
2253 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002254 llvm_cv_os_type="Darwin"
2255 llvm_cv_platform_type="Unix" ;;
2256 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 llvm_cv_os_type="FreeBSD"
2260 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002261 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002264 llvm_cv_os_type="OpenBSD"
2265 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002266 *-*-netbsd*)
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="NetBSD"
2270 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002271 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002274 llvm_cv_os_type="HP-UX"
2275 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="Interix"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="Linux"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option="-Wl,-z,allextract"
2288 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 llvm_cv_os_type="SunOS"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 llvm_cv_os_type="Win32"
2295 llvm_cv_platform_type="Win32" ;;
2296 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="MingW"
2300 llvm_cv_platform_type="Win32" ;;
2301 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option=""
2303 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="Unknown"
2305 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002306esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002307fi
Reid Spencera773bd52006-08-04 18:18:08 +00002308{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2309echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002310
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311if test "$llvm_cv_os_type" = "Unknown" ; then
2312 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2313echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002314 { (exit 1); exit 1; }; }
2315fi
2316
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002318
2319
Reid Spencera773bd52006-08-04 18:18:08 +00002320LINKALL=$llvm_cv_link_all_option
2321
2322NOLINKALL=$llvm_cv_no_link_all_option
2323
2324
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325case $llvm_cv_platform_type in
2326 Unix)
2327
2328cat >>confdefs.h <<\_ACEOF
2329#define LLVM_ON_UNIX 1
2330_ACEOF
2331
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002332 LLVM_ON_UNIX=1
2333
2334 LLVM_ON_WIN32=0
2335
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 ;;
2337 Win32)
2338
2339cat >>confdefs.h <<\_ACEOF
2340#define LLVM_ON_WIN32 1
2341_ACEOF
2342
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002343 LLVM_ON_UNIX=0
2344
2345 LLVM_ON_WIN32=1
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347 ;;
2348esac
2349
Reid Spencera773bd52006-08-04 18:18:08 +00002350{ echo "$as_me:$LINENO: checking target architecture" >&5
2351echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352if test "${llvm_cv_target_arch+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002356 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002357 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002358 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2359 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002360 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002361 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002362 arm-*) llvm_cv_target_arch="ARM" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002363 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002364esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365fi
Reid Spencera773bd52006-08-04 18:18:08 +00002366{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2367echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002368
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369if test "$llvm_cv_target_arch" = "Unknown" ; then
2370 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2371echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2372fi
John Criswell76595452003-07-01 22:07:39 +00002373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002375
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377ac_ext=c
2378ac_cpp='$CPP $CPPFLAGS'
2379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002382if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2384set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387if test "${ac_cv_prog_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2392else
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002399 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 +00002400 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404done
2405done
Reid Spencera773bd52006-08-04 18:18:08 +00002406IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407
2408fi
2409fi
2410CC=$ac_cv_prog_CC
2411if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002412 { echo "$as_me:$LINENO: result: $CC" >&5
2413echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414else
Reid Spencera773bd52006-08-04 18:18:08 +00002415 { echo "$as_me:$LINENO: result: no" >&5
2416echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417fi
2418
Reid Spencera773bd52006-08-04 18:18:08 +00002419
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420fi
2421if test -z "$ac_cv_prog_CC"; then
2422 ac_ct_CC=$CC
2423 # Extract the first word of "gcc", so it can be a program name with args.
2424set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430 if test -n "$ac_ct_CC"; then
2431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002439 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 +00002440 ac_cv_prog_ac_ct_CC="gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444done
2445done
Reid Spencera773bd52006-08-04 18:18:08 +00002446IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447
2448fi
2449fi
2450ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002452 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454else
Reid Spencera773bd52006-08-04 18:18:08 +00002455 { echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457fi
2458
Reid Spencera773bd52006-08-04 18:18:08 +00002459 if test "x$ac_ct_CC" = x; then
2460 CC=""
2461 else
2462 case $cross_compiling:$ac_tool_warned in
2463yes:)
2464{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2465whose name does not start with the host triplet. If you think this
2466configuration is useful to you, please write to autoconf@gnu.org." >&5
2467echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2468whose name does not start with the host triplet. If you think this
2469configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2470ac_tool_warned=yes ;;
2471esac
2472 CC=$ac_ct_CC
2473 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474else
2475 CC="$ac_cv_prog_CC"
2476fi
2477
2478if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002479 if test -n "$ac_tool_prefix"; then
2480 # 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 +00002481set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002496 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 +00002497 ac_cv_prog_CC="${ac_tool_prefix}cc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502done
Reid Spencera773bd52006-08-04 18:18:08 +00002503IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002509 { echo "$as_me:$LINENO: result: $CC" >&5
2510echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511else
Reid Spencera773bd52006-08-04 18:18:08 +00002512 { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514fi
2515
Reid Spencera773bd52006-08-04 18:18:08 +00002516
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002517 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518fi
2519if test -z "$CC"; then
2520 # Extract the first word of "cc", so it can be a program name with args.
2521set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
2530 ac_prog_rejected=no
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002537 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 +00002538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2539 ac_prog_rejected=yes
2540 continue
2541 fi
2542 ac_cv_prog_CC="cc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546done
2547done
Reid Spencera773bd52006-08-04 18:18:08 +00002548IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549
2550if test $ac_prog_rejected = yes; then
2551 # We found a bogon in the path, so make sure we never use it.
2552 set dummy $ac_cv_prog_CC
2553 shift
2554 if test $# != 0; then
2555 # We chose a different compiler from the bogus one.
2556 # However, it has the same basename, so the bogon will be chosen
2557 # first if we set CC to just the basename; use the full file name.
2558 shift
2559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2560 fi
2561fi
2562fi
2563fi
2564CC=$ac_cv_prog_CC
2565if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002566 { echo "$as_me:$LINENO: result: $CC" >&5
2567echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568else
Reid Spencera773bd52006-08-04 18:18:08 +00002569 { echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572
Reid Spencera773bd52006-08-04 18:18:08 +00002573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574fi
2575if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002577 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002578 do
2579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002595 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 +00002596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2599 fi
2600done
2601done
Reid Spencera773bd52006-08-04 18:18:08 +00002602IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002603
2604fi
2605fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606CC=$ac_cv_prog_CC
2607if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002608 { echo "$as_me:$LINENO: result: $CC" >&5
2609echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002610else
Reid Spencera773bd52006-08-04 18:18:08 +00002611 { echo "$as_me:$LINENO: result: no" >&5
2612echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002613fi
2614
Reid Spencera773bd52006-08-04 18:18:08 +00002615
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002617 done
2618fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619if test -z "$CC"; then
2620 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002621 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002622do
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002639 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 +00002640 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644done
2645done
Reid Spencera773bd52006-08-04 18:18:08 +00002646IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002647
2648fi
2649fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002654else
Reid Spencera773bd52006-08-04 18:18:08 +00002655 { echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002657fi
2658
Reid Spencera773bd52006-08-04 18:18:08 +00002659
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002661done
John Criswell7a73b802003-06-30 21:59:07 +00002662
Reid Spencera773bd52006-08-04 18:18:08 +00002663 if test "x$ac_ct_CC" = x; then
2664 CC=""
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667yes:)
2668{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2669whose name does not start with the host triplet. If you think this
2670configuration is useful to you, please write to autoconf@gnu.org." >&5
2671echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2672whose name does not start with the host triplet. If you think this
2673configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2674ac_tool_warned=yes ;;
2675esac
2676 CC=$ac_ct_CC
2677 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678fi
2679
John Criswell7a73b802003-06-30 21:59:07 +00002680fi
2681
2682
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2684See \`config.log' for more details." >&5
2685echo "$as_me: error: no acceptable C compiler found in \$PATH
2686See \`config.log' for more details." >&2;}
2687 { (exit 1); exit 1; }; }
2688
John Criswell7a73b802003-06-30 21:59:07 +00002689# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002690echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002691ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002692{ (ac_try="$ac_compiler --version >&5"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002702{ (ac_try="$ac_compiler -v >&5"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002712{ (ac_try="$ac_compiler -V >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722
2723cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002729
John Criswell7a73b802003-06-30 21:59:07 +00002730int
2731main ()
2732{
2733
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002739ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002740# Try to create an executable without -o first, disregard a.out.
2741# It will help us diagnose broken compilers, and finding out an intuition
2742# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002743{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2744echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002745ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002746#
2747# List of possible output files, starting from the most likely.
2748# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2749# only as a last resort. b.out is created by i960 compilers.
2750ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2751#
2752# The IRIX 6 linker writes into existing files which may not be
2753# executable, retaining their permissions. Remove them first so a
2754# subsequent execution test works.
2755ac_rmfiles=
2756for ac_file in $ac_files
2757do
2758 case $ac_file in
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2761 esac
2762done
2763rm -f $ac_rmfiles
2764
2765if { (ac_try="$ac_link_default"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002775 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2776# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2777# in a Makefile. We should not override ac_cv_exeext if it was cached,
2778# so that the user can short-circuit this test for compilers unknown to
2779# Autoconf.
2780for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002781do
2782 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002783 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002785 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002786 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002787 # We found the default executable, but exeext='' is most
2788 # certainly right.
2789 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002790 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002791 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2792 then :; else
2793 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2794 fi
2795 # We set ac_cv_exeext here because the later test for it is not
2796 # safe: cross compilers may not add the suffix if given an `-o'
2797 # argument, so we may need to know it at that point already.
2798 # Even if this section looks crufty: it has the advantage of
2799 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002800 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002801 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002802 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002803 esac
2804done
Reid Spencera773bd52006-08-04 18:18:08 +00002805test "$ac_cv_exeext" = no && ac_cv_exeext=
2806
John Criswell7a73b802003-06-30 21:59:07 +00002807else
2808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002809sed 's/^/| /' conftest.$ac_ext >&5
2810
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002811{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002812See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002813echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002814See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002815 { (exit 77); exit 77; }; }
2816fi
2817
2818ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002819{ echo "$as_me:$LINENO: result: $ac_file" >&5
2820echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002821
Reid Spencera773bd52006-08-04 18:18:08 +00002822# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002823# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002824{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2825echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002826# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2827# If not cross compiling, check that we can run a simple program.
2828if test "$cross_compiling" != yes; then
2829 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002830 { (case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833esac
2834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 cross_compiling=no
2840 else
2841 if test "$cross_compiling" = maybe; then
2842 cross_compiling=yes
2843 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002844 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002845If you meant to cross compile, use \`--host'.
2846See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002847echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002848If you meant to cross compile, use \`--host'.
2849See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002850 { (exit 1); exit 1; }; }
2851 fi
2852 fi
2853fi
Reid Spencera773bd52006-08-04 18:18:08 +00002854{ echo "$as_me:$LINENO: result: yes" >&5
2855echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002856
John Criswell0c38eaf2003-09-10 15:17:25 +00002857rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002858ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002859# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002860# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002861{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2862echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2863{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2864echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002865
Reid Spencera773bd52006-08-04 18:18:08 +00002866{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2867echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2868if { (ac_try="$ac_link"
2869case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2879# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2880# work properly (i.e., refer to `conftest.exe'), while it won't with
2881# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002882for ac_file in conftest.exe conftest conftest.*; do
2883 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002884 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002887 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002888 * ) break;;
2889 esac
2890done
2891else
John Criswell0c38eaf2003-09-10 15:17:25 +00002892 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2893See \`config.log' for more details." >&5
2894echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2895See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002896 { (exit 1); exit 1; }; }
2897fi
2898
2899rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002900{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2901echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002902
2903rm -f conftest.$ac_ext
2904EXEEXT=$ac_cv_exeext
2905ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002906{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2907echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002908if test "${ac_cv_objext+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002912/* confdefs.h. */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002917
John Criswell7a73b802003-06-30 21:59:07 +00002918int
2919main ()
2920{
2921
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002927if { (ac_try="$ac_compile"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002939 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944done
2945else
2946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2950See \`config.log' for more details." >&5
2951echo "$as_me: error: cannot compute suffix of object files: cannot compile
2952See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002953 { (exit 1); exit 1; }; }
2954fi
2955
2956rm -f conftest.$ac_cv_objext conftest.$ac_ext
2957fi
Reid Spencera773bd52006-08-04 18:18:08 +00002958{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2959echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002960OBJEXT=$ac_cv_objext
2961ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002962{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2963echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002964if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002973
John Criswell7a73b802003-06-30 21:59:07 +00002974int
2975main ()
2976{
2977#ifndef __GNUC__
2978 choke me
2979#endif
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002986if { (ac_try="$ac_compile"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3000 { (case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 ac_compiler_gnu=yes
3020else
3021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003022sed 's/^/| /' conftest.$ac_ext >&5
3023
Reid Spencera773bd52006-08-04 18:18:08 +00003024 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003025fi
Reid Spencera773bd52006-08-04 18:18:08 +00003026
3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003028ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003029
3030fi
Reid Spencera773bd52006-08-04 18:18:08 +00003031{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3032echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003033GCC=`test $ac_compiler_gnu = yes && echo yes`
3034ac_test_CFLAGS=${CFLAGS+set}
3035ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003036{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3037echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003038if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
Reid Spencera773bd52006-08-04 18:18:08 +00003041 ac_save_c_werror_flag=$ac_c_werror_flag
3042 ac_c_werror_flag=yes
3043 ac_cv_prog_cc_g=no
3044 CFLAGS="-g"
3045 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003051
John Criswell7a73b802003-06-30 21:59:07 +00003052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003061if { (ac_try="$ac_compile"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003094 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003095else
3096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003097sed 's/^/| /' conftest.$ac_ext >&5
3098
Reid Spencera773bd52006-08-04 18:18:08 +00003099 CFLAGS=""
3100 cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext
3116if { (ac_try="$ac_compile"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 :
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (ac_try="$ac_compile"
3173case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3186 { (case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_try") 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_cv_prog_cc_g=yes
3206else
3207 echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210
John Criswell7a73b802003-06-30 21:59:07 +00003211fi
Reid Spencera773bd52006-08-04 18:18:08 +00003212
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003214fi
Reid Spencera773bd52006-08-04 18:18:08 +00003215
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217fi
3218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_c_werror_flag=$ac_save_c_werror_flag
3221fi
3222{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3223echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224if test "$ac_test_CFLAGS" = set; then
3225 CFLAGS=$ac_save_CFLAGS
3226elif test $ac_cv_prog_cc_g = yes; then
3227 if test "$GCC" = yes; then
3228 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003229 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003231 fi
3232else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233 if test "$GCC" = yes; then
3234 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003235 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003236 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003237 fi
3238fi
Reid Spencera773bd52006-08-04 18:18:08 +00003239{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3240echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3241if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
Reid Spencera773bd52006-08-04 18:18:08 +00003244 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245ac_save_CC=$CC
3246cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252#include <stdarg.h>
3253#include <stdio.h>
3254#include <sys/types.h>
3255#include <sys/stat.h>
3256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3257struct buf { int x; };
3258FILE * (*rcsopen) (struct buf *, struct stat *, int);
3259static char *e (p, i)
3260 char **p;
3261 int i;
3262{
3263 return p[i];
3264}
3265static char *f (char * (*g) (char **, int), char **p, ...)
3266{
3267 char *s;
3268 va_list v;
3269 va_start (v,p);
3270 s = g (p, va_arg (v,int));
3271 va_end (v);
3272 return s;
3273}
3274
3275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3276 function prototypes and stuff, but not '\xHH' hex character constants.
3277 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003278 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3280 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003281 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3283
Reid Spencera773bd52006-08-04 18:18:08 +00003284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3285 inside strings and character constants. */
3286#define FOO(x) 'x'
3287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3288
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289int test (int i, double x);
3290struct s1 {int (*f) (int a);};
3291struct s2 {int (*f) (double a);};
3292int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293int argc;
3294char **argv;
3295int
3296main ()
3297{
3298return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3299 ;
3300 return 0;
3301}
3302_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305do
3306 CC="$ac_save_CC $ac_arg"
3307 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003308if { (ac_try="$ac_compile"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003341 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342else
3343 echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
Reid Spencera773bd52006-08-04 18:18:08 +00003346
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347fi
Reid Spencera773bd52006-08-04 18:18:08 +00003348
3349rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351done
Reid Spencera773bd52006-08-04 18:18:08 +00003352rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353CC=$ac_save_CC
3354
3355fi
Reid Spencera773bd52006-08-04 18:18:08 +00003356# AC_CACHE_VAL
3357case "x$ac_cv_prog_cc_c89" in
3358 x)
3359 { echo "$as_me:$LINENO: result: none needed" >&5
3360echo "${ECHO_T}none needed" >&6; } ;;
3361 xno)
3362 { echo "$as_me:$LINENO: result: unsupported" >&5
3363echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003365 CC="$CC $ac_cv_prog_cc_c89"
3366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3367echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368esac
3369
John Criswell0c38eaf2003-09-10 15:17:25 +00003370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376
3377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003383{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3384echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385# On Suns, sometimes $CPP names a directory.
3386if test -n "$CPP" && test -d "$CPP"; then
3387 CPP=
3388fi
3389if test -z "$CPP"; then
3390 if test "${ac_cv_prog_CPP+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393 # Double quotes because CPP needs to be expanded
3394 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3395 do
3396 ac_preproc_ok=false
3397for ac_c_preproc_warn_flag in '' yes
3398do
3399 # Use a header file that comes with gcc, so configuring glibc
3400 # with a fresh cross-compiler works.
3401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402 # <limits.h> exists even on freestanding compilers.
3403 # On the NeXT, cc -E runs the code through the compiler's parser,
3404 # not just through cpp. "Syntax error" is here to catch this case.
3405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
3411#ifdef __STDC__
3412# include <limits.h>
3413#else
3414# include <assert.h>
3415#endif
3416 Syntax error
3417_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003418if { (ac_try="$ac_cpp conftest.$ac_ext"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 else
3435 ac_cpp_err=
3436 fi
3437else
3438 ac_cpp_err=yes
3439fi
3440if test -z "$ac_cpp_err"; then
3441 :
3442else
3443 echo "$as_me: failed program was:" >&5
3444sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 # Broken: fails on valid input.
3447continue
3448fi
Reid Spencera773bd52006-08-04 18:18:08 +00003449
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003450rm -f conftest.err conftest.$ac_ext
3451
Reid Spencera773bd52006-08-04 18:18:08 +00003452 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453 # can be detected and how.
3454 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#include <ac_nonexistent.h>
3461_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003462if { (ac_try="$ac_cpp conftest.$ac_ext"
3463case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466esac
3467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null; then
3475 if test -s conftest.err; then
3476 ac_cpp_err=$ac_c_preproc_warn_flag
3477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478 else
3479 ac_cpp_err=
3480 fi
3481else
3482 ac_cpp_err=yes
3483fi
3484if test -z "$ac_cpp_err"; then
3485 # Broken: success on invalid input.
3486continue
3487else
3488 echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 # Passes both tests.
3492ac_preproc_ok=:
3493break
3494fi
Reid Spencera773bd52006-08-04 18:18:08 +00003495
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496rm -f conftest.err conftest.$ac_ext
3497
3498done
3499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500rm -f conftest.err conftest.$ac_ext
3501if $ac_preproc_ok; then
3502 break
3503fi
3504
3505 done
3506 ac_cv_prog_CPP=$CPP
3507
3508fi
3509 CPP=$ac_cv_prog_CPP
3510else
3511 ac_cv_prog_CPP=$CPP
3512fi
Reid Spencera773bd52006-08-04 18:18:08 +00003513{ echo "$as_me:$LINENO: result: $CPP" >&5
3514echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003515ac_preproc_ok=false
3516for ac_c_preproc_warn_flag in '' yes
3517do
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h. */
3530#ifdef __STDC__
3531# include <limits.h>
3532#else
3533# include <assert.h>
3534#endif
3535 Syntax error
3536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003537if { (ac_try="$ac_cpp conftest.$ac_ext"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553 else
3554 ac_cpp_err=
3555 fi
3556else
3557 ac_cpp_err=yes
3558fi
3559if test -z "$ac_cpp_err"; then
3560 :
3561else
3562 echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 # Broken: fails on valid input.
3566continue
3567fi
Reid Spencera773bd52006-08-04 18:18:08 +00003568
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569rm -f conftest.err conftest.$ac_ext
3570
Reid Spencera773bd52006-08-04 18:18:08 +00003571 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 # can be detected and how.
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#include <ac_nonexistent.h>
3580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003581if { (ac_try="$ac_cpp conftest.$ac_ext"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597 else
3598 ac_cpp_err=
3599 fi
3600else
3601 ac_cpp_err=yes
3602fi
3603if test -z "$ac_cpp_err"; then
3604 # Broken: success on invalid input.
3605continue
3606else
3607 echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 # Passes both tests.
3611ac_preproc_ok=:
3612break
3613fi
Reid Spencera773bd52006-08-04 18:18:08 +00003614
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615rm -f conftest.err conftest.$ac_ext
3616
3617done
3618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619rm -f conftest.err conftest.$ac_ext
3620if $ac_preproc_ok; then
3621 :
3622else
3623 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3624See \`config.log' for more details." >&5
3625echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3626See \`config.log' for more details." >&2;}
3627 { (exit 1); exit 1; }; }
3628fi
3629
John Criswell7a73b802003-06-30 21:59:07 +00003630ac_ext=c
3631ac_cpp='$CPP $CPPFLAGS'
3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
John Criswell7a73b802003-06-30 21:59:07 +00003636
Reid Spencera773bd52006-08-04 18:18:08 +00003637{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3638echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003639if test "${ac_cv_path_GREP+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
Reid Spencera773bd52006-08-04 18:18:08 +00003642 # Extract the first word of "grep ggrep" to use in msg output
3643if test -z "$GREP"; then
3644set dummy grep ggrep; ac_prog_name=$2
3645if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
Reid Spencera773bd52006-08-04 18:18:08 +00003648 ac_path_GREP_found=false
3649# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003655 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003656 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003657 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3658 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3659 # Check for GNU ac_path_GREP and select it if it is found.
3660 # Check for GNU $ac_path_GREP
3661case `"$ac_path_GREP" --version 2>&1` in
3662*GNU*)
3663 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3664*)
3665 ac_count=0
3666 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3667 while :
3668 do
3669 cat "conftest.in" "conftest.in" >"conftest.tmp"
3670 mv "conftest.tmp" "conftest.in"
3671 cp "conftest.in" "conftest.nl"
3672 echo 'GREP' >> "conftest.nl"
3673 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3675 ac_count=`expr $ac_count + 1`
3676 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3677 # Best one so far, save it but keep looking for a better one
3678 ac_cv_path_GREP="$ac_path_GREP"
3679 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003681 # 10*(2^10) chars as input seems more than enough
3682 test $ac_count -gt 10 && break
3683 done
3684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685esac
3686
3687
3688 $ac_path_GREP_found && break 3
3689 done
3690done
3691
3692done
3693IFS=$as_save_IFS
3694
3695
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003696fi
Reid Spencera773bd52006-08-04 18:18:08 +00003697
3698GREP="$ac_cv_path_GREP"
3699if test -z "$GREP"; then
3700 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3701echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3702 { (exit 1); exit 1; }; }
3703fi
3704
3705else
3706 ac_cv_path_GREP=$GREP
3707fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003708
John Criswell7a73b802003-06-30 21:59:07 +00003709
Reid Spencera773bd52006-08-04 18:18:08 +00003710fi
3711{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3712echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3713 GREP="$ac_cv_path_GREP"
3714
3715
3716{ echo "$as_me:$LINENO: checking for egrep" >&5
3717echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3718if test "${ac_cv_path_EGREP+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3722 then ac_cv_path_EGREP="$GREP -E"
3723 else
3724 # Extract the first word of "egrep" to use in msg output
3725if test -z "$EGREP"; then
3726set dummy egrep; ac_prog_name=$2
3727if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 ac_path_EGREP_found=false
3731# Loop through the user's path and test for each of PROGNAME-LIST
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_prog in egrep; do
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3740 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3741 # Check for GNU ac_path_EGREP and select it if it is found.
3742 # Check for GNU $ac_path_EGREP
3743case `"$ac_path_EGREP" --version 2>&1` in
3744*GNU*)
3745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3746*)
3747 ac_count=0
3748 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3749 while :
3750 do
3751 cat "conftest.in" "conftest.in" >"conftest.tmp"
3752 mv "conftest.tmp" "conftest.in"
3753 cp "conftest.in" "conftest.nl"
3754 echo 'EGREP' >> "conftest.nl"
3755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757 ac_count=`expr $ac_count + 1`
3758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3759 # Best one so far, save it but keep looking for a better one
3760 ac_cv_path_EGREP="$ac_path_EGREP"
3761 ac_path_EGREP_max=$ac_count
3762 fi
3763 # 10*(2^10) chars as input seems more than enough
3764 test $ac_count -gt 10 && break
3765 done
3766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767esac
3768
3769
3770 $ac_path_EGREP_found && break 3
3771 done
3772done
3773
3774done
3775IFS=$as_save_IFS
3776
3777
3778fi
3779
3780EGREP="$ac_cv_path_EGREP"
3781if test -z "$EGREP"; then
3782 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3783echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3784 { (exit 1); exit 1; }; }
3785fi
3786
3787else
3788 ac_cv_path_EGREP=$EGREP
3789fi
3790
3791
3792 fi
3793fi
3794{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3795echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3796 EGREP="$ac_cv_path_EGREP"
3797
3798
3799{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3800echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003801if test "${ac_cv_header_stdc+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003810#include <stdlib.h>
3811#include <stdarg.h>
3812#include <string.h>
3813#include <float.h>
3814
John Criswell0c38eaf2003-09-10 15:17:25 +00003815int
3816main ()
3817{
3818
3819 ;
3820 return 0;
3821}
John Criswell7a73b802003-06-30 21:59:07 +00003822_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003823rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003824if { (ac_try="$ac_compile"
3825case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003836 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3838 { (case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841esac
3842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003857 ac_cv_header_stdc=yes
3858else
3859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003860sed 's/^/| /' conftest.$ac_ext >&5
3861
Reid Spencera773bd52006-08-04 18:18:08 +00003862 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003863fi
Reid Spencera773bd52006-08-04 18:18:08 +00003864
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003866
3867if test $ac_cv_header_stdc = yes; then
3868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003875#include <string.h>
3876
3877_ACEOF
3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003879 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003880 :
3881else
3882 ac_cv_header_stdc=no
3883fi
3884rm -f conftest*
3885
3886fi
3887
3888if test $ac_cv_header_stdc = yes; then
3889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003896#include <stdlib.h>
3897
3898_ACEOF
3899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003900 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003901 :
3902else
3903 ac_cv_header_stdc=no
3904fi
3905rm -f conftest*
3906
3907fi
3908
3909if test $ac_cv_header_stdc = yes; then
3910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3911 if test "$cross_compiling" = yes; then
3912 :
3913else
3914 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003915/* confdefs.h. */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003920#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003921#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003922#if ((' ' & 0x0FF) == 0x020)
3923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3925#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003926# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003927 (('a' <= (c) && (c) <= 'i') \
3928 || ('j' <= (c) && (c) <= 'r') \
3929 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3931#endif
3932
3933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3934int
3935main ()
3936{
3937 int i;
3938 for (i = 0; i < 256; i++)
3939 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003940 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003941 return 2;
3942 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003943}
3944_ACEOF
3945rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003946if { (ac_try="$ac_link"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003956 { (case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959esac
3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3965 :
3966else
3967 echo "$as_me: program exited with status $ac_status" >&5
3968echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003969sed 's/^/| /' conftest.$ac_ext >&5
3970
John Criswell7a73b802003-06-30 21:59:07 +00003971( exit $ac_status )
3972ac_cv_header_stdc=no
3973fi
Reid Spencera773bd52006-08-04 18:18:08 +00003974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3975fi
3976
3977
John Criswell7a73b802003-06-30 21:59:07 +00003978fi
3979fi
Reid Spencera773bd52006-08-04 18:18:08 +00003980{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3981echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003982if test $ac_cv_header_stdc = yes; then
3983
3984cat >>confdefs.h <<\_ACEOF
3985#define STDC_HEADERS 1
3986_ACEOF
3987
3988fi
3989
Reid Spencera773bd52006-08-04 18:18:08 +00003990# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4001 inttypes.h stdint.h unistd.h
4002do
4003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4004{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 cat >conftest.$ac_ext <<_ACEOF
4010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
4015$ac_includes_default
4016
4017#include <$ac_header>
4018_ACEOF
4019rm -f conftest.$ac_objext
4020if { (ac_try="$ac_compile"
4021case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024esac
4025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4034 { (case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037esac
4038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039 (eval "$ac_try") 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_Header=yes"
4054else
4055 echo "$as_me: failed program was:" >&5
4056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 eval "$as_ac_Header=no"
4059fi
4060
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062fi
4063ac_res=`eval echo '${'$as_ac_Header'}'`
4064 { echo "$as_me:$LINENO: result: $ac_res" >&5
4065echo "${ECHO_T}$ac_res" >&6; }
4066if test `eval echo '${'$as_ac_Header'}'` = yes; then
4067 cat >>confdefs.h <<_ACEOF
4068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4069_ACEOF
4070
4071fi
4072
4073done
4074
4075
4076{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4077echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4078if test "${ac_cv_c_bigendian+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081 # See if sys/param.h defines the BYTE_ORDER macro.
4082cat >conftest.$ac_ext <<_ACEOF
4083/* confdefs.h. */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h. */
4088#include <sys/types.h>
4089#include <sys/param.h>
4090
4091int
4092main ()
4093{
4094#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4095 bogus endian macros
4096#endif
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (ac_try="$ac_compile"
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4117 { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120esac
4121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_try") 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 # It does; now see whether it defined to BIG_ENDIAN or not.
4137cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
4143#include <sys/types.h>
4144#include <sys/param.h>
4145
4146int
4147main ()
4148{
4149#if BYTE_ORDER != BIG_ENDIAN
4150 not big endian
4151#endif
4152
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (ac_try="$ac_compile"
4159case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 ac_cv_c_bigendian=yes
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 ac_cv_c_bigendian=no
4197fi
4198
4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200else
4201 echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 # It does not; compile a test program.
4205if test "$cross_compiling" = yes; then
4206 # try to guess the endianness by grepping values into an object file
4207 ac_cv_c_bigendian=unknown
4208 cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4215short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4216void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4217short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4218short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4219void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4220int
4221main ()
4222{
4223 _ascii (); _ebcdic ();
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228rm -f conftest.$ac_objext
4229if { (ac_try="$ac_compile"
4230case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246esac
4247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4263 ac_cv_c_bigendian=yes
4264fi
4265if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4266 if test "$ac_cv_c_bigendian" = unknown; then
4267 ac_cv_c_bigendian=no
4268 else
4269 # finding both strings is unlikely to happen, but who knows?
4270 ac_cv_c_bigendian=unknown
4271 fi
4272fi
4273else
4274 echo "$as_me: failed program was:" >&5
4275sed 's/^/| /' conftest.$ac_ext >&5
4276
4277
4278fi
4279
4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281else
4282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288$ac_includes_default
4289int
4290main ()
4291{
4292
4293 /* Are we little or big endian? From Harbison&Steele. */
4294 union
4295 {
4296 long int l;
4297 char c[sizeof (long int)];
4298 } u;
4299 u.l = 1;
4300 return u.c[sizeof (long int) - 1] == 1;
4301
4302 ;
4303 return 0;
4304}
4305_ACEOF
4306rm -f conftest$ac_exeext
4307if { (ac_try="$ac_link"
4308case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_link") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_c_bigendian=no
4327else
4328 echo "$as_me: program exited with status $ac_status" >&5
4329echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332( exit $ac_status )
4333ac_cv_c_bigendian=yes
4334fi
4335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336fi
4337
4338
4339fi
4340
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342fi
4343{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4344echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4345case $ac_cv_c_bigendian in
4346 yes)
4347 ENDIAN=big
4348 ;;
4349 no)
4350 ENDIAN=little
4351 ;;
4352 *)
4353 { { echo "$as_me:$LINENO: error: unknown endianness
4354presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4355echo "$as_me: error: unknown endianness
4356presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4357 { (exit 1); exit 1; }; } ;;
4358esac
4359
4360
4361if test "$cross_compiling" = yes; then
4362 LLVM_CROSS_COMPILING=1
4363
4364
4365{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4366echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4367if test "${ac_cv_build_exeext+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4371 ac_cv_build_exeext=.exe
4372else
4373 ac_build_prefix=${build_alias}-
4374
4375 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4376set dummy ${ac_build_prefix}gcc; ac_word=$2
4377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 if test -n "$BUILD_CC"; then
4383 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396done
4397done
4398IFS=$as_save_IFS
4399
4400fi
4401fi
4402BUILD_CC=$ac_cv_prog_BUILD_CC
4403if test -n "$BUILD_CC"; then
4404 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4405echo "${ECHO_T}$BUILD_CC" >&6; }
4406else
4407 { echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6; }
4409fi
4410
4411
4412 if test -z "$BUILD_CC"; then
4413 # Extract the first word of "gcc", so it can be a program name with args.
4414set dummy gcc; ac_word=$2
4415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 if test -n "$BUILD_CC"; then
4421 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_BUILD_CC="gcc"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435done
4436IFS=$as_save_IFS
4437
4438fi
4439fi
4440BUILD_CC=$ac_cv_prog_BUILD_CC
4441if test -n "$BUILD_CC"; then
4442 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4443echo "${ECHO_T}$BUILD_CC" >&6; }
4444else
4445 { echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6; }
4447fi
4448
4449
4450 if test -z "$BUILD_CC"; then
4451 # Extract the first word of "cc", so it can be a program name with args.
4452set dummy cc; ac_word=$2
4453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 if test -n "$BUILD_CC"; then
4459 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4460else
4461 ac_prog_rejected=no
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4470 ac_prog_rejected=yes
4471 continue
4472 fi
4473 ac_cv_prog_BUILD_CC="cc"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477done
4478done
4479IFS=$as_save_IFS
4480
4481if test $ac_prog_rejected = yes; then
4482 # We found a bogon in the path, so make sure we never use it.
4483 set dummy $ac_cv_prog_BUILD_CC
4484 shift
4485 if test $# != 0; then
4486 # We chose a different compiler from the bogus one.
4487 # However, it has the same basename, so the bogon will be chosen
4488 # first if we set BUILD_CC to just the basename; use the full file name.
4489 shift
4490 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4491 fi
4492fi
4493fi
4494fi
4495BUILD_CC=$ac_cv_prog_BUILD_CC
4496if test -n "$BUILD_CC"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498echo "${ECHO_T}$BUILD_CC" >&6; }
4499else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6; }
4502fi
4503
4504
4505 fi
4506 fi
4507 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4508echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4509 { (exit 1); exit 1; }; }
4510 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4511 rm -f conftest*
4512 echo 'int main () { return 0; }' > conftest.$ac_ext
4513 ac_cv_build_exeext=
4514 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4515 (eval $ac_build_link) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; then
4519 for file in conftest.*; do
4520 case $file in
4521 *.c | *.o | *.obj) ;;
4522 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4523 esac
4524 done
4525 else
4526 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4527echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4528 { (exit 1); exit 1; }; }
4529 fi
4530 rm -f conftest*
4531 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4532fi
4533fi
4534
4535BUILD_EXEEXT=""
4536test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4537{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4538echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4539ac_build_exeext=$BUILD_EXEEXT
4540
4541else
4542 LLVM_CROSS_COMPILING=0
4543
4544fi
4545
Reid Spencer0b1e4662007-04-02 15:41:39 +00004546if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004547 cvsbuild="yes"
4548 optimize="no"
4549 CVSBUILD=CVSBUILD=1
4550
4551else
4552 cvsbuild="no"
4553 optimize="yes"
4554fi
4555
4556
4557# Check whether --enable-optimized was given.
4558if test "${enable_optimized+set}" = set; then
4559 enableval=$enable_optimized;
4560else
4561 enableval=$optimize
4562fi
4563
4564if test ${enableval} = "no" ; then
4565 ENABLE_OPTIMIZED=
4566
4567else
4568 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4569
4570fi
4571
4572# Check whether --enable-assertions was given.
4573if test "${enable_assertions+set}" = set; then
4574 enableval=$enable_assertions;
4575else
4576 enableval="yes"
4577fi
4578
4579if test ${enableval} = "yes" ; then
4580 DISABLE_ASSERTIONS=
4581
4582else
4583 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4584
4585fi
4586
David Greenea696d242007-06-28 19:36:08 +00004587# Check whether --enable-expensive-checks was given.
4588if test "${enable_expensive_checks+set}" = set; then
4589 enableval=$enable_expensive_checks;
4590else
4591 enableval="no"
4592fi
4593
4594if test ${enableval} = "yes" ; then
4595 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4596
4597 EXPENSIVE_CHECKS=yes
4598
4599else
4600 ENABLE_EXPENSIVE_CHECKS=
4601
4602 EXPENSIVE_CHECKS=no
4603
4604fi
4605
Reid Spencer8b2e1412006-11-17 03:32:33 +00004606# Check whether --enable-debug-runtime was given.
4607if test "${enable_debug_runtime+set}" = set; then
4608 enableval=$enable_debug_runtime;
4609else
4610 enableval=no
4611fi
4612
4613if test ${enableval} = "no" ; then
4614 DEBUG_RUNTIME=
4615
4616else
4617 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4618
4619fi
4620
Reid Spencera773bd52006-08-04 18:18:08 +00004621# Check whether --enable-jit was given.
4622if test "${enable_jit+set}" = set; then
4623 enableval=$enable_jit;
4624else
4625 enableval=default
4626fi
4627
4628if test ${enableval} = "no"
4629then
4630 JIT=
4631
4632else
4633 case "$llvm_cv_target_arch" in
4634 x86) TARGET_HAS_JIT=1
4635 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004636 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004637 ;;
4638 PowerPC) TARGET_HAS_JIT=1
4639 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004640 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004641 ;;
4642 Alpha) TARGET_HAS_JIT=1
4643 ;;
4644 IA64) TARGET_HAS_JIT=0
4645 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004646 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004648 *) TARGET_HAS_JIT=0
4649 ;;
4650 esac
4651fi
4652
4653# Check whether --enable-doxygen was given.
4654if test "${enable_doxygen+set}" = set; then
4655 enableval=$enable_doxygen;
4656else
4657 enableval=default
4658fi
4659
4660case "$enableval" in
4661 yes) ENABLE_DOXYGEN=1
4662 ;;
4663 no) ENABLE_DOXYGEN=0
4664 ;;
4665 default) ENABLE_DOXYGEN=0
4666 ;;
4667 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4668echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4669 { (exit 1); exit 1; }; } ;;
4670esac
4671
4672# Check whether --enable-threads was given.
4673if test "${enable_threads+set}" = set; then
4674 enableval=$enable_threads;
4675else
Reid Spencer65c5d752006-11-05 17:08:18 +00004676 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004677fi
4678
4679case "$enableval" in
4680 yes) ENABLE_THREADS=1
4681 ;;
4682 no) ENABLE_THREADS=0
4683 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004684 default) ENABLE_THREADS=1
4685 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004686 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4687echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4688 { (exit 1); exit 1; }; } ;;
4689esac
4690
4691cat >>confdefs.h <<_ACEOF
4692#define ENABLE_THREADS $ENABLE_THREADS
4693_ACEOF
4694
4695
Reid Spencer89b0d992006-12-16 22:07:52 +00004696# Check whether --enable-pic was given.
4697if test "${enable_pic+set}" = set; then
4698 enableval=$enable_pic;
4699else
4700 enableval=default
4701fi
4702
4703case "$enableval" in
4704 yes) ENABLE_PIC=1
4705 ;;
4706 no) ENABLE_PIC=0
4707 ;;
4708 default) ENABLE_PIC=0
4709 ;;
4710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4711echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4712 { (exit 1); exit 1; }; } ;;
4713esac
4714
4715cat >>confdefs.h <<_ACEOF
4716#define ENABLE_PIC $ENABLE_PIC
4717_ACEOF
4718
4719
Reid Spencera773bd52006-08-04 18:18:08 +00004720TARGETS_TO_BUILD=""
4721# Check whether --enable-targets was given.
4722if test "${enable_targets+set}" = set; then
4723 enableval=$enable_targets;
4724else
4725 enableval=all
4726fi
4727
4728case "$enableval" in
4729 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4730 host-only)
4731 case "$llvm_cv_target_arch" in
4732 x86) TARGETS_TO_BUILD="X86" ;;
4733 x86_64) TARGETS_TO_BUILD="X86" ;;
4734 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4735 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4736 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4737 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004738 ARM) TARGETS_TO_BUILD="ARM" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004739 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4740echo "$as_me: error: Can not set target to build" >&2;}
4741 { (exit 1); exit 1; }; } ;;
4742 esac
4743 ;;
4744 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4745 case "$a_target" in
4746 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4747 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4748 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4749 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4750 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4751 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004752 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004753 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4754echo "$as_me: error: Unrecognized target $a_target" >&2;}
4755 { (exit 1); exit 1; }; } ;;
4756 esac
4757 done
4758 ;;
4759esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004760TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004761TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4762
4763
Reid Spencer65c5d752006-11-05 17:08:18 +00004764# Check whether --enable-cbe-printf-a was given.
4765if test "${enable_cbe_printf_a+set}" = set; then
4766 enableval=$enable_cbe_printf_a;
4767else
4768 enableval=default
4769fi
4770
4771case "$enableval" in
4772 yes) ENABLE_CBE_PRINTF_A=1
4773 ;;
4774 no) ENABLE_CBE_PRINTF_A=0
4775 ;;
4776 default) ENABLE_CBE_PRINTF_A=1
4777 ;;
4778 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4779echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4780 { (exit 1); exit 1; }; } ;;
4781esac
4782
4783cat >>confdefs.h <<_ACEOF
4784#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4785_ACEOF
4786
4787
Reid Spencera773bd52006-08-04 18:18:08 +00004788
4789# Check whether --with-llvmgccdir was given.
4790if test "${with_llvmgccdir+set}" = set; then
4791 withval=$with_llvmgccdir;
4792else
4793 withval=default
4794fi
4795
4796case "$withval" in
4797 default) WITH_LLVMGCCDIR=default ;;
4798 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4799 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4800echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4801 { (exit 1); exit 1; }; } ;;
4802esac
4803
4804
4805# Check whether --with-extra-options was given.
4806if test "${with_extra_options+set}" = set; then
4807 withval=$with_extra_options;
4808else
4809 withval=default
4810fi
4811
4812case "$withval" in
4813 default) EXTRA_OPTIONS= ;;
4814 *) EXTRA_OPTIONS=$withval ;;
4815esac
4816EXTRA_OPTIONS=$EXTRA_OPTIONS
4817
4818
4819
4820ac_ext=c
4821ac_cpp='$CPP $CPPFLAGS'
4822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4826echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4827# On Suns, sometimes $CPP names a directory.
4828if test -n "$CPP" && test -d "$CPP"; then
4829 CPP=
4830fi
4831if test -z "$CPP"; then
4832 if test "${ac_cv_prog_CPP+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835 # Double quotes because CPP needs to be expanded
4836 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4837 do
4838 ac_preproc_ok=false
4839for ac_c_preproc_warn_flag in '' yes
4840do
4841 # Use a header file that comes with gcc, so configuring glibc
4842 # with a fresh cross-compiler works.
4843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4844 # <limits.h> exists even on freestanding compilers.
4845 # On the NeXT, cc -E runs the code through the compiler's parser,
4846 # not just through cpp. "Syntax error" is here to catch this case.
4847 cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
4853#ifdef __STDC__
4854# include <limits.h>
4855#else
4856# include <assert.h>
4857#endif
4858 Syntax error
4859_ACEOF
4860if { (ac_try="$ac_cpp conftest.$ac_ext"
4861case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864esac
4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null; then
4873 if test -s conftest.err; then
4874 ac_cpp_err=$ac_c_preproc_warn_flag
4875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4876 else
4877 ac_cpp_err=
4878 fi
4879else
4880 ac_cpp_err=yes
4881fi
4882if test -z "$ac_cpp_err"; then
4883 :
4884else
4885 echo "$as_me: failed program was:" >&5
4886sed 's/^/| /' conftest.$ac_ext >&5
4887
4888 # Broken: fails on valid input.
4889continue
4890fi
4891
4892rm -f conftest.err conftest.$ac_ext
4893
4894 # OK, works on sane cases. Now check whether nonexistent headers
4895 # can be detected and how.
4896 cat >conftest.$ac_ext <<_ACEOF
4897/* confdefs.h. */
4898_ACEOF
4899cat confdefs.h >>conftest.$ac_ext
4900cat >>conftest.$ac_ext <<_ACEOF
4901/* end confdefs.h. */
4902#include <ac_nonexistent.h>
4903_ACEOF
4904if { (ac_try="$ac_cpp conftest.$ac_ext"
4905case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908esac
4909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null; then
4917 if test -s conftest.err; then
4918 ac_cpp_err=$ac_c_preproc_warn_flag
4919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4920 else
4921 ac_cpp_err=
4922 fi
4923else
4924 ac_cpp_err=yes
4925fi
4926if test -z "$ac_cpp_err"; then
4927 # Broken: success on invalid input.
4928continue
4929else
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 # Passes both tests.
4934ac_preproc_ok=:
4935break
4936fi
4937
4938rm -f conftest.err conftest.$ac_ext
4939
4940done
4941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942rm -f conftest.err conftest.$ac_ext
4943if $ac_preproc_ok; then
4944 break
4945fi
4946
4947 done
4948 ac_cv_prog_CPP=$CPP
4949
4950fi
4951 CPP=$ac_cv_prog_CPP
4952else
4953 ac_cv_prog_CPP=$CPP
4954fi
4955{ echo "$as_me:$LINENO: result: $CPP" >&5
4956echo "${ECHO_T}$CPP" >&6; }
4957ac_preproc_ok=false
4958for ac_c_preproc_warn_flag in '' yes
4959do
4960 # Use a header file that comes with gcc, so configuring glibc
4961 # with a fresh cross-compiler works.
4962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 # <limits.h> exists even on freestanding compilers.
4964 # On the NeXT, cc -E runs the code through the compiler's parser,
4965 # not just through cpp. "Syntax error" is here to catch this case.
4966 cat >conftest.$ac_ext <<_ACEOF
4967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h. */
4972#ifdef __STDC__
4973# include <limits.h>
4974#else
4975# include <assert.h>
4976#endif
4977 Syntax error
4978_ACEOF
4979if { (ac_try="$ac_cpp conftest.$ac_ext"
4980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } >/dev/null; then
4992 if test -s conftest.err; then
4993 ac_cpp_err=$ac_c_preproc_warn_flag
4994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4995 else
4996 ac_cpp_err=
4997 fi
4998else
4999 ac_cpp_err=yes
5000fi
5001if test -z "$ac_cpp_err"; then
5002 :
5003else
5004 echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 # Broken: fails on valid input.
5008continue
5009fi
5010
5011rm -f conftest.err conftest.$ac_ext
5012
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
5021#include <ac_nonexistent.h>
5022_ACEOF
5023if { (ac_try="$ac_cpp conftest.$ac_ext"
5024case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027esac
5028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } >/dev/null; then
5036 if test -s conftest.err; then
5037 ac_cpp_err=$ac_c_preproc_warn_flag
5038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039 else
5040 ac_cpp_err=
5041 fi
5042else
5043 ac_cpp_err=yes
5044fi
5045if test -z "$ac_cpp_err"; then
5046 # Broken: success on invalid input.
5047continue
5048else
5049 echo "$as_me: failed program was:" >&5
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 # Passes both tests.
5053ac_preproc_ok=:
5054break
5055fi
5056
5057rm -f conftest.err conftest.$ac_ext
5058
5059done
5060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061rm -f conftest.err conftest.$ac_ext
5062if $ac_preproc_ok; then
5063 :
5064else
5065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5066See \`config.log' for more details." >&5
5067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5068See \`config.log' for more details." >&2;}
5069 { (exit 1); exit 1; }; }
5070fi
5071
5072ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083if test -n "$ac_tool_prefix"; then
5084 for ac_prog in gcc
5085 do
5086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090if test "${ac_cv_prog_CC+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 if test -n "$CC"; then
5094 ac_cv_prog_CC="$CC" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107done
5108done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113CC=$ac_cv_prog_CC
5114if test -n "$CC"; then
5115 { echo "$as_me:$LINENO: result: $CC" >&5
5116echo "${ECHO_T}$CC" >&6; }
5117else
5118 { echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6; }
5120fi
5121
5122
5123 test -n "$CC" && break
5124 done
5125fi
5126if test -z "$CC"; then
5127 ac_ct_CC=$CC
5128 for ac_prog in gcc
5129do
5130 # Extract the first word of "$ac_prog", so it can be a program name with args.
5131set dummy $ac_prog; ac_word=$2
5132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137 if test -n "$ac_ct_CC"; then
5138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_ac_ct_CC="$ac_prog"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151done
5152done
5153IFS=$as_save_IFS
5154
5155fi
5156fi
5157ac_ct_CC=$ac_cv_prog_ac_ct_CC
5158if test -n "$ac_ct_CC"; then
5159 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5160echo "${ECHO_T}$ac_ct_CC" >&6; }
5161else
5162 { echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6; }
5164fi
5165
5166
5167 test -n "$ac_ct_CC" && break
5168done
5169
5170 if test "x$ac_ct_CC" = x; then
5171 CC=""
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174yes:)
5175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5176whose name does not start with the host triplet. If you think this
5177configuration is useful to you, please write to autoconf@gnu.org." >&5
5178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5179whose name does not start with the host triplet. If you think this
5180configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5181ac_tool_warned=yes ;;
5182esac
5183 CC=$ac_ct_CC
5184 fi
5185fi
5186
5187
5188test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5189See \`config.log' for more details." >&5
5190echo "$as_me: error: no acceptable C compiler found in \$PATH
5191See \`config.log' for more details." >&2;}
5192 { (exit 1); exit 1; }; }
5193
5194# Provide some information about the compiler.
5195echo "$as_me:$LINENO: checking for C compiler version" >&5
5196ac_compiler=`set X $ac_compile; echo $2`
5197{ (ac_try="$ac_compiler --version >&5"
5198case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201esac
5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compiler --version >&5") 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }
5207{ (ac_try="$ac_compiler -v >&5"
5208case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211esac
5212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_compiler -v >&5") 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }
5217{ (ac_try="$ac_compiler -V >&5"
5218case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compiler -V >&5") 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }
5227
5228{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5229echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5230if test "${ac_cv_c_compiler_gnu+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239
5240int
5241main ()
5242{
5243#ifndef __GNUC__
5244 choke me
5245#endif
5246
5247 ;
5248 return 0;
5249}
5250_ACEOF
5251rm -f conftest.$ac_objext
5252if { (ac_try="$ac_compile"
5253case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
5257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_try") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_compiler_gnu=yes
5286else
5287 echo "$as_me: failed program was:" >&5
5288sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 ac_compiler_gnu=no
5291fi
5292
5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294ac_cv_c_compiler_gnu=$ac_compiler_gnu
5295
5296fi
5297{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5298echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5299GCC=`test $ac_compiler_gnu = yes && echo yes`
5300ac_test_CFLAGS=${CFLAGS+set}
5301ac_save_CFLAGS=$CFLAGS
5302{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5303echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5304if test "${ac_cv_prog_cc_g+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 ac_save_c_werror_flag=$ac_c_werror_flag
5308 ac_c_werror_flag=yes
5309 ac_cv_prog_cc_g=no
5310 CFLAGS="-g"
5311 cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h. */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h. */
5317
5318int
5319main ()
5320{
5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (ac_try="$ac_compile"
5328case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compile") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5341 { (case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344esac
5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_try") 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest.$ac_objext'
5351 { (case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_try") 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_prog_cc_g=yes
5361else
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 CFLAGS=""
5366 cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h. */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h. */
5372
5373int
5374main ()
5375{
5376
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext
5382if { (ac_try="$ac_compile"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5396 { (case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399esac
5400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_try") 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409esac
5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_try") 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 :
5416else
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 ac_c_werror_flag=$ac_save_c_werror_flag
5421 CFLAGS="-g"
5422 cat >conftest.$ac_ext <<_ACEOF
5423/* confdefs.h. */
5424_ACEOF
5425cat confdefs.h >>conftest.$ac_ext
5426cat >>conftest.$ac_ext <<_ACEOF
5427/* end confdefs.h. */
5428
5429int
5430main ()
5431{
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
5437rm -f conftest.$ac_objext
5438if { (ac_try="$ac_compile"
5439case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5452 { (case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455esac
5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_try") 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; } &&
5461 { ac_try='test -s conftest.$ac_objext'
5462 { (case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_try") 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_prog_cc_g=yes
5472else
5473 echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
5475
5476
5477fi
5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480fi
5481
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483fi
5484
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_c_werror_flag=$ac_save_c_werror_flag
5487fi
5488{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5489echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5490if test "$ac_test_CFLAGS" = set; then
5491 CFLAGS=$ac_save_CFLAGS
5492elif test $ac_cv_prog_cc_g = yes; then
5493 if test "$GCC" = yes; then
5494 CFLAGS="-g -O2"
5495 else
5496 CFLAGS="-g"
5497 fi
5498else
5499 if test "$GCC" = yes; then
5500 CFLAGS="-O2"
5501 else
5502 CFLAGS=
5503 fi
5504fi
5505{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5506echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5507if test "${ac_cv_prog_cc_c89+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 ac_cv_prog_cc_c89=no
5511ac_save_CC=$CC
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518#include <stdarg.h>
5519#include <stdio.h>
5520#include <sys/types.h>
5521#include <sys/stat.h>
5522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5523struct buf { int x; };
5524FILE * (*rcsopen) (struct buf *, struct stat *, int);
5525static char *e (p, i)
5526 char **p;
5527 int i;
5528{
5529 return p[i];
5530}
5531static char *f (char * (*g) (char **, int), char **p, ...)
5532{
5533 char *s;
5534 va_list v;
5535 va_start (v,p);
5536 s = g (p, va_arg (v,int));
5537 va_end (v);
5538 return s;
5539}
5540
5541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5542 function prototypes and stuff, but not '\xHH' hex character constants.
5543 These don't provoke an error unfortunately, instead are silently treated
5544 as 'x'. The following induces an error, until -std is added to get
5545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5546 array size at least. It's necessary to write '\x00'==0 to get something
5547 that's true only with -std. */
5548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5549
5550/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5551 inside strings and character constants. */
5552#define FOO(x) 'x'
5553int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5554
5555int test (int i, double x);
5556struct s1 {int (*f) (int a);};
5557struct s2 {int (*f) (double a);};
5558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5559int argc;
5560char **argv;
5561int
5562main ()
5563{
5564return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5571do
5572 CC="$ac_save_CC $ac_arg"
5573 rm -f conftest.$ac_objext
5574if { (ac_try="$ac_compile"
5575case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5588 { (case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601esac
5602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_try") 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_prog_cc_c89=$ac_arg
5608else
5609 echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612
5613fi
5614
5615rm -f core conftest.err conftest.$ac_objext
5616 test "x$ac_cv_prog_cc_c89" != "xno" && break
5617done
5618rm -f conftest.$ac_ext
5619CC=$ac_save_CC
5620
5621fi
5622# AC_CACHE_VAL
5623case "x$ac_cv_prog_cc_c89" in
5624 x)
5625 { echo "$as_me:$LINENO: result: none needed" >&5
5626echo "${ECHO_T}none needed" >&6; } ;;
5627 xno)
5628 { echo "$as_me:$LINENO: result: unsupported" >&5
5629echo "${ECHO_T}unsupported" >&6; } ;;
5630 *)
5631 CC="$CC $ac_cv_prog_cc_c89"
5632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5633echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5634esac
5635
5636
5637ac_ext=c
5638ac_cpp='$CPP $CPPFLAGS'
5639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643ac_ext=cpp
5644ac_cpp='$CXXCPP $CPPFLAGS'
5645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648if test -z "$CXX"; then
5649 if test -n "$CCC"; then
5650 CXX=$CCC
5651 else
5652 if test -n "$ac_tool_prefix"; then
5653 for ac_prog in g++
5654 do
5655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5659if test "${ac_cv_prog_CXX+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 if test -n "$CXX"; then
5663 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5675 fi
5676done
5677done
5678IFS=$as_save_IFS
5679
5680fi
5681fi
5682CXX=$ac_cv_prog_CXX
5683if test -n "$CXX"; then
5684 { echo "$as_me:$LINENO: result: $CXX" >&5
5685echo "${ECHO_T}$CXX" >&6; }
5686else
5687 { echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6; }
5689fi
5690
5691
5692 test -n "$CXX" && break
5693 done
5694fi
5695if test -z "$CXX"; then
5696 ac_ct_CXX=$CXX
5697 for ac_prog in g++
5698do
5699 # Extract the first word of "$ac_prog", so it can be a program name with args.
5700set dummy $ac_prog; ac_word=$2
5701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 if test -n "$ac_ct_CXX"; then
5707 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_ac_ct_CXX="$ac_prog"
5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720done
5721done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5727if test -n "$ac_ct_CXX"; then
5728 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5729echo "${ECHO_T}$ac_ct_CXX" >&6; }
5730else
5731 { echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6; }
5733fi
5734
5735
5736 test -n "$ac_ct_CXX" && break
5737done
5738
5739 if test "x$ac_ct_CXX" = x; then
5740 CXX="g++"
5741 else
5742 case $cross_compiling:$ac_tool_warned in
5743yes:)
5744{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5745whose name does not start with the host triplet. If you think this
5746configuration is useful to you, please write to autoconf@gnu.org." >&5
5747echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5748whose name does not start with the host triplet. If you think this
5749configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752 CXX=$ac_ct_CXX
5753 fi
5754fi
5755
5756 fi
5757fi
5758# Provide some information about the compiler.
5759echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5760ac_compiler=`set X $ac_compile; echo $2`
5761{ (ac_try="$ac_compiler --version >&5"
5762case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compiler --version >&5") 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }
5771{ (ac_try="$ac_compiler -v >&5"
5772case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compiler -v >&5") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }
5781{ (ac_try="$ac_compiler -V >&5"
5782case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compiler -V >&5") 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }
5791
5792{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5793echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5794if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803
5804int
5805main ()
5806{
5807#ifndef __GNUC__
5808 choke me
5809#endif
5810
5811 ;
5812 return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
5816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843esac
5844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_try") 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_compiler_gnu=yes
5850else
5851 echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_compiler_gnu=no
5855fi
5856
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5859
5860fi
5861{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5862echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5863GXX=`test $ac_compiler_gnu = yes && echo yes`
5864ac_test_CXXFLAGS=${CXXFLAGS+set}
5865ac_save_CXXFLAGS=$CXXFLAGS
5866{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5867echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5868if test "${ac_cv_prog_cxx_g+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5872 ac_cxx_werror_flag=yes
5873 ac_cv_prog_cxx_g=no
5874 CXXFLAGS="-g"
5875 cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h. */
5881
5882int
5883main ()
5884{
5885
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (ac_try="$ac_compile"
5892case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5905 { (case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_try") 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_prog_cxx_g=yes
5925else
5926 echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929 CXXFLAGS=""
5930 cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
5936
5937int
5938main ()
5939{
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (ac_try="$ac_compile"
5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5960 { (case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_try") 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_try") 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 :
5980else
5981 echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5985 CXXFLAGS="-g"
5986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
5992
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_try") 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_prog_cxx_g=yes
6036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040
6041fi
6042
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6051fi
6052{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6053echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6054if test "$ac_test_CXXFLAGS" = set; then
6055 CXXFLAGS=$ac_save_CXXFLAGS
6056elif test $ac_cv_prog_cxx_g = yes; then
6057 if test "$GXX" = yes; then
6058 CXXFLAGS="-g -O2"
6059 else
6060 CXXFLAGS="-g"
6061 fi
6062else
6063 if test "$GXX" = yes; then
6064 CXXFLAGS="-O2"
6065 else
6066 CXXFLAGS=
6067 fi
6068fi
6069ac_ext=c
6070ac_cpp='$CPP $CPPFLAGS'
6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075{ echo "$as_me:$LINENO: checking " >&5
6076echo $ECHO_N "checking ... $ECHO_C" >&6; }
6077if test "${ac_cv_has_flex+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080 for ac_prog in flex lex
6081do
6082 # Extract the first word of "$ac_prog", so it can be a program name with args.
6083set dummy $ac_prog; ac_word=$2
6084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086if test "${ac_cv_prog_LEX+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089 if test -n "$LEX"; then
6090 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_LEX="$ac_prog"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109LEX=$ac_cv_prog_LEX
6110if test -n "$LEX"; then
6111 { echo "$as_me:$LINENO: result: $LEX" >&5
6112echo "${ECHO_T}$LEX" >&6; }
6113else
6114 { echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6; }
6116fi
6117
6118
6119 test -n "$LEX" && break
6120done
6121test -n "$LEX" || LEX=":"
6122
6123if test -z "$LEXLIB"
6124then
6125 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6126echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6127if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130 ac_check_lib_save_LIBS=$LIBS
6131LIBS="-lfl $LIBS"
6132cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h. */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h. */
6138
6139/* Override any GCC internal prototype to avoid an error.
6140 Use char because int might match the return type of a GCC
6141 builtin and then its argument prototype would still apply. */
6142#ifdef __cplusplus
6143extern "C"
6144#endif
6145char yywrap ();
6146int
6147main ()
6148{
6149return yywrap ();
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext conftest$ac_exeext
6155if { (ac_try="$ac_link"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_link") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182esac
6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_lib_fl_yywrap=yes
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ac_cv_lib_fl_yywrap=no
6194fi
6195
6196rm -f core conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6198LIBS=$ac_check_lib_save_LIBS
6199fi
6200{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6201echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6202if test $ac_cv_lib_fl_yywrap = yes; then
6203 LEXLIB="-lfl"
6204else
6205 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6206echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6207if test "${ac_cv_lib_l_yywrap+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 ac_check_lib_save_LIBS=$LIBS
6211LIBS="-ll $LIBS"
6212cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218
6219/* Override any GCC internal prototype to avoid an error.
6220 Use char because int might match the return type of a GCC
6221 builtin and then its argument prototype would still apply. */
6222#ifdef __cplusplus
6223extern "C"
6224#endif
6225char yywrap ();
6226int
6227main ()
6228{
6229return yywrap ();
6230 ;
6231 return 0;
6232}
6233_ACEOF
6234rm -f conftest.$ac_objext conftest$ac_exeext
6235if { (ac_try="$ac_link"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_link") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_lib_l_yywrap=yes
6269else
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_cv_lib_l_yywrap=no
6274fi
6275
6276rm -f core conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6278LIBS=$ac_check_lib_save_LIBS
6279fi
6280{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6281echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6282if test $ac_cv_lib_l_yywrap = yes; then
6283 LEXLIB="-ll"
6284fi
6285
6286fi
6287
6288fi
6289
6290if test "x$LEX" != "x:"; then
6291 { echo "$as_me:$LINENO: checking lex output file root" >&5
6292echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6293if test "${ac_cv_prog_lex_root+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296 # The minimal lex program is just a single line: %%. But some broken lexes
6297# (Solaris, I think it was) want two %% lines, so accommodate them.
6298cat >conftest.l <<_ACEOF
6299%%
6300%%
6301_ACEOF
6302{ (ac_try="$LEX conftest.l"
6303case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306esac
6307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$LEX conftest.l") 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }
6312if test -f lex.yy.c; then
6313 ac_cv_prog_lex_root=lex.yy
6314elif test -f lexyy.c; then
6315 ac_cv_prog_lex_root=lexyy
6316else
6317 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6318echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6319 { (exit 1); exit 1; }; }
6320fi
6321fi
6322{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6323echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6324rm -f conftest.l
6325LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6326
6327{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6328echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6329if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332 # POSIX says lex can declare yytext either as a pointer or an array; the
6333# default is implementation-dependent. Figure out which it is, since
6334# not all implementations provide the %pointer and %array declarations.
6335ac_cv_prog_lex_yytext_pointer=no
6336echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6337ac_save_LIBS=$LIBS
6338LIBS="$LIBS $LEXLIB"
6339cat >conftest.$ac_ext <<_ACEOF
6340`cat $LEX_OUTPUT_ROOT.c`
6341_ACEOF
6342rm -f conftest.$ac_objext conftest$ac_exeext
6343if { (ac_try="$ac_link"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_link") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360esac
6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_try") 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest$ac_exeext'
6367 { (case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_prog_lex_yytext_pointer=yes
6377else
6378 echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381
6382fi
6383
6384rm -f core conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6386LIBS=$ac_save_LIBS
6387rm -f "${LEX_OUTPUT_ROOT}.c"
6388
6389fi
6390{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6391echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6392if test $ac_cv_prog_lex_yytext_pointer = yes; then
6393
6394cat >>confdefs.h <<\_ACEOF
6395#define YYTEXT_POINTER 1
6396_ACEOF
6397
6398fi
6399
6400fi
6401
6402fi
6403{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6404echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6405if test "$LEX" != "flex"; then
6406 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6407echo "$as_me: error: flex not found but required" >&2;}
6408 { (exit 1); exit 1; }; }
6409else
6410 FLEX=flex
6411
6412fi
6413
6414{ echo "$as_me:$LINENO: checking " >&5
6415echo $ECHO_N "checking ... $ECHO_C" >&6; }
6416if test "${llvm_cv_has_bison+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419 for ac_prog in 'bison -y' byacc
6420do
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422set dummy $ac_prog; ac_word=$2
6423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425if test "${ac_cv_prog_YACC+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428 if test -n "$YACC"; then
6429 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_YACC="$ac_prog"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448YACC=$ac_cv_prog_YACC
6449if test -n "$YACC"; then
6450 { echo "$as_me:$LINENO: result: $YACC" >&5
6451echo "${ECHO_T}$YACC" >&6; }
6452else
6453 { echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6; }
6455fi
6456
6457
6458 test -n "$YACC" && break
6459done
6460test -n "$YACC" || YACC="yacc"
6461
6462fi
6463{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6464echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6465if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006466
6467 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6468echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006469else
6470 BISON=bison
6471
6472fi
6473
6474{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476if test "${lt_cv_path_NM+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 if test -n "$NM"; then
6480 # Let the user override the test.
6481 lt_cv_path_NM="$NM"
6482else
6483 lt_nm_to_check="${ac_tool_prefix}nm"
6484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485 lt_nm_to_check="$lt_nm_to_check nm"
6486 fi
6487 for lt_tmp_nm in $lt_nm_to_check; do
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6490 IFS="$lt_save_ifs"
6491 test -z "$ac_dir" && ac_dir=.
6492 tmp_nm="$ac_dir/$lt_tmp_nm"
6493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494 # Check to see if the nm accepts a BSD-compat flag.
6495 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6496 # nm: unknown option "B" ignored
6497 # Tru64's nm complains that /dev/null is an invalid object file
6498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499 */dev/null* | *'Invalid file or object type'*)
6500 lt_cv_path_NM="$tmp_nm -B"
6501 break
6502 ;;
6503 *)
6504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6505 */dev/null*)
6506 lt_cv_path_NM="$tmp_nm -p"
6507 break
6508 ;;
6509 *)
6510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511 continue # so that we can try to find one that supports BSD flags
6512 ;;
6513 esac
6514 ;;
6515 esac
6516 fi
6517 done
6518 IFS="$lt_save_ifs"
6519 done
6520 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6521fi
6522fi
6523{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6525NM="$lt_cv_path_NM"
6526
6527
6528
6529{ echo "$as_me:$LINENO: checking for GNU make" >&5
6530echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531if test "${llvm_cv_gnu_make_command+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 llvm_cv_gnu_make_command=''
6535 for a in "$MAKE" make gmake gnumake ; do
6536 if test -z "$a" ; then continue ; fi ;
6537 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6538 then
6539 llvm_cv_gnu_make_command=$a ;
6540 break;
6541 fi
6542 done
6543fi
6544{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6547 ifGNUmake='' ;
6548 else
6549 ifGNUmake='#' ;
6550 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551echo "${ECHO_T}\"Not found\"" >&6; };
6552 fi
6553
6554
6555{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6557LN_S=$as_ln_s
6558if test "$LN_S" = "ln -s"; then
6559 { echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6; }
6561else
6562 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563echo "${ECHO_T}no, using $LN_S" >&6; }
6564fi
6565
6566# Extract the first word of "cmp", so it can be a program name with args.
6567set dummy cmp; ac_word=$2
6568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_path_CMP+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 case $CMP in
6574 [\\/]* | ?:[\\/]*)
6575 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6576 ;;
6577 *)
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590done
6591IFS=$as_save_IFS
6592
6593 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6594 ;;
6595esac
6596fi
6597CMP=$ac_cv_path_CMP
6598if test -n "$CMP"; then
6599 { echo "$as_me:$LINENO: result: $CMP" >&5
6600echo "${ECHO_T}$CMP" >&6; }
6601else
6602 { echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6; }
6604fi
6605
6606
6607# Extract the first word of "cp", so it can be a program name with args.
6608set dummy cp; ac_word=$2
6609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611if test "${ac_cv_path_CP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 case $CP in
6615 [\\/]* | ?:[\\/]*)
6616 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617 ;;
6618 *)
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631done
6632IFS=$as_save_IFS
6633
6634 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6635 ;;
6636esac
6637fi
6638CP=$ac_cv_path_CP
6639if test -n "$CP"; then
6640 { echo "$as_me:$LINENO: result: $CP" >&5
6641echo "${ECHO_T}$CP" >&6; }
6642else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
6645fi
6646
6647
6648# Extract the first word of "date", so it can be a program name with args.
6649set dummy date; ac_word=$2
6650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652if test "${ac_cv_path_DATE+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655 case $DATE in
6656 [\\/]* | ?:[\\/]*)
6657 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6658 ;;
6659 *)
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671done
6672done
6673IFS=$as_save_IFS
6674
6675 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6676 ;;
6677esac
6678fi
6679DATE=$ac_cv_path_DATE
6680if test -n "$DATE"; then
6681 { echo "$as_me:$LINENO: result: $DATE" >&5
6682echo "${ECHO_T}$DATE" >&6; }
6683else
6684 { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
6686fi
6687
6688
6689# Extract the first word of "find", so it can be a program name with args.
6690set dummy find; ac_word=$2
6691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693if test "${ac_cv_path_FIND+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 case $FIND in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6699 ;;
6700 *)
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712done
6713done
6714IFS=$as_save_IFS
6715
6716 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6717 ;;
6718esac
6719fi
6720FIND=$ac_cv_path_FIND
6721if test -n "$FIND"; then
6722 { echo "$as_me:$LINENO: result: $FIND" >&5
6723echo "${ECHO_T}$FIND" >&6; }
6724else
6725 { echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6; }
6727fi
6728
6729
6730# Extract the first word of "grep", so it can be a program name with args.
6731set dummy grep; ac_word=$2
6732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737 case $GREP in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6740 ;;
6741 *)
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6758 ;;
6759esac
6760fi
6761GREP=$ac_cv_path_GREP
6762if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764echo "${ECHO_T}$GREP" >&6; }
6765else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6; }
6768fi
6769
6770
6771# Extract the first word of "mkdir", so it can be a program name with args.
6772set dummy mkdir; ac_word=$2
6773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775if test "${ac_cv_path_MKDIR+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 case $MKDIR in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6781 ;;
6782 *)
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794done
6795done
6796IFS=$as_save_IFS
6797
6798 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6799 ;;
6800esac
6801fi
6802MKDIR=$ac_cv_path_MKDIR
6803if test -n "$MKDIR"; then
6804 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805echo "${ECHO_T}$MKDIR" >&6; }
6806else
6807 { echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6; }
6809fi
6810
6811
6812# Extract the first word of "mv", so it can be a program name with args.
6813set dummy mv; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_path_MV+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 case $MV in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6822 ;;
6823 *)
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6840 ;;
6841esac
6842fi
6843MV=$ac_cv_path_MV
6844if test -n "$MV"; then
6845 { echo "$as_me:$LINENO: result: $MV" >&5
6846echo "${ECHO_T}$MV" >&6; }
6847else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
6850fi
6851
6852
6853if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881RANLIB=$ac_cv_prog_RANLIB
6882if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884echo "${ECHO_T}$RANLIB" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891fi
6892if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895set dummy ranlib; ac_word=$2
6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6; }
6928fi
6929
6930 if test "x$ac_ct_RANLIB" = x; then
6931 RANLIB=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet. If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&5
6938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939whose name does not start with the host triplet. If you think this
6940configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941ac_tool_warned=yes ;;
6942esac
6943 RANLIB=$ac_ct_RANLIB
6944 fi
6945else
6946 RANLIB="$ac_cv_prog_RANLIB"
6947fi
6948
6949# Extract the first word of "rm", so it can be a program name with args.
6950set dummy rm; ac_word=$2
6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953if test "${ac_cv_path_RM+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 case $RM in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6959 ;;
6960 *)
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973done
6974IFS=$as_save_IFS
6975
6976 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6977 ;;
6978esac
6979fi
6980RM=$ac_cv_path_RM
6981if test -n "$RM"; then
6982 { echo "$as_me:$LINENO: result: $RM" >&5
6983echo "${ECHO_T}$RM" >&6; }
6984else
6985 { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
6987fi
6988
6989
6990# Extract the first word of "sed", so it can be a program name with args.
6991set dummy sed; ac_word=$2
6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994if test "${ac_cv_path_SED+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 case $SED in
6998 [\\/]* | ?:[\\/]*)
6999 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7000 ;;
7001 *)
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7018 ;;
7019esac
7020fi
7021SED=$ac_cv_path_SED
7022if test -n "$SED"; then
7023 { echo "$as_me:$LINENO: result: $SED" >&5
7024echo "${ECHO_T}$SED" >&6; }
7025else
7026 { echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6; }
7028fi
7029
7030
7031# Extract the first word of "tar", so it can be a program name with args.
7032set dummy tar; ac_word=$2
7033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035if test "${ac_cv_path_TAR+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 case $TAR in
7039 [\\/]* | ?:[\\/]*)
7040 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7041 ;;
7042 *)
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056IFS=$as_save_IFS
7057
7058 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7059 ;;
7060esac
7061fi
7062TAR=$ac_cv_path_TAR
7063if test -n "$TAR"; then
7064 { echo "$as_me:$LINENO: result: $TAR" >&5
7065echo "${ECHO_T}$TAR" >&6; }
7066else
7067 { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
7069fi
7070
7071
7072# Extract the first word of "pwd", so it can be a program name with args.
7073set dummy pwd; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_path_BINPWD+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 case $BINPWD in
7080 [\\/]* | ?:[\\/]*)
7081 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7082 ;;
7083 *)
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096done
7097IFS=$as_save_IFS
7098
7099 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7100 ;;
7101esac
7102fi
7103BINPWD=$ac_cv_path_BINPWD
7104if test -n "$BINPWD"; then
7105 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106echo "${ECHO_T}$BINPWD" >&6; }
7107else
7108 { echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6; }
7110fi
7111
7112
7113
7114# Extract the first word of "Graphviz", so it can be a program name with args.
7115set dummy Graphviz; ac_word=$2
7116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 case $GRAPHVIZ in
7122 [\\/]* | ?:[\\/]*)
7123 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7124 ;;
7125 *)
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138done
7139IFS=$as_save_IFS
7140
7141 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7142 ;;
7143esac
7144fi
7145GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7146if test -n "$GRAPHVIZ"; then
7147 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148echo "${ECHO_T}$GRAPHVIZ" >&6; }
7149else
7150 { echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6; }
7152fi
7153
7154
7155if test "$GRAPHVIZ" != "echo Graphviz" ; then
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_GRAPHVIZ 1
7159_ACEOF
7160
Jeff Cohen28783c32007-01-12 18:22:38 +00007161 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007162 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7163 fi
7164
7165cat >>confdefs.h <<_ACEOF
7166#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7167_ACEOF
7168
7169fi
7170# Extract the first word of "dot", so it can be a program name with args.
7171set dummy dot; ac_word=$2
7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_path_DOT+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 case $DOT in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194done
7195IFS=$as_save_IFS
7196
7197 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7198 ;;
7199esac
7200fi
7201DOT=$ac_cv_path_DOT
7202if test -n "$DOT"; then
7203 { echo "$as_me:$LINENO: result: $DOT" >&5
7204echo "${ECHO_T}$DOT" >&6; }
7205else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
7209
7210
7211if test "$DOT" != "echo dot" ; then
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_DOT 1
7215_ACEOF
7216
Jeff Cohen28783c32007-01-12 18:22:38 +00007217 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007218 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7219 fi
7220
7221cat >>confdefs.h <<_ACEOF
7222#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7223_ACEOF
7224
7225fi
7226for ac_prog in gv gsview32
7227do
7228 # Extract the first word of "$ac_prog", so it can be a program name with args.
7229set dummy $ac_prog; ac_word=$2
7230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232if test "${ac_cv_path_GV+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 case $GV in
7236 [\\/]* | ?:[\\/]*)
7237 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7238 ;;
7239 *)
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252done
7253IFS=$as_save_IFS
7254
7255 ;;
7256esac
7257fi
7258GV=$ac_cv_path_GV
7259if test -n "$GV"; then
7260 { echo "$as_me:$LINENO: result: $GV" >&5
7261echo "${ECHO_T}$GV" >&6; }
7262else
7263 { echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6; }
7265fi
7266
7267
7268 test -n "$GV" && break
7269done
7270test -n "$GV" || GV="echo gv"
7271
7272if test "$GV" != "echo gv" ; then
7273
7274cat >>confdefs.h <<\_ACEOF
7275#define HAVE_GV 1
7276_ACEOF
7277
Jeff Cohen28783c32007-01-12 18:22:38 +00007278 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007279 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7280 fi
7281
7282cat >>confdefs.h <<_ACEOF
7283#define LLVM_PATH_GV "$GV${EXEEXT}"
7284_ACEOF
7285
7286fi
7287# Extract the first word of "dotty", so it can be a program name with args.
7288set dummy dotty; ac_word=$2
7289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291if test "${ac_cv_path_DOTTY+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 case $DOTTY in
7295 [\\/]* | ?:[\\/]*)
7296 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7297 ;;
7298 *)
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312IFS=$as_save_IFS
7313
7314 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7315 ;;
7316esac
7317fi
7318DOTTY=$ac_cv_path_DOTTY
7319if test -n "$DOTTY"; then
7320 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7321echo "${ECHO_T}$DOTTY" >&6; }
7322else
7323 { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
7325fi
7326
7327
7328if test "$DOTTY" != "echo dotty" ; then
7329
7330cat >>confdefs.h <<\_ACEOF
7331#define HAVE_DOTTY 1
7332_ACEOF
7333
Jeff Cohen28783c32007-01-12 18:22:38 +00007334 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007335 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7336 fi
7337
7338cat >>confdefs.h <<_ACEOF
7339#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7340_ACEOF
7341
7342fi
7343
7344
7345# Extract the first word of "perl", so it can be a program name with args.
7346set dummy perl; ac_word=$2
7347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349if test "${ac_cv_path_PERL+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 case $PERL in
7353 [\\/]* | ?:[\\/]*)
7354 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7355 ;;
7356 *)
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369done
7370IFS=$as_save_IFS
7371
7372 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7373 ;;
7374esac
7375fi
7376PERL=$ac_cv_path_PERL
7377if test -n "$PERL"; then
7378 { echo "$as_me:$LINENO: result: $PERL" >&5
7379echo "${ECHO_T}$PERL" >&6; }
7380else
7381 { echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6; }
7383fi
7384
7385
7386if test "$PERL" != "none"; then
7387 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7388echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7389 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7390 { echo "$as_me:$LINENO: result: yes" >&5
7391echo "${ECHO_T}yes" >&6; }
7392 else
7393 PERL=none
7394 { echo "$as_me:$LINENO: result: not found" >&5
7395echo "${ECHO_T}not found" >&6; }
7396 fi
7397fi
7398
7399
7400if test x"$PERL" = xnone; then
7401 HAVE_PERL=0
7402
Reid Spencer59807fa2007-05-17 18:11:03 +00007403 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7404echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7405 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406else
7407 HAVE_PERL=1
7408
7409fi
7410
7411# Find a good install program. We prefer a C program (faster),
7412# so one script is as good as another. But avoid the broken or
7413# incompatible versions:
7414# SysV /etc/install, /usr/sbin/install
7415# SunOS /usr/etc/install
7416# IRIX /sbin/install
7417# AIX /bin/install
7418# AmigaOS /C/install, which installs bootblocks on floppy discs
7419# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7420# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7421# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7422# OS/2's system install, which has a completely different semantic
7423# ./install, which can be erroneously created by make from ./install.sh.
7424{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7425echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7426if test -z "$INSTALL"; then
7427if test "${ac_cv_path_install+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 # Account for people who put trailing slashes in PATH elements.
7436case $as_dir/ in
7437 ./ | .// | /cC/* | \
7438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7439 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7440 /usr/ucb/* ) ;;
7441 *)
7442 # OSF1 and SCO ODT 3.0 have their own names for install.
7443 # Don't use installbsd from OSF since it installs stuff as root
7444 # by default.
7445 for ac_prog in ginstall scoinst install; do
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7448 if test $ac_prog = install &&
7449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7450 # AIX install. It has an incompatible calling convention.
7451 :
7452 elif test $ac_prog = install &&
7453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7454 # program-specific install script used by HP pwplus--don't use.
7455 :
7456 else
7457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7458 break 3
7459 fi
7460 fi
7461 done
7462 done
7463 ;;
7464esac
7465done
7466IFS=$as_save_IFS
7467
7468
7469fi
7470 if test "${ac_cv_path_install+set}" = set; then
7471 INSTALL=$ac_cv_path_install
7472 else
7473 # As a last resort, use the slow shell script. Don't cache a
7474 # value for INSTALL within a source directory, because that will
7475 # break other packages using the cache if that directory is
7476 # removed, or if the value is a relative name.
7477 INSTALL=$ac_install_sh
7478 fi
7479fi
7480{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7481echo "${ECHO_T}$INSTALL" >&6; }
7482
7483# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7484# It thinks the first close brace ends the variable substitution.
7485test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7486
7487test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7488
7489test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7490
7491
7492# Extract the first word of "bzip2", so it can be a program name with args.
7493set dummy bzip2; ac_word=$2
7494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496if test "${ac_cv_path_BZIP2+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 case $BZIP2 in
7500 [\\/]* | ?:[\\/]*)
7501 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7502 ;;
7503 *)
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515done
7516done
7517IFS=$as_save_IFS
7518
7519 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7520 ;;
7521esac
7522fi
7523BZIP2=$ac_cv_path_BZIP2
7524if test -n "$BZIP2"; then
7525 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7526echo "${ECHO_T}$BZIP2" >&6; }
7527else
7528 { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
7530fi
7531
7532
7533# Extract the first word of "doxygen", so it can be a program name with args.
7534set dummy doxygen; ac_word=$2
7535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537if test "${ac_cv_path_DOXYGEN+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540 case $DOXYGEN in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7543 ;;
7544 *)
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556done
7557done
7558IFS=$as_save_IFS
7559
7560 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7561 ;;
7562esac
7563fi
7564DOXYGEN=$ac_cv_path_DOXYGEN
7565if test -n "$DOXYGEN"; then
7566 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7567echo "${ECHO_T}$DOXYGEN" >&6; }
7568else
7569 { echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6; }
7571fi
7572
7573
Reid Spencera773bd52006-08-04 18:18:08 +00007574# Extract the first word of "groff", so it can be a program name with args.
7575set dummy groff; ac_word=$2
7576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578if test "${ac_cv_path_GROFF+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 case $GROFF in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598done
7599IFS=$as_save_IFS
7600
7601 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7602 ;;
7603esac
7604fi
7605GROFF=$ac_cv_path_GROFF
7606if test -n "$GROFF"; then
7607 { echo "$as_me:$LINENO: result: $GROFF" >&5
7608echo "${ECHO_T}$GROFF" >&6; }
7609else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
7612fi
7613
7614
7615# Extract the first word of "gzip", so it can be a program name with args.
7616set dummy gzip; ac_word=$2
7617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619if test "${ac_cv_path_GZIP+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622 case $GZIP in
7623 [\\/]* | ?:[\\/]*)
7624 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7625 ;;
7626 *)
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639done
7640IFS=$as_save_IFS
7641
7642 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7643 ;;
7644esac
7645fi
7646GZIP=$ac_cv_path_GZIP
7647if test -n "$GZIP"; then
7648 { echo "$as_me:$LINENO: result: $GZIP" >&5
7649echo "${ECHO_T}$GZIP" >&6; }
7650else
7651 { echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6; }
7653fi
7654
7655
7656# Extract the first word of "pod2html", so it can be a program name with args.
7657set dummy pod2html; ac_word=$2
7658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660if test "${ac_cv_path_POD2HTML+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663 case $POD2HTML in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7666 ;;
7667 *)
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679done
7680done
7681IFS=$as_save_IFS
7682
7683 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7684 ;;
7685esac
7686fi
7687POD2HTML=$ac_cv_path_POD2HTML
7688if test -n "$POD2HTML"; then
7689 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7690echo "${ECHO_T}$POD2HTML" >&6; }
7691else
7692 { echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6; }
7694fi
7695
7696
7697# Extract the first word of "pod2man", so it can be a program name with args.
7698set dummy pod2man; ac_word=$2
7699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701if test "${ac_cv_path_POD2MAN+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704 case $POD2MAN in
7705 [\\/]* | ?:[\\/]*)
7706 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7707 ;;
7708 *)
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720done
7721done
7722IFS=$as_save_IFS
7723
7724 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7725 ;;
7726esac
7727fi
7728POD2MAN=$ac_cv_path_POD2MAN
7729if test -n "$POD2MAN"; then
7730 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7731echo "${ECHO_T}$POD2MAN" >&6; }
7732else
7733 { echo "$as_me:$LINENO: result: no" >&5
7734echo "${ECHO_T}no" >&6; }
7735fi
7736
7737
7738# Extract the first word of "runtest", so it can be a program name with args.
7739set dummy runtest; ac_word=$2
7740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742if test "${ac_cv_path_RUNTEST+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745 case $RUNTEST in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7748 ;;
7749 *)
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763IFS=$as_save_IFS
7764
7765 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7766 ;;
7767esac
7768fi
7769RUNTEST=$ac_cv_path_RUNTEST
7770if test -n "$RUNTEST"; then
7771 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7772echo "${ECHO_T}$RUNTEST" >&6; }
7773else
7774 { echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6; }
7776fi
7777
7778
7779
7780no_itcl=true
7781{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7782echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7783
7784# Check whether --with-tclinclude was given.
7785if test "${with_tclinclude+set}" = set; then
7786 withval=$with_tclinclude; with_tclinclude=${withval}
7787else
7788 with_tclinclude=''
7789fi
7790
7791if test "${ac_cv_path_tclsh+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794
7795if test x"${with_tclinclude}" != x ; then
7796 if test -f ${with_tclinclude}/tclsh ; then
7797 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7798 elif test -f ${with_tclinclude}/src/tclsh ; then
7799 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7800 else
7801 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7802echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7803 { (exit 1); exit 1; }; }
7804 fi
7805fi
7806
7807if test x"${ac_cv_path_tclsh}" = x ; then
7808 { echo "$as_me:$LINENO: result: none" >&5
7809echo "${ECHO_T}none" >&6; }
7810 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
7811do
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813set dummy $ac_prog; ac_word=$2
7814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816if test "${ac_cv_path_TCLSH+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 case $TCLSH in
7820 [\\/]* | ?:[\\/]*)
7821 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7822 ;;
7823 *)
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836done
7837IFS=$as_save_IFS
7838
7839 ;;
7840esac
7841fi
7842TCLSH=$ac_cv_path_TCLSH
7843if test -n "$TCLSH"; then
7844 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7845echo "${ECHO_T}$TCLSH" >&6; }
7846else
7847 { echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6; }
7849fi
7850
7851
7852 test -n "$TCLSH" && break
7853done
7854
7855 if test x"${TCLSH}" = x ; then
7856 ac_cv_path_tclsh='';
7857 else
7858 ac_cv_path_tclsh="${TCLSH}";
7859 fi
7860else
7861 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7862echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7863 TCLSH="${ac_cv_path_tclsh}"
7864
7865fi
7866
7867fi
7868
7869# Extract the first word of "zip", so it can be a program name with args.
7870set dummy zip; ac_word=$2
7871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7873if test "${ac_cv_path_ZIP+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 case $ZIP in
7877 [\\/]* | ?:[\\/]*)
7878 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7879 ;;
7880 *)
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892done
7893done
7894IFS=$as_save_IFS
7895
7896 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7897 ;;
7898esac
7899fi
7900ZIP=$ac_cv_path_ZIP
7901if test -n "$ZIP"; then
7902 { echo "$as_me:$LINENO: result: $ZIP" >&5
7903echo "${ECHO_T}$ZIP" >&6; }
7904else
7905 { echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6; }
7907fi
7908
7909
7910
7911{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7912echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7913if test "${llvm_cv_link_use_r+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916 ac_ext=c
7917ac_cpp='$CPP $CPPFLAGS'
7918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922 oldcflags="$CFLAGS"
7923 CFLAGS="$CFLAGS -Wl,-R."
7924 cat >conftest.$ac_ext <<_ACEOF
7925/* confdefs.h. */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h. */
7930
7931int
7932main ()
7933{
7934int main() { return 0; }
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939rm -f conftest.$ac_objext conftest$ac_exeext
7940if { (ac_try="$ac_link"
7941case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944esac
7945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_link") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957esac
7958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_try") 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967esac
7968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_try") 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 llvm_cv_link_use_r=yes
7974else
7975 echo "$as_me: failed program was:" >&5
7976sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 llvm_cv_link_use_r=no
7979fi
7980
7981rm -f core conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983 CFLAGS="$oldcflags"
7984 ac_ext=c
7985ac_cpp='$CPP $CPPFLAGS'
7986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990
7991fi
7992{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7993echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7994if test "$llvm_cv_link_use_r" = yes ; then
7995
7996cat >>confdefs.h <<\_ACEOF
7997#define HAVE_LINK_R 1
7998_ACEOF
7999
8000 fi
8001
8002
8003
8004
8005{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8006echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8007if test "${ac_cv_c_const+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 cat >conftest.$ac_ext <<_ACEOF
8011/* confdefs.h. */
8012_ACEOF
8013cat confdefs.h >>conftest.$ac_ext
8014cat >>conftest.$ac_ext <<_ACEOF
8015/* end confdefs.h. */
8016
8017int
8018main ()
8019{
8020/* FIXME: Include the comments suggested by Paul. */
8021#ifndef __cplusplus
8022 /* Ultrix mips cc rejects this. */
8023 typedef int charset[2];
8024 const charset x;
8025 /* SunOS 4.1.1 cc rejects this. */
8026 char const *const *ccp;
8027 char **p;
8028 /* NEC SVR4.0.2 mips cc rejects this. */
8029 struct point {int x, y;};
8030 static struct point const zero = {0,0};
8031 /* AIX XL C 1.02.0.0 rejects this.
8032 It does not let you subtract one const X* pointer from another in
8033 an arm of an if-expression whose if-part is not a constant
8034 expression */
8035 const char *g = "string";
8036 ccp = &g + (g ? g-g : 0);
8037 /* HPUX 7.0 cc rejects these. */
8038 ++ccp;
8039 p = (char**) ccp;
8040 ccp = (char const *const *) p;
8041 { /* SCO 3.2v4 cc rejects this. */
8042 char *t;
8043 char const *s = 0 ? (char *) 0 : (char const *) 0;
8044
8045 *t++ = 0;
8046 if (s) return 0;
8047 }
8048 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8049 int x[] = {25, 17};
8050 const int *foo = &x[0];
8051 ++foo;
8052 }
8053 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8054 typedef const int *iptr;
8055 iptr p = 0;
8056 ++p;
8057 }
8058 { /* AIX XL C 1.02.0.0 rejects this saying
8059 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8060 struct s { int j; const int *ap[3]; };
8061 struct s *b; b->j = 5;
8062 }
8063 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8064 const int foo = 10;
8065 if (!foo) return 0;
8066 }
8067 return !x[0] && !zero.x;
8068#endif
8069
8070 ;
8071 return 0;
8072}
8073_ACEOF
8074rm -f conftest.$ac_objext
8075if { (ac_try="$ac_compile"
8076case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079esac
8080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8089 { (case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092esac
8093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_try") 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; } &&
8098 { ac_try='test -s conftest.$ac_objext'
8099 { (case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102esac
8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_try") 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_c_const=yes
8109else
8110 echo "$as_me: failed program was:" >&5
8111sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 ac_cv_c_const=no
8114fi
8115
8116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117fi
8118{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8119echo "${ECHO_T}$ac_cv_c_const" >&6; }
8120if test $ac_cv_c_const = no; then
8121
8122cat >>confdefs.h <<\_ACEOF
8123#define const
8124_ACEOF
8125
8126fi
8127
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008128
8129
8130
8131
8132
8133ac_header_dirent=no
8134for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8135 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008136{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8137echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008139 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#include <sys/types.h>
8148#include <$ac_hdr>
8149
8150int
8151main ()
8152{
8153if ((DIR *) 0)
8154return 0;
8155 ;
8156 return 0;
8157}
8158_ACEOF
8159rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008160if { (ac_try="$ac_compile"
8161case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164esac
8165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8174 { (case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 eval "$as_ac_Header=yes"
8194else
8195 echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
Reid Spencera773bd52006-08-04 18:18:08 +00008198 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008199fi
Reid Spencera773bd52006-08-04 18:18:08 +00008200
8201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008202fi
Reid Spencera773bd52006-08-04 18:18:08 +00008203ac_res=`eval echo '${'$as_ac_Header'}'`
8204 { echo "$as_me:$LINENO: result: $ac_res" >&5
8205echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008206if test `eval echo '${'$as_ac_Header'}'` = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8209_ACEOF
8210
8211ac_header_dirent=$ac_hdr; break
8212fi
8213
8214done
8215# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8216if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008219if test "${ac_cv_search_opendir+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008223cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229
Reid Spencera773bd52006-08-04 18:18:08 +00008230/* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233#ifdef __cplusplus
8234extern "C"
8235#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008236char opendir ();
8237int
8238main ()
8239{
Reid Spencera773bd52006-08-04 18:18:08 +00008240return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241 ;
8242 return 0;
8243}
8244_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008245for ac_lib in '' dir; do
8246 if test -z "$ac_lib"; then
8247 ac_res="none required"
8248 else
8249 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008251 fi
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253if { (ac_try="$ac_link"
8254case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257esac
8258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270esac
8271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008286 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008287else
8288 echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008291
8292fi
8293
Reid Spencera773bd52006-08-04 18:18:08 +00008294rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext
8296 if test "${ac_cv_search_opendir+set}" = set; then
8297 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008298fi
John Criswell7a73b802003-06-30 21:59:07 +00008299done
Reid Spencera773bd52006-08-04 18:18:08 +00008300if test "${ac_cv_search_opendir+set}" = set; then
8301 :
8302else
8303 ac_cv_search_opendir=no
8304fi
8305rm conftest.$ac_ext
8306LIBS=$ac_func_search_save_LIBS
8307fi
8308{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8309echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8310ac_res=$ac_cv_search_opendir
8311if test "$ac_res" != no; then
8312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008313
Reid Spencera773bd52006-08-04 18:18:08 +00008314fi
8315
8316else
8317 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8318echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8319if test "${ac_cv_search_opendir+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322 ac_func_search_save_LIBS=$LIBS
8323cat >conftest.$ac_ext <<_ACEOF
8324/* confdefs.h. */
8325_ACEOF
8326cat confdefs.h >>conftest.$ac_ext
8327cat >>conftest.$ac_ext <<_ACEOF
8328/* end confdefs.h. */
8329
8330/* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8333#ifdef __cplusplus
8334extern "C"
8335#endif
8336char opendir ();
8337int
8338main ()
8339{
8340return opendir ();
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345for ac_lib in '' x; do
8346 if test -z "$ac_lib"; then
8347 ac_res="none required"
8348 else
8349 ac_res=-l$ac_lib
8350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8351 fi
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353if { (ac_try="$ac_link"
8354case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357esac
8358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_link") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_search_opendir=$ac_res
8387else
8388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
8391
8392fi
8393
8394rm -f core conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext
8396 if test "${ac_cv_search_opendir+set}" = set; then
8397 break
8398fi
8399done
8400if test "${ac_cv_search_opendir+set}" = set; then
8401 :
8402else
8403 ac_cv_search_opendir=no
8404fi
8405rm conftest.$ac_ext
8406LIBS=$ac_func_search_save_LIBS
8407fi
8408{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8409echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8410ac_res=$ac_cv_search_opendir
8411if test "$ac_res" != no; then
8412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8413
8414fi
8415
8416fi
John Criswell7a73b802003-06-30 21:59:07 +00008417
8418
8419for ac_header in dlfcn.h
8420do
8421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008426 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008427fi
Reid Spencera773bd52006-08-04 18:18:08 +00008428ac_res=`eval echo '${'$as_ac_Header'}'`
8429 { echo "$as_me:$LINENO: result: $ac_res" >&5
8430echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008431else
Brian Gaeke0a621332004-09-08 20:38:05 +00008432 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008433{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008435cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008441$ac_includes_default
8442#include <$ac_header>
8443_ACEOF
8444rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008445if { (ac_try="$ac_compile"
8446case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472esac
8473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008478 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008479else
8480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008481sed 's/^/| /' conftest.$ac_ext >&5
8482
Reid Spencera773bd52006-08-04 18:18:08 +00008483 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008484fi
Reid Spencera773bd52006-08-04 18:18:08 +00008485
8486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8488echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008489
8490# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008491{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008493cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008494/* confdefs.h. */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h. */
8499#include <$ac_header>
8500_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008501if { (ac_try="$ac_cpp conftest.$ac_ext"
8502case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } >/dev/null; then
8514 if test -s conftest.err; then
8515 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008517 else
8518 ac_cpp_err=
8519 fi
8520else
8521 ac_cpp_err=yes
8522fi
8523if test -z "$ac_cpp_err"; then
8524 ac_header_preproc=yes
8525else
8526 echo "$as_me: failed program was:" >&5
8527sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 ac_header_preproc=no
8530fi
Reid Spencera773bd52006-08-04 18:18:08 +00008531
Brian Gaeke0a621332004-09-08 20:38:05 +00008532rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008535
8536# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8538 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8543 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008544 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008545 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008558 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008559## ----------------------------------- ##
8560## Report this to llvmbugs@cs.uiuc.edu ##
8561## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008562_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008563 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008564 ;;
8565esac
Reid Spencera773bd52006-08-04 18:18:08 +00008566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008571 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008572fi
Reid Spencera773bd52006-08-04 18:18:08 +00008573ac_res=`eval echo '${'$as_ac_Header'}'`
8574 { echo "$as_me:$LINENO: result: $ac_res" >&5
8575echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008576
8577fi
John Criswell7a73b802003-06-30 21:59:07 +00008578if test `eval echo '${'$as_ac_Header'}'` = yes; then
8579 cat >>confdefs.h <<_ACEOF
8580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8581_ACEOF
8582
8583fi
8584
8585done
8586
Reid Spencera773bd52006-08-04 18:18:08 +00008587# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008588if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008589 enableval=$enable_ltdl_install;
8590fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008591
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008592
8593
8594
8595if test x"${enable_ltdl_install-no}" != xno; then
8596 INSTALL_LTDL_TRUE=
8597 INSTALL_LTDL_FALSE='#'
8598else
8599 INSTALL_LTDL_TRUE='#'
8600 INSTALL_LTDL_FALSE=
8601fi
8602
8603
8604
8605if test x"${enable_ltdl_convenience-no}" != xno; then
8606 CONVENIENCE_LTDL_TRUE=
8607 CONVENIENCE_LTDL_FALSE='#'
8608else
8609 CONVENIENCE_LTDL_TRUE='#'
8610 CONVENIENCE_LTDL_FALSE=
8611fi
8612
8613
Reid Spencera773bd52006-08-04 18:18:08 +00008614{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008616library_names_spec=
8617libname_spec='lib$name'
8618soname_spec=
8619shrext_cmds=".so"
8620postinstall_cmds=
8621postuninstall_cmds=
8622finish_cmds=
8623finish_eval=
8624shlibpath_var=
8625shlibpath_overrides_runpath=unknown
8626version_type=none
8627dynamic_linker="$host_os ld.so"
8628sys_lib_dlsearch_path_spec="/lib /usr/lib"
8629if test "$GCC" = yes; then
8630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8632 # if the path contains ";" then we assume it to be the separator
8633 # otherwise default to the standard path separator (i.e. ":") - it is
8634 # assumed that no part of a normal pathname contains ";" but that should
8635 # okay in the real world where ";" in dirpaths is itself problematic.
8636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8637 else
8638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8639 fi
8640else
8641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8642fi
8643need_lib_prefix=unknown
8644hardcode_into_libs=no
8645
8646# when you set need_version to no, make sure it does not cause -set_version
8647# flags to be left without arguments
8648need_version=unknown
8649
8650case $host_os in
8651aix3*)
8652 version_type=linux
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8654 shlibpath_var=LIBPATH
8655
8656 # AIX 3 has no versioning support, so we append a major version to the name.
8657 soname_spec='${libname}${release}${shared_ext}$major'
8658 ;;
8659
8660aix4* | aix5*)
8661 version_type=linux
8662 need_lib_prefix=no
8663 need_version=no
8664 hardcode_into_libs=yes
8665 if test "$host_cpu" = ia64; then
8666 # AIX 5 supports IA64
8667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 else
8670 # With GCC up to 2.95.x, collect2 would create an import file
8671 # for dependence libraries. The import file would start with
8672 # the line `#! .'. This would cause the generated library to
8673 # depend on `.', always an invalid library. This was fixed in
8674 # development snapshots of GCC prior to 3.0.
8675 case $host_os in
8676 aix4 | aix4.[01] | aix4.[01].*)
8677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8678 echo ' yes '
8679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8680 :
8681 else
8682 can_build_shared=no
8683 fi
8684 ;;
8685 esac
8686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8687 # soname into executable. Probably we can add versioning support to
8688 # collect2, so additional links can be useful in future.
8689 if test "$aix_use_runtimelinking" = yes; then
8690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8691 # instead of lib<name>.a to let people know that these are not
8692 # typical AIX shared libraries.
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694 else
8695 # We preserve .a as extension for shared libraries through AIX4.2
8696 # and later when we are not doing run time linking.
8697 library_names_spec='${libname}${release}.a $libname.a'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 fi
8700 shlibpath_var=LIBPATH
8701 fi
8702 ;;
8703
8704amigaos*)
8705 library_names_spec='$libname.ixlibrary $libname.a'
8706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8707 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'
8708 ;;
8709
8710beos*)
8711 library_names_spec='${libname}${shared_ext}'
8712 dynamic_linker="$host_os ld.so"
8713 shlibpath_var=LIBRARY_PATH
8714 ;;
8715
8716bsdi[45]*)
8717 version_type=linux
8718 need_version=no
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720 soname_spec='${libname}${release}${shared_ext}$major'
8721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8722 shlibpath_var=LD_LIBRARY_PATH
8723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8725 # the default ld.so.conf also contains /usr/contrib/lib and
8726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8727 # libtool to hard-code these into programs
8728 ;;
8729
8730cygwin* | mingw* | pw32*)
8731 version_type=windows
8732 shrext_cmds=".dll"
8733 need_version=no
8734 need_lib_prefix=no
8735
8736 case $GCC,$host_os in
8737 yes,cygwin* | yes,mingw* | yes,pw32*)
8738 library_names_spec='$libname.dll.a'
8739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8740 postinstall_cmds='base_file=`basename \${file}`~
8741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8742 dldir=$destdir/`dirname \$dlpath`~
8743 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008744 $install_prog $dir/$dlname \$dldir/$dlname~
8745 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8747 dlpath=$dir/\$dldll~
8748 $rm \$dlpath'
8749 shlibpath_overrides_runpath=yes
8750
8751 case $host_os in
8752 cygwin*)
8753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8756 ;;
8757 mingw*)
8758 # MinGW DLLs use traditional 'lib' prefix
8759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8762 # It is most probably a Windows format PATH printed by
8763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8764 # path with ; separators, and with drive letters. We can handle the
8765 # drive letters (cygwin fileutils understands them), so leave them,
8766 # especially as we might pass files found there to a mingw objdump,
8767 # which wouldn't understand a cygwinified path. Ahh.
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769 else
8770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8771 fi
8772 ;;
8773 pw32*)
8774 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008775 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 +00008776 ;;
8777 esac
8778 ;;
8779
8780 *)
8781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8782 ;;
8783 esac
8784 dynamic_linker='Win32 ld.exe'
8785 # FIXME: first we should search . and the directory the executable is in
8786 shlibpath_var=PATH
8787 ;;
8788
8789darwin* | rhapsody*)
8790 dynamic_linker="$host_os dyld"
8791 version_type=darwin
8792 need_lib_prefix=no
8793 need_version=no
8794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8795 soname_spec='${libname}${release}${major}$shared_ext'
8796 shlibpath_overrides_runpath=yes
8797 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008798 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8800 if test "$GCC" = yes; then
8801 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"`
8802 else
8803 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8804 fi
8805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8806 ;;
8807
8808dgux*)
8809 version_type=linux
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 ;;
8816
8817freebsd1*)
8818 dynamic_linker=no
8819 ;;
8820
8821kfreebsd*-gnu)
8822 version_type=linux
8823 need_lib_prefix=no
8824 need_version=no
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=no
8829 hardcode_into_libs=yes
8830 dynamic_linker='GNU ld.so'
8831 ;;
8832
Reid Spencera773bd52006-08-04 18:18:08 +00008833freebsd* | dragonfly*)
8834 # DragonFly does not have aout. When/if they implement a new
8835 # versioning mechanism, adjust this.
8836 if test -x /usr/bin/objformat; then
8837 objformat=`/usr/bin/objformat`
8838 else
8839 case $host_os in
8840 freebsd[123]*) objformat=aout ;;
8841 *) objformat=elf ;;
8842 esac
8843 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844 version_type=freebsd-$objformat
8845 case $version_type in
8846 freebsd-elf*)
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8848 need_version=no
8849 need_lib_prefix=no
8850 ;;
8851 freebsd-*)
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8853 need_version=yes
8854 ;;
8855 esac
8856 shlibpath_var=LD_LIBRARY_PATH
8857 case $host_os in
8858 freebsd2*)
8859 shlibpath_overrides_runpath=yes
8860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008861 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008862 shlibpath_overrides_runpath=yes
8863 hardcode_into_libs=yes
8864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 shlibpath_overrides_runpath=no
8868 hardcode_into_libs=yes
8869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008870 freebsd*) # from 4.6 on
8871 shlibpath_overrides_runpath=yes
8872 hardcode_into_libs=yes
8873 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874 esac
8875 ;;
8876
8877gnu*)
8878 version_type=linux
8879 need_lib_prefix=no
8880 need_version=no
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 hardcode_into_libs=yes
8885 ;;
8886
8887hpux9* | hpux10* | hpux11*)
8888 # Give a soname corresponding to the major version so that dld.sl refuses to
8889 # link against other versions.
8890 version_type=sunos
8891 need_lib_prefix=no
8892 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008893 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894 ia64*)
8895 shrext_cmds='.so'
8896 hardcode_into_libs=yes
8897 dynamic_linker="$host_os dld.so"
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 if test "X$HPUX_IA64_MODE" = X32; then
8903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8904 else
8905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8906 fi
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 ;;
8909 hppa*64*)
8910 shrext_cmds='.sl'
8911 hardcode_into_libs=yes
8912 dynamic_linker="$host_os dld.sl"
8913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8919 ;;
8920 *)
8921 shrext_cmds='.sl'
8922 dynamic_linker="$host_os dld.sl"
8923 shlibpath_var=SHLIB_PATH
8924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 ;;
8928 esac
8929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8930 postinstall_cmds='chmod 555 $lib'
8931 ;;
8932
Reid Spencera773bd52006-08-04 18:18:08 +00008933interix3*)
8934 version_type=linux
8935 need_lib_prefix=no
8936 need_version=no
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=no
8942 hardcode_into_libs=yes
8943 ;;
8944
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008945irix5* | irix6* | nonstopux*)
8946 case $host_os in
8947 nonstopux*) version_type=nonstopux ;;
8948 *)
8949 if test "$lt_cv_prog_gnu_ld" = yes; then
8950 version_type=linux
8951 else
8952 version_type=irix
8953 fi ;;
8954 esac
8955 need_lib_prefix=no
8956 need_version=no
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 case $host_os in
8960 irix5* | nonstopux*)
8961 libsuff= shlibsuff=
8962 ;;
8963 *)
8964 case $LD in # libtool.m4 will add one of these switches to LD
8965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8966 libsuff= shlibsuff= libmagic=32-bit;;
8967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8968 libsuff=32 shlibsuff=N32 libmagic=N32;;
8969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8971 *) libsuff= shlibsuff= libmagic=never-match;;
8972 esac
8973 ;;
8974 esac
8975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8976 shlibpath_overrides_runpath=no
8977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8979 hardcode_into_libs=yes
8980 ;;
8981
8982# No shared lib support for Linux oldld, aout, or coff.
8983linux*oldld* | linux*aout* | linux*coff*)
8984 dynamic_linker=no
8985 ;;
8986
8987# This must be Linux ELF.
8988linux*)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=no
8997 # This implies no fast_install, which is unacceptable.
8998 # Some rework will be needed to allow for fast_install
8999 # before this can be enabled.
9000 hardcode_into_libs=yes
9001
9002 # Append ld.so.conf contents to the search path
9003 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009004 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 +00009005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9006 fi
9007
9008 # We used to test for /lib/ld.so.1 and disable shared libraries on
9009 # powerpc, because MkLinux only supported shared libraries with the
9010 # GNU dynamic linker. Since this was broken with cross compilers,
9011 # most powerpc-linux boxes support dynamic linking these days and
9012 # people can always --disable-shared, the test was removed, and we
9013 # assume the GNU/Linux dynamic linker is in use.
9014 dynamic_linker='GNU/Linux ld.so'
9015 ;;
9016
9017knetbsd*-gnu)
9018 version_type=linux
9019 need_lib_prefix=no
9020 need_version=no
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 shlibpath_var=LD_LIBRARY_PATH
9024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9026 dynamic_linker='GNU ld.so'
9027 ;;
9028
9029netbsd*)
9030 version_type=sunos
9031 need_lib_prefix=no
9032 need_version=no
9033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036 dynamic_linker='NetBSD (a.out) ld.so'
9037 else
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 dynamic_linker='NetBSD ld.elf_so'
9041 fi
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=yes
9044 hardcode_into_libs=yes
9045 ;;
9046
9047newsos6)
9048 version_type=linux
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 ;;
9053
9054nto-qnx*)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 ;;
9063
9064openbsd*)
9065 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009066 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009067 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9069 case $host_os in
9070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9071 *) need_version=no ;;
9072 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9077 case $host_os in
9078 openbsd2.[89] | openbsd2.[89].*)
9079 shlibpath_overrides_runpath=no
9080 ;;
9081 *)
9082 shlibpath_overrides_runpath=yes
9083 ;;
9084 esac
9085 else
9086 shlibpath_overrides_runpath=yes
9087 fi
9088 ;;
9089
9090os2*)
9091 libname_spec='$name'
9092 shrext_cmds=".dll"
9093 need_lib_prefix=no
9094 library_names_spec='$libname${shared_ext} $libname.a'
9095 dynamic_linker='OS/2 ld.exe'
9096 shlibpath_var=LIBPATH
9097 ;;
9098
9099osf3* | osf4* | osf5*)
9100 version_type=osf
9101 need_lib_prefix=no
9102 need_version=no
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9108 ;;
9109
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009110solaris*)
9111 version_type=linux
9112 need_lib_prefix=no
9113 need_version=no
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes
9118 hardcode_into_libs=yes
9119 # ldd complains unless libraries are executable
9120 postinstall_cmds='chmod +x $lib'
9121 ;;
9122
9123sunos4*)
9124 version_type=sunos
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 shlibpath_overrides_runpath=yes
9129 if test "$with_gnu_ld" = yes; then
9130 need_lib_prefix=no
9131 fi
9132 need_version=yes
9133 ;;
9134
Reid Spencera773bd52006-08-04 18:18:08 +00009135sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136 version_type=linux
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 case $host_vendor in
9141 sni)
9142 shlibpath_overrides_runpath=no
9143 need_lib_prefix=no
9144 export_dynamic_flag_spec='${wl}-Blargedynsym'
9145 runpath_var=LD_RUN_PATH
9146 ;;
9147 siemens)
9148 need_lib_prefix=no
9149 ;;
9150 motorola)
9151 need_lib_prefix=no
9152 need_version=no
9153 shlibpath_overrides_runpath=no
9154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9155 ;;
9156 esac
9157 ;;
9158
9159sysv4*MP*)
9160 if test -d /usr/nec ;then
9161 version_type=linux
9162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9163 soname_spec='$libname${shared_ext}.$major'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 fi
9166 ;;
9167
Reid Spencera773bd52006-08-04 18:18:08 +00009168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9169 version_type=freebsd-elf
9170 need_lib_prefix=no
9171 need_version=no
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 hardcode_into_libs=yes
9176 if test "$with_gnu_ld" = yes; then
9177 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9178 shlibpath_overrides_runpath=no
9179 else
9180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9181 shlibpath_overrides_runpath=yes
9182 case $host_os in
9183 sco3.2v5*)
9184 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9185 ;;
9186 esac
9187 fi
9188 sys_lib_dlsearch_path_spec='/usr/lib'
9189 ;;
9190
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009191uts4*)
9192 version_type=linux
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 ;;
9197
9198*)
9199 dynamic_linker=no
9200 ;;
9201esac
Reid Spencera773bd52006-08-04 18:18:08 +00009202{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9203echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204test "$dynamic_linker" = no && can_build_shared=no
9205
Reid Spencera773bd52006-08-04 18:18:08 +00009206variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9207if test "$GCC" = yes; then
9208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9209fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009210
Reid Spencera773bd52006-08-04 18:18:08 +00009211
9212{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9213echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009214if test "${libltdl_cv_shlibext+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217
9218module=yes
9219eval libltdl_cv_shlibext=$shrext_cmds
9220
9221fi
Reid Spencera773bd52006-08-04 18:18:08 +00009222{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9223echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224if test -n "$libltdl_cv_shlibext"; then
9225
9226cat >>confdefs.h <<_ACEOF
9227#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9228_ACEOF
9229
9230fi
9231
9232
Reid Spencera773bd52006-08-04 18:18:08 +00009233{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9234echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235if test "${libltdl_cv_shlibpath_var+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238 libltdl_cv_shlibpath_var="$shlibpath_var"
9239fi
Reid Spencera773bd52006-08-04 18:18:08 +00009240{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9241echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242if test -n "$libltdl_cv_shlibpath_var"; then
9243
9244cat >>confdefs.h <<_ACEOF
9245#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9246_ACEOF
9247
9248fi
9249
9250
Reid Spencera773bd52006-08-04 18:18:08 +00009251{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9252echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253if test "${libltdl_cv_sys_search_path+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255else
9256 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9257fi
Reid Spencera773bd52006-08-04 18:18:08 +00009258{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9259echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260if test -n "$libltdl_cv_sys_search_path"; then
9261 sys_search_path=
9262 for dir in $libltdl_cv_sys_search_path; do
9263 if test -z "$sys_search_path"; then
9264 sys_search_path="$dir"
9265 else
9266 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9267 fi
9268 done
9269
9270cat >>confdefs.h <<_ACEOF
9271#define LTDL_SYSSEARCHPATH "$sys_search_path"
9272_ACEOF
9273
9274fi
9275
Reid Spencera773bd52006-08-04 18:18:08 +00009276{ echo "$as_me:$LINENO: checking for objdir" >&5
9277echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009278if test "${libltdl_cv_objdir+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else
9281 libltdl_cv_objdir="$objdir"
9282 if test -n "$objdir"; then
9283 :
9284 else
9285 rm -f .libs 2>/dev/null
9286 mkdir .libs 2>/dev/null
9287 if test -d .libs; then
9288 libltdl_cv_objdir=.libs
9289 else
9290 # MS-DOS does not allow filenames that begin with a dot.
9291 libltdl_cv_objdir=_libs
9292 fi
9293 rmdir .libs 2>/dev/null
9294 fi
9295
9296fi
Reid Spencera773bd52006-08-04 18:18:08 +00009297{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9298echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299
9300cat >>confdefs.h <<_ACEOF
9301#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9302_ACEOF
9303
9304
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305
9306
9307
9308
9309# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009310{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9311echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009312if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315
9316# These are sane defaults that work on at least a few old systems.
9317# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9318
9319# Character class describing NM global symbol codes.
9320symcode='[BCDEGRST]'
9321
9322# Regexp to match symbols that can be accessed directly from C.
9323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9324
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325# Transform an extracted symbol line into a proper C declaration
9326lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9327
9328# Transform an extracted symbol line into symbol name and symbol address
9329lt_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'"
9330
9331# Define system-specific variables.
9332case $host_os in
9333aix*)
9334 symcode='[BCDT]'
9335 ;;
9336cygwin* | mingw* | pw32*)
9337 symcode='[ABCDGISTW]'
9338 ;;
9339hpux*) # Its linker distinguishes data from code symbols
9340 if test "$host_cpu" = ia64; then
9341 symcode='[ABCDEGRST]'
9342 fi
9343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9344 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'"
9345 ;;
9346linux*)
9347 if test "$host_cpu" = ia64; then
9348 symcode='[ABCDGIRSTW]'
9349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9350 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'"
9351 fi
9352 ;;
9353irix* | nonstopux*)
9354 symcode='[BCDEGRST]'
9355 ;;
9356osf*)
9357 symcode='[BCDEGQRST]'
9358 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009359solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360 symcode='[BDRT]'
9361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009362sco3.2v5*)
9363 symcode='[DT]'
9364 ;;
9365sysv4.2uw2*)
9366 symcode='[DT]'
9367 ;;
9368sysv5* | sco5v6* | unixware* | OpenUNIX*)
9369 symcode='[ABDT]'
9370 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371sysv4)
9372 symcode='[DFNSTU]'
9373 ;;
9374esac
9375
9376# Handle CRLF in mingw tool chain
9377opt_cr=
9378case $build_os in
9379mingw*)
9380 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9381 ;;
9382esac
9383
9384# If we're using GNU nm, then use its standard symbol codes.
9385case `$NM -V 2>&1` in
9386*GNU* | *'with BFD'*)
9387 symcode='[ABCDGIRSTW]' ;;
9388esac
9389
9390# Try without a prefix undercore, then with it.
9391for ac_symprfx in "" "_"; do
9392
Reid Spencera773bd52006-08-04 18:18:08 +00009393 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9394 symxfrm="\\1 $ac_symprfx\\2 \\2"
9395
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009397 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 +00009398
9399 # Check to see that the pipe works correctly.
9400 pipe_works=no
9401
9402 rm -f conftest*
9403 cat > conftest.$ac_ext <<EOF
9404#ifdef __cplusplus
9405extern "C" {
9406#endif
9407char nm_test_var;
9408void nm_test_func(){}
9409#ifdef __cplusplus
9410}
9411#endif
9412int main(){nm_test_var='a';nm_test_func();return(0);}
9413EOF
9414
9415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416 (eval $ac_compile) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; then
9420 # Now try to grab the symbols.
9421 nlist=conftest.nm
9422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && test -s "$nlist"; then
9427 # Try sorting and uniquifying the output.
9428 if sort "$nlist" | uniq > "$nlist"T; then
9429 mv -f "$nlist"T "$nlist"
9430 else
9431 rm -f "$nlist"T
9432 fi
9433
9434 # Make sure that we snagged all the symbols we need.
9435 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9436 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9437 cat <<EOF > conftest.$ac_ext
9438#ifdef __cplusplus
9439extern "C" {
9440#endif
9441
9442EOF
9443 # Now generate the symbol file.
9444 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9445
9446 cat <<EOF >> conftest.$ac_ext
9447#if defined (__STDC__) && __STDC__
9448# define lt_ptr_t void *
9449#else
9450# define lt_ptr_t char *
9451# define const
9452#endif
9453
9454/* The mapping between symbol names and symbols. */
9455const struct {
9456 const char *name;
9457 lt_ptr_t address;
9458}
9459lt_preloaded_symbols[] =
9460{
9461EOF
9462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9463 cat <<\EOF >> conftest.$ac_ext
9464 {0, (lt_ptr_t) 0}
9465};
9466
9467#ifdef __cplusplus
9468}
9469#endif
9470EOF
9471 # Now try linking the two files.
9472 mv conftest.$ac_objext conftstm.$ac_objext
9473 lt_save_LIBS="$LIBS"
9474 lt_save_CFLAGS="$CFLAGS"
9475 LIBS="conftstm.$ac_objext"
9476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9482 pipe_works=yes
9483 fi
9484 LIBS="$lt_save_LIBS"
9485 CFLAGS="$lt_save_CFLAGS"
9486 else
9487 echo "cannot find nm_test_func in $nlist" >&5
9488 fi
9489 else
9490 echo "cannot find nm_test_var in $nlist" >&5
9491 fi
9492 else
9493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9494 fi
9495 else
9496 echo "$progname: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9498 fi
9499 rm -f conftest* conftst*
9500
9501 # Do not use the global_symbol_pipe unless it works.
9502 if test "$pipe_works" = yes; then
9503 break
9504 else
9505 lt_cv_sys_global_symbol_pipe=
9506 fi
9507done
9508
9509fi
9510
9511if test -z "$lt_cv_sys_global_symbol_pipe"; then
9512 lt_cv_sys_global_symbol_to_cdecl=
9513fi
9514if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009515 { echo "$as_me:$LINENO: result: failed" >&5
9516echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517else
Reid Spencera773bd52006-08-04 18:18:08 +00009518 { echo "$as_me:$LINENO: result: ok" >&5
9519echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520fi
9521
9522
Reid Spencera773bd52006-08-04 18:18:08 +00009523{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9524echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9529 libltdl_cv_preloaded_symbols=yes
9530 else
9531 libltdl_cv_preloaded_symbols=no
9532 fi
9533
9534fi
Reid Spencera773bd52006-08-04 18:18:08 +00009535{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9536echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9538
9539cat >>confdefs.h <<\_ACEOF
9540#define HAVE_PRELOADED_SYMBOLS 1
9541_ACEOF
9542
9543fi
9544
9545LIBADD_DL=
9546
9547ac_ext=c
9548ac_cpp='$CPP $CPPFLAGS'
9549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9551ac_compiler_gnu=$ac_cv_c_compiler_gnu
9552
9553
Reid Spencera773bd52006-08-04 18:18:08 +00009554{ echo "$as_me:$LINENO: checking for shl_load" >&5
9555echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009556if test "${ac_cv_func_shl_load+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558else
9559 cat >conftest.$ac_ext <<_ACEOF
9560/* confdefs.h. */
9561_ACEOF
9562cat confdefs.h >>conftest.$ac_ext
9563cat >>conftest.$ac_ext <<_ACEOF
9564/* end confdefs.h. */
9565/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9567#define shl_load innocuous_shl_load
9568
9569/* System header to define __stub macros and hopefully few prototypes,
9570 which can conflict with char shl_load (); below.
9571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9572 <limits.h> exists even on freestanding compilers. */
9573
9574#ifdef __STDC__
9575# include <limits.h>
9576#else
9577# include <assert.h>
9578#endif
9579
9580#undef shl_load
9581
Reid Spencera773bd52006-08-04 18:18:08 +00009582/* Override any GCC internal prototype to avoid an error.
9583 Use char because int might match the return type of a GCC
9584 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585#ifdef __cplusplus
9586extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009588char shl_load ();
9589/* The GNU C library defines this for functions which it implements
9590 to always fail with ENOSYS. Some functions are actually named
9591 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009592#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009593choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009594#endif
9595
9596int
9597main ()
9598{
Reid Spencera773bd52006-08-04 18:18:08 +00009599return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009605if { (ac_try="$ac_link"
9606case "(($ac_try" in
9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608 *) ac_try_echo=$ac_try;;
9609esac
9610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9611 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619 { (case "(($ac_try" in
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9622esac
9623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009629 { (case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632esac
9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_func_shl_load=yes
9639else
9640 echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
Reid Spencera773bd52006-08-04 18:18:08 +00009643 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644fi
Reid Spencera773bd52006-08-04 18:18:08 +00009645
9646rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647 conftest$ac_exeext conftest.$ac_ext
9648fi
Reid Spencera773bd52006-08-04 18:18:08 +00009649{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9650echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009651if test $ac_cv_func_shl_load = yes; then
9652
9653cat >>confdefs.h <<\_ACEOF
9654#define HAVE_SHL_LOAD 1
9655_ACEOF
9656
9657else
Reid Spencera773bd52006-08-04 18:18:08 +00009658 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9659echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663 ac_check_lib_save_LIBS=$LIBS
9664LIBS="-ldld $LIBS"
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671
Reid Spencera773bd52006-08-04 18:18:08 +00009672/* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675#ifdef __cplusplus
9676extern "C"
9677#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678char shl_load ();
9679int
9680main ()
9681{
Reid Spencera773bd52006-08-04 18:18:08 +00009682return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_lib_dld_shl_load=yes
9722else
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
Reid Spencera773bd52006-08-04 18:18:08 +00009726 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009727fi
Reid Spencera773bd52006-08-04 18:18:08 +00009728
9729rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730 conftest$ac_exeext conftest.$ac_ext
9731LIBS=$ac_check_lib_save_LIBS
9732fi
Reid Spencera773bd52006-08-04 18:18:08 +00009733{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9734echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735if test $ac_cv_lib_dld_shl_load = yes; then
9736
9737cat >>confdefs.h <<\_ACEOF
9738#define HAVE_SHL_LOAD 1
9739_ACEOF
9740
9741 LIBADD_DL="$LIBADD_DL -ldld"
9742else
Reid Spencera773bd52006-08-04 18:18:08 +00009743 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9744echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747else
9748 ac_check_lib_save_LIBS=$LIBS
9749LIBS="-ldl $LIBS"
9750cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756
Reid Spencera773bd52006-08-04 18:18:08 +00009757/* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760#ifdef __cplusplus
9761extern "C"
9762#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763char dlopen ();
9764int
9765main ()
9766{
Reid Spencera773bd52006-08-04 18:18:08 +00009767return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009773if { (ac_try="$ac_link"
9774case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790esac
9791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_dl_dlopen=yes
9807else
9808 echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
9810
Reid Spencera773bd52006-08-04 18:18:08 +00009811 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812fi
Reid Spencera773bd52006-08-04 18:18:08 +00009813
9814rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815 conftest$ac_exeext conftest.$ac_ext
9816LIBS=$ac_check_lib_save_LIBS
9817fi
Reid Spencera773bd52006-08-04 18:18:08 +00009818{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9819echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820if test $ac_cv_lib_dl_dlopen = yes; then
9821
9822cat >>confdefs.h <<\_ACEOF
9823#define HAVE_LIBDL 1
9824_ACEOF
9825
9826 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9827else
9828 cat >conftest.$ac_ext <<_ACEOF
9829/* confdefs.h. */
9830_ACEOF
9831cat confdefs.h >>conftest.$ac_ext
9832cat >>conftest.$ac_ext <<_ACEOF
9833/* end confdefs.h. */
9834#if HAVE_DLFCN_H
9835# include <dlfcn.h>
9836#endif
9837
9838int
9839main ()
9840{
9841dlopen(0, 0);
9842 ;
9843 return 0;
9844}
9845_ACEOF
9846rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009847if { (ac_try="$ac_link"
9848case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851esac
9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864esac
9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define HAVE_LIBDL 1
9883_ACEOF
9884 libltdl_cv_func_dlopen="yes"
9885else
9886 echo "$as_me: failed program was:" >&5
9887sed 's/^/| /' conftest.$ac_ext >&5
9888
Reid Spencera773bd52006-08-04 18:18:08 +00009889 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9890echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893else
9894 ac_check_lib_save_LIBS=$LIBS
9895LIBS="-lsvld $LIBS"
9896cat >conftest.$ac_ext <<_ACEOF
9897/* confdefs.h. */
9898_ACEOF
9899cat confdefs.h >>conftest.$ac_ext
9900cat >>conftest.$ac_ext <<_ACEOF
9901/* end confdefs.h. */
9902
Reid Spencera773bd52006-08-04 18:18:08 +00009903/* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906#ifdef __cplusplus
9907extern "C"
9908#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909char dlopen ();
9910int
9911main ()
9912{
Reid Spencera773bd52006-08-04 18:18:08 +00009913return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 ;
9915 return 0;
9916}
9917_ACEOF
9918rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009919if { (ac_try="$ac_link"
9920case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 ac_status=$?
9927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933 { (case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936esac
9937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009943 { (case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_lib_svld_dlopen=yes
9953else
9954 echo "$as_me: failed program was:" >&5
9955sed 's/^/| /' conftest.$ac_ext >&5
9956
Reid Spencera773bd52006-08-04 18:18:08 +00009957 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958fi
Reid Spencera773bd52006-08-04 18:18:08 +00009959
9960rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961 conftest$ac_exeext conftest.$ac_ext
9962LIBS=$ac_check_lib_save_LIBS
9963fi
Reid Spencera773bd52006-08-04 18:18:08 +00009964{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9965echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966if test $ac_cv_lib_svld_dlopen = yes; then
9967
9968cat >>confdefs.h <<\_ACEOF
9969#define HAVE_LIBDL 1
9970_ACEOF
9971
9972 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9973else
Reid Spencera773bd52006-08-04 18:18:08 +00009974 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9975echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 ac_check_lib_save_LIBS=$LIBS
9980LIBS="-ldld $LIBS"
9981cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h. */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */
9987
Reid Spencera773bd52006-08-04 18:18:08 +00009988/* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991#ifdef __cplusplus
9992extern "C"
9993#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994char dld_link ();
9995int
9996main ()
9997{
Reid Spencera773bd52006-08-04 18:18:08 +00009998return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999 ;
10000 return 0;
10001}
10002_ACEOF
10003rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010004if { (ac_try="$ac_link"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021esac
10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_cv_lib_dld_dld_link=yes
10038else
10039 echo "$as_me: failed program was:" >&5
10040sed 's/^/| /' conftest.$ac_ext >&5
10041
Reid Spencera773bd52006-08-04 18:18:08 +000010042 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043fi
Reid Spencera773bd52006-08-04 18:18:08 +000010044
10045rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 conftest$ac_exeext conftest.$ac_ext
10047LIBS=$ac_check_lib_save_LIBS
10048fi
Reid Spencera773bd52006-08-04 18:18:08 +000010049{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10050echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051if test $ac_cv_lib_dld_dld_link = yes; then
10052
10053cat >>confdefs.h <<\_ACEOF
10054#define HAVE_DLD 1
10055_ACEOF
10056
10057 LIBADD_DL="$LIBADD_DL -ldld"
10058else
Reid Spencera773bd52006-08-04 18:18:08 +000010059 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10060echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064 cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
10070/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072#define _dyld_func_lookup innocuous__dyld_func_lookup
10073
10074/* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char _dyld_func_lookup (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
10078
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
10084
10085#undef _dyld_func_lookup
10086
Reid Spencera773bd52006-08-04 18:18:08 +000010087/* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090#ifdef __cplusplus
10091extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093char _dyld_func_lookup ();
10094/* The GNU C library defines this for functions which it implements
10095 to always fail with ENOSYS. Some functions are actually named
10096 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010097#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099#endif
10100
10101int
10102main ()
10103{
Reid Spencera773bd52006-08-04 18:18:08 +000010104return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 ;
10106 return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010110if { (ac_try="$ac_link"
10111case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114esac
10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_cv_func__dyld_func_lookup=yes
10144else
10145 echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
Reid Spencera773bd52006-08-04 18:18:08 +000010148 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149fi
Reid Spencera773bd52006-08-04 18:18:08 +000010150
10151rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152 conftest$ac_exeext conftest.$ac_ext
10153fi
Reid Spencera773bd52006-08-04 18:18:08 +000010154{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10155echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156if test $ac_cv_func__dyld_func_lookup = yes; then
10157
10158cat >>confdefs.h <<\_ACEOF
10159#define HAVE_DYLD 1
10160_ACEOF
10161
10162fi
10163
10164
10165fi
10166
10167
10168fi
10169
10170
10171fi
Reid Spencera773bd52006-08-04 18:18:08 +000010172
10173rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174 conftest$ac_exeext conftest.$ac_ext
10175
10176fi
10177
10178
10179fi
10180
10181
10182fi
10183
10184
10185if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10186then
10187 lt_save_LIBS="$LIBS"
10188 LIBS="$LIBS $LIBADD_DL"
10189
10190for ac_func in dlerror
10191do
10192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206#define $ac_func innocuous_$ac_func
10207
10208/* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char $ac_func (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10212
10213#ifdef __STDC__
10214# include <limits.h>
10215#else
10216# include <assert.h>
10217#endif
10218
10219#undef $ac_func
10220
Reid Spencera773bd52006-08-04 18:18:08 +000010221/* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224#ifdef __cplusplus
10225extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227char $ac_func ();
10228/* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010231#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233#endif
10234
10235int
10236main ()
10237{
Reid Spencera773bd52006-08-04 18:18:08 +000010238return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10261esac
10262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271esac
10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 eval "$as_ac_var=yes"
10278else
10279 echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
Reid Spencera773bd52006-08-04 18:18:08 +000010282 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283fi
Reid Spencera773bd52006-08-04 18:18:08 +000010284
10285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286 conftest$ac_exeext conftest.$ac_ext
10287fi
Reid Spencera773bd52006-08-04 18:18:08 +000010288ac_res=`eval echo '${'$as_ac_var'}'`
10289 { echo "$as_me:$LINENO: result: $ac_res" >&5
10290echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291if test `eval echo '${'$as_ac_var'}'` = yes; then
10292 cat >>confdefs.h <<_ACEOF
10293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10294_ACEOF
10295
10296fi
10297done
10298
10299 LIBS="$lt_save_LIBS"
10300fi
10301ac_ext=c
10302ac_cpp='$CPP $CPPFLAGS'
10303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307
10308
Reid Spencera773bd52006-08-04 18:18:08 +000010309{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10310echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314 ac_cv_sys_symbol_underscore=no
10315 cat > conftest.$ac_ext <<EOF
10316void nm_test_func(){}
10317int main(){nm_test_func;return 0;}
10318EOF
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; then
10324 # Now try to grab the symbols.
10325 ac_nlist=conftest.nm
10326 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10327 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && test -s "$ac_nlist"; then
10331 # See whether the symbols have a leading underscore.
10332 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10333 ac_cv_sys_symbol_underscore=yes
10334 else
10335 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10336 :
10337 else
10338 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10339 fi
10340 fi
10341 else
10342 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10343 fi
10344 else
10345 echo "configure: failed program was:" >&5
10346 cat conftest.c >&5
10347 fi
10348 rm -rf conftest*
10349
10350fi
Reid Spencera773bd52006-08-04 18:18:08 +000010351{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10352echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353
10354
10355if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10356 if test x"$libltdl_cv_func_dlopen" = xyes ||
10357 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010358 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10359echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360if test "${libltdl_cv_need_uscore+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363 libltdl_cv_need_uscore=unknown
10364 save_LIBS="$LIBS"
10365 LIBS="$LIBS $LIBADD_DL"
10366 if test "$cross_compiling" = yes; then :
10367 libltdl_cv_need_uscore=cross
10368else
10369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10370 lt_status=$lt_dlunknown
10371 cat > conftest.$ac_ext <<EOF
David Greenea696d242007-06-28 19:36:08 +000010372#line 10369 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373#include "confdefs.h"
10374
10375#if HAVE_DLFCN_H
10376#include <dlfcn.h>
10377#endif
10378
10379#include <stdio.h>
10380
10381#ifdef RTLD_GLOBAL
10382# define LT_DLGLOBAL RTLD_GLOBAL
10383#else
10384# ifdef DL_GLOBAL
10385# define LT_DLGLOBAL DL_GLOBAL
10386# else
10387# define LT_DLGLOBAL 0
10388# endif
10389#endif
10390
10391/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10392 find out it does not work in some platform. */
10393#ifndef LT_DLLAZY_OR_NOW
10394# ifdef RTLD_LAZY
10395# define LT_DLLAZY_OR_NOW RTLD_LAZY
10396# else
10397# ifdef DL_LAZY
10398# define LT_DLLAZY_OR_NOW DL_LAZY
10399# else
10400# ifdef RTLD_NOW
10401# define LT_DLLAZY_OR_NOW RTLD_NOW
10402# else
10403# ifdef DL_NOW
10404# define LT_DLLAZY_OR_NOW DL_NOW
10405# else
10406# define LT_DLLAZY_OR_NOW 0
10407# endif
10408# endif
10409# endif
10410# endif
10411#endif
10412
10413#ifdef __cplusplus
10414extern "C" void exit (int);
10415#endif
10416
10417void fnord() { int i=42;}
10418int main ()
10419{
10420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10421 int status = $lt_dlunknown;
10422
10423 if (self)
10424 {
10425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10426 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10427 /* dlclose (self); */
10428 }
Reid Spencera773bd52006-08-04 18:18:08 +000010429 else
10430 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431
10432 exit (status);
10433}
10434EOF
10435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010440 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 lt_status=$?
10442 case x$lt_status in
10443 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10444 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010445 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 esac
10447 else :
10448 # compilation failed
10449
10450 fi
10451fi
10452rm -fr conftest*
10453
10454 LIBS="$save_LIBS"
10455
10456fi
Reid Spencera773bd52006-08-04 18:18:08 +000010457{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10458echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459 fi
10460fi
10461
10462if test x"$libltdl_cv_need_uscore" = xyes; then
10463
10464cat >>confdefs.h <<\_ACEOF
10465#define NEED_USCORE 1
10466_ACEOF
10467
10468fi
10469
10470
Reid Spencera773bd52006-08-04 18:18:08 +000010471{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10472echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475else
10476 # PORTME does your system automatically load deplibs for dlopen?
10477 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10478 # For now, we just catch OSes we know something about -- in the
10479 # future, we'll try test this programmatically.
10480 libltdl_cv_sys_dlopen_deplibs=unknown
10481 case "$host_os" in
10482 aix3*|aix4.1.*|aix4.2.*)
10483 # Unknown whether this is true for these versions of AIX, but
10484 # we want this `case' here to explicitly catch those versions.
10485 libltdl_cv_sys_dlopen_deplibs=unknown
10486 ;;
10487 aix[45]*)
10488 libltdl_cv_sys_dlopen_deplibs=yes
10489 ;;
10490 darwin*)
10491 # Assuming the user has installed a libdl from somewhere, this is true
10492 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10496 # GNU and its variants, using gnu ld.so (Glibc)
10497 libltdl_cv_sys_dlopen_deplibs=yes
10498 ;;
10499 hpux10*|hpux11*)
10500 libltdl_cv_sys_dlopen_deplibs=yes
10501 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010502 interix*)
10503 libltdl_cv_sys_dlopen_deplibs=yes
10504 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505 irix[12345]*|irix6.[01]*)
10506 # Catch all versions of IRIX before 6.2, and indicate that we don't
10507 # know how it worked for any of those versions.
10508 libltdl_cv_sys_dlopen_deplibs=unknown
10509 ;;
10510 irix*)
10511 # The case above catches anything before 6.2, and it's known that
10512 # at 6.2 and later dlopen does load deplibs.
10513 libltdl_cv_sys_dlopen_deplibs=yes
10514 ;;
10515 netbsd*)
10516 libltdl_cv_sys_dlopen_deplibs=yes
10517 ;;
10518 openbsd*)
10519 libltdl_cv_sys_dlopen_deplibs=yes
10520 ;;
10521 osf[1234]*)
10522 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10523 # it did *not* use an RPATH in a shared library to find objects the
10524 # library depends on, so we explictly say `no'.
10525 libltdl_cv_sys_dlopen_deplibs=no
10526 ;;
10527 osf5.0|osf5.0a|osf5.1)
10528 # dlopen *does* load deplibs and with the right loader patch applied
10529 # it even uses RPATH in a shared library to search for shared objects
10530 # that the library depends on, but there's no easy way to know if that
10531 # patch is installed. Since this is the case, all we can really
10532 # say is unknown -- it depends on the patch being installed. If
10533 # it is, this changes to `yes'. Without it, it would be `no'.
10534 libltdl_cv_sys_dlopen_deplibs=unknown
10535 ;;
10536 osf*)
10537 # the two cases above should catch all versions of osf <= 5.1. Read
10538 # the comments above for what we know about them.
10539 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10540 # is used to find them so we can finally say `yes'.
10541 libltdl_cv_sys_dlopen_deplibs=yes
10542 ;;
10543 solaris*)
10544 libltdl_cv_sys_dlopen_deplibs=yes
10545 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10547 libltdl_cv_sys_dlopen_deplibs=yes
10548 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549 esac
10550
10551fi
Reid Spencera773bd52006-08-04 18:18:08 +000010552{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10553echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10555
10556cat >>confdefs.h <<\_ACEOF
10557#define LTDL_DLOPEN_DEPLIBS 1
10558_ACEOF
10559
10560fi
10561
10562
10563for ac_header in argz.h
10564do
10565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571fi
Reid Spencera773bd52006-08-04 18:18:08 +000010572ac_res=`eval echo '${'$as_ac_Header'}'`
10573 { echo "$as_me:$LINENO: result: $ac_res" >&5
10574echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575else
10576 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010577{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585$ac_includes_default
10586#include <$ac_header>
10587_ACEOF
10588rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010589if { (ac_try="$ac_compile"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616esac
10617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 ac_header_compiler=yes
10623else
10624 echo "$as_me: failed program was:" >&5
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
Reid Spencera773bd52006-08-04 18:18:08 +000010627 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628fi
Reid Spencera773bd52006-08-04 18:18:08 +000010629
10630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10632echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633
10634# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010635{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */
10643#include <$ac_header>
10644_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010645if { (ac_try="$ac_cpp conftest.$ac_ext"
10646case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649esac
10650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } >/dev/null; then
10658 if test -s conftest.err; then
10659 ac_cpp_err=$ac_c_preproc_warn_flag
10660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10661 else
10662 ac_cpp_err=
10663 fi
10664else
10665 ac_cpp_err=yes
10666fi
10667if test -z "$ac_cpp_err"; then
10668 ac_header_preproc=yes
10669else
10670 echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_header_preproc=no
10674fi
Reid Spencera773bd52006-08-04 18:18:08 +000010675
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010677{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10678echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679
10680# So? What about this header?
10681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10682 yes:no: )
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10687 ac_header_preproc=yes
10688 ;;
10689 no:yes:* )
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010702 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703## ----------------------------------- ##
10704## Report this to llvmbugs@cs.uiuc.edu ##
10705## ----------------------------------- ##
10706_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010707 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708 ;;
10709esac
Reid Spencera773bd52006-08-04 18:18:08 +000010710{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 eval "$as_ac_Header=\$ac_header_preproc"
10716fi
Reid Spencera773bd52006-08-04 18:18:08 +000010717ac_res=`eval echo '${'$as_ac_Header'}'`
10718 { echo "$as_me:$LINENO: result: $ac_res" >&5
10719echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720
10721fi
10722if test `eval echo '${'$as_ac_Header'}'` = yes; then
10723 cat >>confdefs.h <<_ACEOF
10724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10725_ACEOF
10726
10727fi
10728
10729done
10730
10731
Reid Spencera773bd52006-08-04 18:18:08 +000010732{ echo "$as_me:$LINENO: checking for error_t" >&5
10733echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734if test "${ac_cv_type_error_t+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743#if HAVE_ARGZ_H
10744# include <argz.h>
10745#endif
10746
Reid Spencera773bd52006-08-04 18:18:08 +000010747typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010748int
10749main ()
10750{
Reid Spencera773bd52006-08-04 18:18:08 +000010751if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010753if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754 return 0;
10755 ;
10756 return 0;
10757}
10758_ACEOF
10759rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010760if { (ac_try="$ac_compile"
10761case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777esac
10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_type_error_t=yes
10794else
10795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
Reid Spencera773bd52006-08-04 18:18:08 +000010798 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799fi
Reid Spencera773bd52006-08-04 18:18:08 +000010800
10801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802fi
Reid Spencera773bd52006-08-04 18:18:08 +000010803{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10804echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010805if test $ac_cv_type_error_t = yes; then
10806
10807cat >>confdefs.h <<_ACEOF
10808#define HAVE_ERROR_T 1
10809_ACEOF
10810
10811
10812else
10813
10814cat >>confdefs.h <<\_ACEOF
10815#define error_t int
10816_ACEOF
10817
10818fi
10819
10820
10821
10822
10823
10824
10825
10826for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10827do
10828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833else
10834 cat >conftest.$ac_ext <<_ACEOF
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10842#define $ac_func innocuous_$ac_func
10843
10844/* System header to define __stub macros and hopefully few prototypes,
10845 which can conflict with char $ac_func (); below.
10846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10847 <limits.h> exists even on freestanding compilers. */
10848
10849#ifdef __STDC__
10850# include <limits.h>
10851#else
10852# include <assert.h>
10853#endif
10854
10855#undef $ac_func
10856
Reid Spencera773bd52006-08-04 18:18:08 +000010857/* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860#ifdef __cplusplus
10861extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863char $ac_func ();
10864/* The GNU C library defines this for functions which it implements
10865 to always fail with ENOSYS. Some functions are actually named
10866 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010867#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010869#endif
10870
10871int
10872main ()
10873{
Reid Spencera773bd52006-08-04 18:18:08 +000010874return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875 ;
10876 return 0;
10877}
10878_ACEOF
10879rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010880if { (ac_try="$ac_link"
10881case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 eval "$as_ac_var=yes"
10914else
10915 echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
Reid Spencera773bd52006-08-04 18:18:08 +000010918 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919fi
Reid Spencera773bd52006-08-04 18:18:08 +000010920
10921rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922 conftest$ac_exeext conftest.$ac_ext
10923fi
Reid Spencera773bd52006-08-04 18:18:08 +000010924ac_res=`eval echo '${'$as_ac_var'}'`
10925 { echo "$as_me:$LINENO: result: $ac_res" >&5
10926echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927if test `eval echo '${'$as_ac_var'}'` = yes; then
10928 cat >>confdefs.h <<_ACEOF
10929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10930_ACEOF
10931
10932fi
10933done
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10963 stdio.h unistd.h
10964do
10965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971fi
Reid Spencera773bd52006-08-04 18:18:08 +000010972ac_res=`eval echo '${'$as_ac_Header'}'`
10973 { echo "$as_me:$LINENO: result: $ac_res" >&5
10974echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975else
10976 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010977{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
10985$ac_includes_default
10986#include <$ac_header>
10987_ACEOF
10988rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010989if { (ac_try="$ac_compile"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11003 { (case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011013 { (case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11016esac
11017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_header_compiler=yes
11023else
11024 echo "$as_me: failed program was:" >&5
11025sed 's/^/| /' conftest.$ac_ext >&5
11026
Reid Spencera773bd52006-08-04 18:18:08 +000011027 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028fi
Reid Spencera773bd52006-08-04 18:18:08 +000011029
11030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11032echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033
11034# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011035{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043#include <$ac_header>
11044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011045if { (ac_try="$ac_cpp conftest.$ac_ext"
11046case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11061 else
11062 ac_cpp_err=
11063 fi
11064else
11065 ac_cpp_err=yes
11066fi
11067if test -z "$ac_cpp_err"; then
11068 ac_header_preproc=yes
11069else
11070 echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 ac_header_preproc=no
11074fi
Reid Spencera773bd52006-08-04 18:18:08 +000011075
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011077{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11078echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079
11080# So? What about this header?
11081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11082 yes:no: )
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11087 ac_header_preproc=yes
11088 ;;
11089 no:yes:* )
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11097echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011102 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103## ----------------------------------- ##
11104## Report this to llvmbugs@cs.uiuc.edu ##
11105## ----------------------------------- ##
11106_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011107 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108 ;;
11109esac
Reid Spencera773bd52006-08-04 18:18:08 +000011110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 eval "$as_ac_Header=\$ac_header_preproc"
11116fi
Reid Spencera773bd52006-08-04 18:18:08 +000011117ac_res=`eval echo '${'$as_ac_Header'}'`
11118 { echo "$as_me:$LINENO: result: $ac_res" >&5
11119echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120
11121fi
11122if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125_ACEOF
11126
11127fi
11128
11129done
11130
11131
11132
11133
11134
11135for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11136do
11137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143fi
Reid Spencera773bd52006-08-04 18:18:08 +000011144ac_res=`eval echo '${'$as_ac_Header'}'`
11145 { echo "$as_me:$LINENO: result: $ac_res" >&5
11146echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147else
11148 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011149{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h. */
11157$ac_includes_default
11158#include <$ac_header>
11159_ACEOF
11160rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011161if { (ac_try="$ac_compile"
11162case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11175 { (case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; } &&
11184 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011185 { (case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_header_compiler=yes
11195else
11196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
Reid Spencera773bd52006-08-04 18:18:08 +000011199 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200fi
Reid Spencera773bd52006-08-04 18:18:08 +000011201
11202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205
11206# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011207{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11208echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209cat >conftest.$ac_ext <<_ACEOF
11210/* confdefs.h. */
11211_ACEOF
11212cat confdefs.h >>conftest.$ac_ext
11213cat >>conftest.$ac_ext <<_ACEOF
11214/* end confdefs.h. */
11215#include <$ac_header>
11216_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011217if { (ac_try="$ac_cpp conftest.$ac_ext"
11218case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221esac
11222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } >/dev/null; then
11230 if test -s conftest.err; then
11231 ac_cpp_err=$ac_c_preproc_warn_flag
11232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11233 else
11234 ac_cpp_err=
11235 fi
11236else
11237 ac_cpp_err=yes
11238fi
11239if test -z "$ac_cpp_err"; then
11240 ac_header_preproc=yes
11241else
11242 echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_header_preproc=no
11246fi
Reid Spencera773bd52006-08-04 18:18:08 +000011247
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011249{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11250echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251
11252# So? What about this header?
11253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11254 yes:no: )
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11259 ac_header_preproc=yes
11260 ;;
11261 no:yes:* )
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011274 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275## ----------------------------------- ##
11276## Report this to llvmbugs@cs.uiuc.edu ##
11277## ----------------------------------- ##
11278_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011279 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280 ;;
11281esac
Reid Spencera773bd52006-08-04 18:18:08 +000011282{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286else
11287 eval "$as_ac_Header=\$ac_header_preproc"
11288fi
Reid Spencera773bd52006-08-04 18:18:08 +000011289ac_res=`eval echo '${'$as_ac_Header'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292
11293fi
11294if test `eval echo '${'$as_ac_Header'}'` = yes; then
11295 cat >>confdefs.h <<_ACEOF
11296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11297_ACEOF
11298
11299fi
11300
11301done
11302
11303
11304
11305for ac_header in string.h strings.h
11306do
11307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313fi
Reid Spencera773bd52006-08-04 18:18:08 +000011314ac_res=`eval echo '${'$as_ac_Header'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317else
11318 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321cat >conftest.$ac_ext <<_ACEOF
11322/* confdefs.h. */
11323_ACEOF
11324cat confdefs.h >>conftest.$ac_ext
11325cat >>conftest.$ac_ext <<_ACEOF
11326/* end confdefs.h. */
11327$ac_includes_default
11328#include <$ac_header>
11329_ACEOF
11330rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011331if { (ac_try="$ac_compile"
11332case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011355 { (case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_header_compiler=yes
11365else
11366 echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
11368
Reid Spencera773bd52006-08-04 18:18:08 +000011369 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370fi
Reid Spencera773bd52006-08-04 18:18:08 +000011371
11372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11374echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375
11376# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011377{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379cat >conftest.$ac_ext <<_ACEOF
11380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
11385#include <$ac_header>
11386_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011387if { (ac_try="$ac_cpp conftest.$ac_ext"
11388case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391esac
11392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } >/dev/null; then
11400 if test -s conftest.err; then
11401 ac_cpp_err=$ac_c_preproc_warn_flag
11402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11403 else
11404 ac_cpp_err=
11405 fi
11406else
11407 ac_cpp_err=yes
11408fi
11409if test -z "$ac_cpp_err"; then
11410 ac_header_preproc=yes
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 ac_header_preproc=no
11416fi
Reid Spencera773bd52006-08-04 18:18:08 +000011417
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11420echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421
11422# So? What about this header?
11423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11424 yes:no: )
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11429 ac_header_preproc=yes
11430 ;;
11431 no:yes:* )
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011444 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445## ----------------------------------- ##
11446## Report this to llvmbugs@cs.uiuc.edu ##
11447## ----------------------------------- ##
11448_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011449 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450 ;;
11451esac
Reid Spencera773bd52006-08-04 18:18:08 +000011452{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456else
11457 eval "$as_ac_Header=\$ac_header_preproc"
11458fi
Reid Spencera773bd52006-08-04 18:18:08 +000011459ac_res=`eval echo '${'$as_ac_Header'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462
11463fi
11464if test `eval echo '${'$as_ac_Header'}'` = yes; then
11465 cat >>confdefs.h <<_ACEOF
11466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11467_ACEOF
11468 break
11469fi
11470
11471done
11472
11473
11474
11475
11476for ac_func in strchr index
11477do
11478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011479{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483else
11484 cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11492#define $ac_func innocuous_$ac_func
11493
11494/* System header to define __stub macros and hopefully few prototypes,
11495 which can conflict with char $ac_func (); below.
11496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11497 <limits.h> exists even on freestanding compilers. */
11498
11499#ifdef __STDC__
11500# include <limits.h>
11501#else
11502# include <assert.h>
11503#endif
11504
11505#undef $ac_func
11506
Reid Spencera773bd52006-08-04 18:18:08 +000011507/* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510#ifdef __cplusplus
11511extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513char $ac_func ();
11514/* The GNU C library defines this for functions which it implements
11515 to always fail with ENOSYS. Some functions are actually named
11516 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011517#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011519#endif
11520
11521int
11522main ()
11523{
Reid Spencera773bd52006-08-04 18:18:08 +000011524return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 ;
11526 return 0;
11527}
11528_ACEOF
11529rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011530if { (ac_try="$ac_link"
11531case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534esac
11535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11544 { (case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547esac
11548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011554 { (case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557esac
11558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 eval "$as_ac_var=yes"
11564else
11565 echo "$as_me: failed program was:" >&5
11566sed 's/^/| /' conftest.$ac_ext >&5
11567
Reid Spencera773bd52006-08-04 18:18:08 +000011568 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569fi
Reid Spencera773bd52006-08-04 18:18:08 +000011570
11571rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572 conftest$ac_exeext conftest.$ac_ext
11573fi
Reid Spencera773bd52006-08-04 18:18:08 +000011574ac_res=`eval echo '${'$as_ac_var'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577if test `eval echo '${'$as_ac_var'}'` = yes; then
11578 cat >>confdefs.h <<_ACEOF
11579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11580_ACEOF
11581 break
11582fi
11583done
11584
11585
11586
11587for ac_func in strrchr rindex
11588do
11589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011590{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11592if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594else
11595 cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11603#define $ac_func innocuous_$ac_func
11604
11605/* System header to define __stub macros and hopefully few prototypes,
11606 which can conflict with char $ac_func (); below.
11607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11608 <limits.h> exists even on freestanding compilers. */
11609
11610#ifdef __STDC__
11611# include <limits.h>
11612#else
11613# include <assert.h>
11614#endif
11615
11616#undef $ac_func
11617
Reid Spencera773bd52006-08-04 18:18:08 +000011618/* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621#ifdef __cplusplus
11622extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624char $ac_func ();
11625/* The GNU C library defines this for functions which it implements
11626 to always fail with ENOSYS. Some functions are actually named
11627 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011628#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011630#endif
11631
11632int
11633main ()
11634{
Reid Spencera773bd52006-08-04 18:18:08 +000011635return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636 ;
11637 return 0;
11638}
11639_ACEOF
11640rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011641if { (ac_try="$ac_link"
11642case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11645esac
11646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11655 { (case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 eval "$as_ac_var=yes"
11675else
11676 echo "$as_me: failed program was:" >&5
11677sed 's/^/| /' conftest.$ac_ext >&5
11678
Reid Spencera773bd52006-08-04 18:18:08 +000011679 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680fi
Reid Spencera773bd52006-08-04 18:18:08 +000011681
11682rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011683 conftest$ac_exeext conftest.$ac_ext
11684fi
Reid Spencera773bd52006-08-04 18:18:08 +000011685ac_res=`eval echo '${'$as_ac_var'}'`
11686 { echo "$as_me:$LINENO: result: $ac_res" >&5
11687echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688if test `eval echo '${'$as_ac_var'}'` = yes; then
11689 cat >>confdefs.h <<_ACEOF
11690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11691_ACEOF
11692 break
11693fi
11694done
11695
11696
11697
11698for ac_func in memcpy bcopy
11699do
11700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11714#define $ac_func innocuous_$ac_func
11715
11716/* System header to define __stub macros and hopefully few prototypes,
11717 which can conflict with char $ac_func (); below.
11718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11719 <limits.h> exists even on freestanding compilers. */
11720
11721#ifdef __STDC__
11722# include <limits.h>
11723#else
11724# include <assert.h>
11725#endif
11726
11727#undef $ac_func
11728
Reid Spencera773bd52006-08-04 18:18:08 +000011729/* Override any GCC internal prototype to avoid an error.
11730 Use char because int might match the return type of a GCC
11731 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732#ifdef __cplusplus
11733extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011734#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735char $ac_func ();
11736/* The GNU C library defines this for functions which it implements
11737 to always fail with ENOSYS. Some functions are actually named
11738 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011739#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741#endif
11742
11743int
11744main ()
11745{
Reid Spencera773bd52006-08-04 18:18:08 +000011746return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 ;
11748 return 0;
11749}
11750_ACEOF
11751rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011752if { (ac_try="$ac_link"
11753case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756esac
11757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 eval "$as_ac_var=yes"
11786else
11787 echo "$as_me: failed program was:" >&5
11788sed 's/^/| /' conftest.$ac_ext >&5
11789
Reid Spencera773bd52006-08-04 18:18:08 +000011790 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791fi
Reid Spencera773bd52006-08-04 18:18:08 +000011792
11793rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011794 conftest$ac_exeext conftest.$ac_ext
11795fi
Reid Spencera773bd52006-08-04 18:18:08 +000011796ac_res=`eval echo '${'$as_ac_var'}'`
11797 { echo "$as_me:$LINENO: result: $ac_res" >&5
11798echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799if test `eval echo '${'$as_ac_var'}'` = yes; then
11800 cat >>confdefs.h <<_ACEOF
11801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11802_ACEOF
11803 break
11804fi
11805done
11806
11807
11808
11809for ac_func in memmove strcmp
11810do
11811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816else
11817 cat >conftest.$ac_ext <<_ACEOF
11818/* confdefs.h. */
11819_ACEOF
11820cat confdefs.h >>conftest.$ac_ext
11821cat >>conftest.$ac_ext <<_ACEOF
11822/* end confdefs.h. */
11823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11825#define $ac_func innocuous_$ac_func
11826
11827/* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char $ac_func (); below.
11829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830 <limits.h> exists even on freestanding compilers. */
11831
11832#ifdef __STDC__
11833# include <limits.h>
11834#else
11835# include <assert.h>
11836#endif
11837
11838#undef $ac_func
11839
Reid Spencera773bd52006-08-04 18:18:08 +000011840/* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011843#ifdef __cplusplus
11844extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011845#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846char $ac_func ();
11847/* The GNU C library defines this for functions which it implements
11848 to always fail with ENOSYS. Some functions are actually named
11849 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011850#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011852#endif
11853
11854int
11855main ()
11856{
Reid Spencera773bd52006-08-04 18:18:08 +000011857return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858 ;
11859 return 0;
11860}
11861_ACEOF
11862rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011863if { (ac_try="$ac_link"
11864case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867esac
11868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11877 { (case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11880esac
11881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } &&
11886 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011887 { (case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11890esac
11891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 eval "$as_ac_var=yes"
11897else
11898 echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
Reid Spencera773bd52006-08-04 18:18:08 +000011901 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902fi
Reid Spencera773bd52006-08-04 18:18:08 +000011903
11904rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905 conftest$ac_exeext conftest.$ac_ext
11906fi
Reid Spencera773bd52006-08-04 18:18:08 +000011907ac_res=`eval echo '${'$as_ac_var'}'`
11908 { echo "$as_me:$LINENO: result: $ac_res" >&5
11909echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910if test `eval echo '${'$as_ac_var'}'` = yes; then
11911 cat >>confdefs.h <<_ACEOF
11912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11913_ACEOF
11914
11915fi
11916done
11917
11918
11919
11920
11921for ac_func in closedir opendir readdir
11922do
11923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
11935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11937#define $ac_func innocuous_$ac_func
11938
11939/* System header to define __stub macros and hopefully few prototypes,
11940 which can conflict with char $ac_func (); below.
11941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942 <limits.h> exists even on freestanding compilers. */
11943
11944#ifdef __STDC__
11945# include <limits.h>
11946#else
11947# include <assert.h>
11948#endif
11949
11950#undef $ac_func
11951
Reid Spencera773bd52006-08-04 18:18:08 +000011952/* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955#ifdef __cplusplus
11956extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958char $ac_func ();
11959/* The GNU C library defines this for functions which it implements
11960 to always fail with ENOSYS. Some functions are actually named
11961 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011962#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011964#endif
11965
11966int
11967main ()
11968{
Reid Spencera773bd52006-08-04 18:18:08 +000011969return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011975if { (ac_try="$ac_link"
11976case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11989 { (case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011999 { (case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 eval "$as_ac_var=yes"
12009else
12010 echo "$as_me: failed program was:" >&5
12011sed 's/^/| /' conftest.$ac_ext >&5
12012
Reid Spencera773bd52006-08-04 18:18:08 +000012013 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014fi
Reid Spencera773bd52006-08-04 18:18:08 +000012015
12016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017 conftest$ac_exeext conftest.$ac_ext
12018fi
Reid Spencera773bd52006-08-04 18:18:08 +000012019ac_res=`eval echo '${'$as_ac_var'}'`
12020 { echo "$as_me:$LINENO: result: $ac_res" >&5
12021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012022if test `eval echo '${'$as_ac_var'}'` = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025_ACEOF
12026
12027fi
12028done
12029
12030
Reid Spencera773bd52006-08-04 18:18:08 +000012031# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012033 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034 case $enableval in
12035 yes) enable_shared=yes ;;
12036 no) enable_shared=no ;;
12037 *)
12038 enable_shared=no
12039 # Look at the argument we got. We use all the common list separators.
12040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12041 for pkg in $enableval; do
12042 IFS="$lt_save_ifs"
12043 if test "X$pkg" = "X$p"; then
12044 enable_shared=yes
12045 fi
12046 done
12047 IFS="$lt_save_ifs"
12048 ;;
12049 esac
12050else
12051 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012052fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053
Reid Spencera773bd52006-08-04 18:18:08 +000012054
12055# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012057 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 case $enableval in
12059 yes) enable_static=yes ;;
12060 no) enable_static=no ;;
12061 *)
12062 enable_static=no
12063 # Look at the argument we got. We use all the common list separators.
12064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12065 for pkg in $enableval; do
12066 IFS="$lt_save_ifs"
12067 if test "X$pkg" = "X$p"; then
12068 enable_static=yes
12069 fi
12070 done
12071 IFS="$lt_save_ifs"
12072 ;;
12073 esac
12074else
12075 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012076fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077
Reid Spencera773bd52006-08-04 18:18:08 +000012078
12079# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012080if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012081 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082 case $enableval in
12083 yes) enable_fast_install=yes ;;
12084 no) enable_fast_install=no ;;
12085 *)
12086 enable_fast_install=no
12087 # Look at the argument we got. We use all the common list separators.
12088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12089 for pkg in $enableval; do
12090 IFS="$lt_save_ifs"
12091 if test "X$pkg" = "X$p"; then
12092 enable_fast_install=yes
12093 fi
12094 done
12095 IFS="$lt_save_ifs"
12096 ;;
12097 esac
12098else
12099 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012100fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101
Reid Spencera773bd52006-08-04 18:18:08 +000012102
12103{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12104echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012105if test "${lt_cv_path_SED+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107else
12108 # Loop through the user's path and test for sed and gsed.
12109# Then use that list of sed's as ones to test for truncation.
12110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111for as_dir in $PATH
12112do
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for lt_ac_prog in sed gsed; do
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12118 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12119 fi
12120 done
12121 done
12122done
12123lt_ac_max=0
12124lt_ac_count=0
12125# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12126# along with /bin/sed that truncates output.
12127for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012128 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129 cat /dev/null > conftest.in
12130 lt_ac_count=0
12131 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12132 # Check for GNU sed and select it if it is found.
12133 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12134 lt_cv_path_SED=$lt_ac_sed
12135 break
12136 fi
12137 while true; do
12138 cat conftest.in conftest.in >conftest.tmp
12139 mv conftest.tmp conftest.in
12140 cp conftest.in conftest.nl
12141 echo >>conftest.nl
12142 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12143 cmp -s conftest.out conftest.nl || break
12144 # 10000 chars as input seems more than enough
12145 test $lt_ac_count -gt 10 && break
12146 lt_ac_count=`expr $lt_ac_count + 1`
12147 if test $lt_ac_count -gt $lt_ac_max; then
12148 lt_ac_max=$lt_ac_count
12149 lt_cv_path_SED=$lt_ac_sed
12150 fi
12151 done
12152done
12153
12154fi
12155
12156SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012157{ echo "$as_me:$LINENO: result: $SED" >&5
12158echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159
12160
Reid Spencera773bd52006-08-04 18:18:08 +000012161# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164else
12165 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012166fi
12167
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012168ac_prog=ld
12169if test "$GCC" = yes; then
12170 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012171 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12172echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173 case $host in
12174 *-*-mingw*)
12175 # gcc leaves a trailing carriage return which upsets mingw
12176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12177 *)
12178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12179 esac
12180 case $ac_prog in
12181 # Accept absolute paths.
12182 [\\/]* | ?:[\\/]*)
12183 re_direlt='/[^/][^/]*/\.\./'
12184 # Canonicalize the pathname of ld
12185 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12186 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12187 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12188 done
12189 test -z "$LD" && LD="$ac_prog"
12190 ;;
12191 "")
12192 # If it fails, then pretend we aren't using GCC.
12193 ac_prog=ld
12194 ;;
12195 *)
12196 # If it is relative, then search for the first ld in PATH.
12197 with_gnu_ld=unknown
12198 ;;
12199 esac
12200elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012201 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12202echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203else
Reid Spencera773bd52006-08-04 18:18:08 +000012204 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12205echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206fi
12207if test "${lt_cv_path_LD+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 if test -z "$LD"; then
12211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12212 for ac_dir in $PATH; do
12213 IFS="$lt_save_ifs"
12214 test -z "$ac_dir" && ac_dir=.
12215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12216 lt_cv_path_LD="$ac_dir/$ac_prog"
12217 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012218 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012219 # Break only if it was the GNU/non-GNU ld that we prefer.
12220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12221 *GNU* | *'with BFD'*)
12222 test "$with_gnu_ld" != no && break
12223 ;;
12224 *)
12225 test "$with_gnu_ld" != yes && break
12226 ;;
12227 esac
12228 fi
12229 done
12230 IFS="$lt_save_ifs"
12231else
12232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12233fi
12234fi
12235
12236LD="$lt_cv_path_LD"
12237if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012238 { echo "$as_me:$LINENO: result: $LD" >&5
12239echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240else
Reid Spencera773bd52006-08-04 18:18:08 +000012241 { echo "$as_me:$LINENO: result: no" >&5
12242echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243fi
12244test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12245echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012247{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12248echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249if test "${lt_cv_prog_gnu_ld+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
Reid Spencera773bd52006-08-04 18:18:08 +000012252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012253case `$LD -v 2>&1 </dev/null` in
12254*GNU* | *'with BFD'*)
12255 lt_cv_prog_gnu_ld=yes
12256 ;;
12257*)
12258 lt_cv_prog_gnu_ld=no
12259 ;;
12260esac
12261fi
Reid Spencera773bd52006-08-04 18:18:08 +000012262{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12263echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264with_gnu_ld=$lt_cv_prog_gnu_ld
12265
12266
Reid Spencera773bd52006-08-04 18:18:08 +000012267{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12268echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012269if test "${lt_cv_ld_reload_flag+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272 lt_cv_ld_reload_flag='-r'
12273fi
Reid Spencera773bd52006-08-04 18:18:08 +000012274{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12275echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276reload_flag=$lt_cv_ld_reload_flag
12277case $reload_flag in
12278"" | " "*) ;;
12279*) reload_flag=" $reload_flag" ;;
12280esac
12281reload_cmds='$LD$reload_flag -o $output$reload_objs'
12282case $host_os in
12283 darwin*)
12284 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012285 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286 else
12287 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12288 fi
12289 ;;
12290esac
12291
Reid Spencera773bd52006-08-04 18:18:08 +000012292{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12293echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012294if test "${lt_cv_deplibs_check_method+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297 lt_cv_file_magic_cmd='$MAGIC_CMD'
12298lt_cv_file_magic_test_file=
12299lt_cv_deplibs_check_method='unknown'
12300# Need to set the preceding variable on all platforms that support
12301# interlibrary dependencies.
12302# 'none' -- dependencies not supported.
12303# `unknown' -- same as none, but documents that we really don't know.
12304# 'pass_all' -- all dependencies passed with no checks.
12305# 'test_compile' -- check by making test program.
12306# 'file_magic [[regex]]' -- check by looking for files in library path
12307# which responds to the $file_magic_cmd with a given extended regex.
12308# If you have `file' or equivalent on your system and you're not sure
12309# whether `pass_all' will *always* work, you probably want this one.
12310
12311case $host_os in
12312aix4* | aix5*)
12313 lt_cv_deplibs_check_method=pass_all
12314 ;;
12315
12316beos*)
12317 lt_cv_deplibs_check_method=pass_all
12318 ;;
12319
12320bsdi[45]*)
12321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12322 lt_cv_file_magic_cmd='/usr/bin/file -L'
12323 lt_cv_file_magic_test_file=/shlib/libc.so
12324 ;;
12325
12326cygwin*)
12327 # func_win32_libid is a shell function defined in ltmain.sh
12328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12329 lt_cv_file_magic_cmd='func_win32_libid'
12330 ;;
12331
12332mingw* | pw32*)
12333 # Base MSYS/MinGW do not provide the 'file' command needed by
12334 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12335 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12336 lt_cv_file_magic_cmd='$OBJDUMP -f'
12337 ;;
12338
12339darwin* | rhapsody*)
12340 lt_cv_deplibs_check_method=pass_all
12341 ;;
12342
Reid Spencera773bd52006-08-04 18:18:08 +000012343freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12345 case $host_cpu in
12346 i*86 )
12347 # Not sure whether the presence of OpenBSD here was a mistake.
12348 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012349 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 +000012350 lt_cv_file_magic_cmd=/usr/bin/file
12351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12352 ;;
12353 esac
12354 else
12355 lt_cv_deplibs_check_method=pass_all
12356 fi
12357 ;;
12358
12359gnu*)
12360 lt_cv_deplibs_check_method=pass_all
12361 ;;
12362
12363hpux10.20* | hpux11*)
12364 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012365 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366 ia64*)
12367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12368 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12369 ;;
12370 hppa*64*)
12371 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]'
12372 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12373 ;;
12374 *)
12375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12376 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12377 ;;
12378 esac
12379 ;;
12380
Reid Spencera773bd52006-08-04 18:18:08 +000012381interix3*)
12382 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12384 ;;
12385
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012386irix5* | irix6* | nonstopux*)
12387 case $LD in
12388 *-32|*"-32 ") libmagic=32-bit;;
12389 *-n32|*"-n32 ") libmagic=N32;;
12390 *-64|*"-64 ") libmagic=64-bit;;
12391 *) libmagic=never-match;;
12392 esac
12393 lt_cv_deplibs_check_method=pass_all
12394 ;;
12395
12396# This must be Linux ELF.
12397linux*)
12398 lt_cv_deplibs_check_method=pass_all
12399 ;;
12400
12401netbsd*)
12402 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12404 else
12405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12406 fi
12407 ;;
12408
12409newos6*)
12410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12411 lt_cv_file_magic_cmd=/usr/bin/file
12412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12413 ;;
12414
12415nto-qnx*)
12416 lt_cv_deplibs_check_method=unknown
12417 ;;
12418
12419openbsd*)
12420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12422 else
12423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12424 fi
12425 ;;
12426
12427osf3* | osf4* | osf5*)
12428 lt_cv_deplibs_check_method=pass_all
12429 ;;
12430
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431solaris*)
12432 lt_cv_deplibs_check_method=pass_all
12433 ;;
12434
Reid Spencera773bd52006-08-04 18:18:08 +000012435sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012436 case $host_vendor in
12437 motorola)
12438 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]'
12439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12440 ;;
12441 ncr)
12442 lt_cv_deplibs_check_method=pass_all
12443 ;;
12444 sequent)
12445 lt_cv_file_magic_cmd='/bin/file'
12446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12447 ;;
12448 sni)
12449 lt_cv_file_magic_cmd='/bin/file'
12450 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12451 lt_cv_file_magic_test_file=/lib/libc.so
12452 ;;
12453 siemens)
12454 lt_cv_deplibs_check_method=pass_all
12455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012456 pc)
12457 lt_cv_deplibs_check_method=pass_all
12458 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012459 esac
12460 ;;
12461
Reid Spencera773bd52006-08-04 18:18:08 +000012462sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012463 lt_cv_deplibs_check_method=pass_all
12464 ;;
12465esac
12466
12467fi
Reid Spencera773bd52006-08-04 18:18:08 +000012468{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12469echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470file_magic_cmd=$lt_cv_file_magic_cmd
12471deplibs_check_method=$lt_cv_deplibs_check_method
12472test -z "$deplibs_check_method" && deplibs_check_method=unknown
12473
12474
12475
12476# If no C compiler was specified, use CC.
12477LTCC=${LTCC-"$CC"}
12478
Reid Spencera773bd52006-08-04 18:18:08 +000012479# If no C compiler flags were specified, use CFLAGS.
12480LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12481
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012482# Allow CC to be a program name with arguments.
12483compiler=$CC
12484
Reid Spencera773bd52006-08-04 18:18:08 +000012485# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012487 enableval=$enable_libtool_lock;
12488fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12491
12492# Some flags need to be propagated to the compiler or linker for good
12493# libtool support.
12494case $host in
12495ia64-*-hpux*)
12496 # Find out which ABI we are using.
12497 echo 'int i;' > conftest.$ac_ext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499 (eval $ac_compile) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; then
12503 case `/usr/bin/file conftest.$ac_objext` in
12504 *ELF-32*)
12505 HPUX_IA64_MODE="32"
12506 ;;
12507 *ELF-64*)
12508 HPUX_IA64_MODE="64"
12509 ;;
12510 esac
12511 fi
12512 rm -rf conftest*
12513 ;;
12514*-*-irix6*)
12515 # Find out which ABI we are using.
David Greenea696d242007-06-28 19:36:08 +000012516 echo '#line 12513 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; then
12522 if test "$lt_cv_prog_gnu_ld" = yes; then
12523 case `/usr/bin/file conftest.$ac_objext` in
12524 *32-bit*)
12525 LD="${LD-ld} -melf32bsmip"
12526 ;;
12527 *N32*)
12528 LD="${LD-ld} -melf32bmipn32"
12529 ;;
12530 *64-bit*)
12531 LD="${LD-ld} -melf64bmip"
12532 ;;
12533 esac
12534 else
12535 case `/usr/bin/file conftest.$ac_objext` in
12536 *32-bit*)
12537 LD="${LD-ld} -32"
12538 ;;
12539 *N32*)
12540 LD="${LD-ld} -n32"
12541 ;;
12542 *64-bit*)
12543 LD="${LD-ld} -64"
12544 ;;
12545 esac
12546 fi
12547 fi
12548 rm -rf conftest*
12549 ;;
12550
12551x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12552 # Find out which ABI we are using.
12553 echo 'int i;' > conftest.$ac_ext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12555 (eval $ac_compile) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012559 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560 *32-bit*)
12561 case $host in
12562 x86_64-*linux*)
12563 LD="${LD-ld} -m elf_i386"
12564 ;;
12565 ppc64-*linux*|powerpc64-*linux*)
12566 LD="${LD-ld} -m elf32ppclinux"
12567 ;;
12568 s390x-*linux*)
12569 LD="${LD-ld} -m elf_s390"
12570 ;;
12571 sparc64-*linux*)
12572 LD="${LD-ld} -m elf32_sparc"
12573 ;;
12574 esac
12575 ;;
12576 *64-bit*)
12577 case $host in
12578 x86_64-*linux*)
12579 LD="${LD-ld} -m elf_x86_64"
12580 ;;
12581 ppc*-*linux*|powerpc*-*linux*)
12582 LD="${LD-ld} -m elf64ppc"
12583 ;;
12584 s390*-*linux*)
12585 LD="${LD-ld} -m elf64_s390"
12586 ;;
12587 sparc*-*linux*)
12588 LD="${LD-ld} -m elf64_sparc"
12589 ;;
12590 esac
12591 ;;
12592 esac
12593 fi
12594 rm -rf conftest*
12595 ;;
12596
12597*-*-sco3.2v5*)
12598 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12599 SAVE_CFLAGS="$CFLAGS"
12600 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012601 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12602echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603if test "${lt_cv_cc_needs_belf+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605else
12606 ac_ext=c
12607ac_cpp='$CPP $CPPFLAGS'
12608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610ac_compiler_gnu=$ac_cv_c_compiler_gnu
12611
12612 cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
12618
Reid Spencera773bd52006-08-04 18:18:08 +000012619int
12620main ()
12621{
12622
12623 ;
12624 return 0;
12625}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012626_ACEOF
12627rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 lt_cv_cc_needs_belf=yes
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
Reid Spencera773bd52006-08-04 18:18:08 +000012666 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012667fi
Reid Spencera773bd52006-08-04 18:18:08 +000012668
12669rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012670 conftest$ac_exeext conftest.$ac_ext
12671 ac_ext=c
12672ac_cpp='$CPP $CPPFLAGS'
12673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
12677fi
Reid Spencera773bd52006-08-04 18:18:08 +000012678{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12679echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12682 CFLAGS="$SAVE_CFLAGS"
12683 fi
12684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012685sparc*-*solaris*)
12686 # Find out which ABI we are using.
12687 echo 'int i;' > conftest.$ac_ext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; then
12693 case `/usr/bin/file conftest.o` in
12694 *64-bit*)
12695 case $lt_cv_prog_gnu_ld in
12696 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12697 *) LD="${LD-ld} -64" ;;
12698 esac
12699 ;;
12700 esac
12701 fi
12702 rm -rf conftest*
12703 ;;
12704
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705
12706esac
12707
12708need_locks="$enable_libtool_lock"
12709
12710
Reid Spencer2706f8c2004-09-19 23:53:36 +000012711
12712
12713if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12714 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12715 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012716 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012717ac_cpp='$CXXCPP $CPPFLAGS'
12718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012721{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12722echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012723if test -z "$CXXCPP"; then
12724 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
John Criswell47fdd832003-07-14 16:52:07 +000012727 # Double quotes because CXXCPP needs to be expanded
12728 for CXXCPP in "$CXX -E" "/lib/cpp"
12729 do
12730 ac_preproc_ok=false
12731for ac_cxx_preproc_warn_flag in '' yes
12732do
12733 # Use a header file that comes with gcc, so configuring glibc
12734 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012737 # On the NeXT, cc -E runs the code through the compiler's parser,
12738 # not just through cpp. "Syntax error" is here to catch this case.
12739 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745#ifdef __STDC__
12746# include <limits.h>
12747#else
12748# include <assert.h>
12749#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012750 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012751_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012752if { (ac_try="$ac_cpp conftest.$ac_ext"
12753case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756esac
12757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012759 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012760 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } >/dev/null; then
12765 if test -s conftest.err; then
12766 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012767 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012768 else
John Criswell47fdd832003-07-14 16:52:07 +000012769 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012770 fi
John Criswell47fdd832003-07-14 16:52:07 +000012771else
12772 ac_cpp_err=yes
12773fi
12774if test -z "$ac_cpp_err"; then
12775 :
12776else
12777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012778sed 's/^/| /' conftest.$ac_ext >&5
12779
John Criswell47fdd832003-07-14 16:52:07 +000012780 # Broken: fails on valid input.
12781continue
12782fi
Reid Spencera773bd52006-08-04 18:18:08 +000012783
John Criswell47fdd832003-07-14 16:52:07 +000012784rm -f conftest.err conftest.$ac_ext
12785
Reid Spencera773bd52006-08-04 18:18:08 +000012786 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012787 # can be detected and how.
12788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012794#include <ac_nonexistent.h>
12795_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012796if { (ac_try="$ac_cpp conftest.$ac_ext"
12797case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012803 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012804 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev/null; then
12809 if test -s conftest.err; then
12810 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012811 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012812 else
12813 ac_cpp_err=
12814 fi
12815else
12816 ac_cpp_err=yes
12817fi
12818if test -z "$ac_cpp_err"; then
12819 # Broken: success on invalid input.
12820continue
12821else
12822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012823sed 's/^/| /' conftest.$ac_ext >&5
12824
John Criswell47fdd832003-07-14 16:52:07 +000012825 # Passes both tests.
12826ac_preproc_ok=:
12827break
12828fi
Reid Spencera773bd52006-08-04 18:18:08 +000012829
John Criswell47fdd832003-07-14 16:52:07 +000012830rm -f conftest.err conftest.$ac_ext
12831
12832done
12833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12834rm -f conftest.err conftest.$ac_ext
12835if $ac_preproc_ok; then
12836 break
John Criswell7a73b802003-06-30 21:59:07 +000012837fi
12838
John Criswell47fdd832003-07-14 16:52:07 +000012839 done
12840 ac_cv_prog_CXXCPP=$CXXCPP
12841
12842fi
12843 CXXCPP=$ac_cv_prog_CXXCPP
12844else
12845 ac_cv_prog_CXXCPP=$CXXCPP
12846fi
Reid Spencera773bd52006-08-04 18:18:08 +000012847{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12848echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012849ac_preproc_ok=false
12850for ac_cxx_preproc_warn_flag in '' yes
12851do
12852 # Use a header file that comes with gcc, so configuring glibc
12853 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012856 # On the NeXT, cc -E runs the code through the compiler's parser,
12857 # not just through cpp. "Syntax error" is here to catch this case.
12858 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012859/* confdefs.h. */
12860_ACEOF
12861cat confdefs.h >>conftest.$ac_ext
12862cat >>conftest.$ac_ext <<_ACEOF
12863/* end confdefs.h. */
12864#ifdef __STDC__
12865# include <limits.h>
12866#else
12867# include <assert.h>
12868#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012869 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012870_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012871if { (ac_try="$ac_cpp conftest.$ac_ext"
12872case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012878 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012879 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } >/dev/null; then
12884 if test -s conftest.err; then
12885 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012887 else
12888 ac_cpp_err=
12889 fi
12890else
12891 ac_cpp_err=yes
12892fi
12893if test -z "$ac_cpp_err"; then
12894 :
12895else
12896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012897sed 's/^/| /' conftest.$ac_ext >&5
12898
John Criswell47fdd832003-07-14 16:52:07 +000012899 # Broken: fails on valid input.
12900continue
12901fi
Reid Spencera773bd52006-08-04 18:18:08 +000012902
John Criswell47fdd832003-07-14 16:52:07 +000012903rm -f conftest.err conftest.$ac_ext
12904
Reid Spencera773bd52006-08-04 18:18:08 +000012905 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012906 # can be detected and how.
12907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012913#include <ac_nonexistent.h>
12914_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012915if { (ac_try="$ac_cpp conftest.$ac_ext"
12916case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012922 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012923 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012924 rm -f conftest.er1
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } >/dev/null; then
12928 if test -s conftest.err; then
12929 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012930 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012931 else
12932 ac_cpp_err=
12933 fi
12934else
12935 ac_cpp_err=yes
12936fi
12937if test -z "$ac_cpp_err"; then
12938 # Broken: success on invalid input.
12939continue
12940else
12941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012942sed 's/^/| /' conftest.$ac_ext >&5
12943
John Criswell47fdd832003-07-14 16:52:07 +000012944 # Passes both tests.
12945ac_preproc_ok=:
12946break
12947fi
Reid Spencera773bd52006-08-04 18:18:08 +000012948
John Criswell47fdd832003-07-14 16:52:07 +000012949rm -f conftest.err conftest.$ac_ext
12950
12951done
12952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12953rm -f conftest.err conftest.$ac_ext
12954if $ac_preproc_ok; then
12955 :
12956else
John Criswell0c38eaf2003-09-10 15:17:25 +000012957 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12958See \`config.log' for more details." >&5
12959echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12960See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012961 { (exit 1); exit 1; }; }
12962fi
12963
Reid Spencera773bd52006-08-04 18:18:08 +000012964ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012965ac_cpp='$CXXCPP $CPPFLAGS'
12966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12969
Reid Spencer2706f8c2004-09-19 23:53:36 +000012970fi
12971
John Criswell47fdd832003-07-14 16:52:07 +000012972
12973ac_ext=f
12974ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12975ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12977if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012978 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 +000012979 do
12980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012984if test "${ac_cv_prog_F77+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 if test -n "$F77"; then
12988 ac_cv_prog_F77="$F77" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012996 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 +000012997 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002done
Reid Spencera773bd52006-08-04 18:18:08 +000013003IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013004
13005fi
13006fi
13007F77=$ac_cv_prog_F77
13008if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013009 { echo "$as_me:$LINENO: result: $F77" >&5
13010echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013011else
Reid Spencera773bd52006-08-04 18:18:08 +000013012 { echo "$as_me:$LINENO: result: no" >&5
13013echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013014fi
13015
Reid Spencera773bd52006-08-04 18:18:08 +000013016
John Criswell47fdd832003-07-14 16:52:07 +000013017 test -n "$F77" && break
13018 done
13019fi
13020if test -z "$F77"; then
13021 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013022 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 +000013023do
13024 # Extract the first word of "$ac_prog", so it can be a program name with args.
13025set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013028if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030else
13031 if test -n "$ac_ct_F77"; then
13032 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13033else
13034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH
13036do
13037 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013040 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 +000013041 ac_cv_prog_ac_ct_F77="$ac_prog"
13042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 break 2
13044 fi
13045done
13046done
Reid Spencera773bd52006-08-04 18:18:08 +000013047IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013048
13049fi
13050fi
13051ac_ct_F77=$ac_cv_prog_ac_ct_F77
13052if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013053 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13054echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013055else
Reid Spencera773bd52006-08-04 18:18:08 +000013056 { echo "$as_me:$LINENO: result: no" >&5
13057echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013058fi
13059
Reid Spencera773bd52006-08-04 18:18:08 +000013060
John Criswell47fdd832003-07-14 16:52:07 +000013061 test -n "$ac_ct_F77" && break
13062done
13063
Reid Spencera773bd52006-08-04 18:18:08 +000013064 if test "x$ac_ct_F77" = x; then
13065 F77=""
13066 else
13067 case $cross_compiling:$ac_tool_warned in
13068yes:)
13069{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13070whose name does not start with the host triplet. If you think this
13071configuration is useful to you, please write to autoconf@gnu.org." >&5
13072echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13073whose name does not start with the host triplet. If you think this
13074configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13075ac_tool_warned=yes ;;
13076esac
13077 F77=$ac_ct_F77
13078 fi
John Criswell47fdd832003-07-14 16:52:07 +000013079fi
13080
13081
13082# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013083echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013084ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013085{ (ac_try="$ac_compiler --version >&5"
13086case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089esac
13090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013095{ (ac_try="$ac_compiler -v >&5"
13096case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099esac
13100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013105{ (ac_try="$ac_compiler -V >&5"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013115rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013116
13117# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013118# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013119ac_save_ext=$ac_ext
13120ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013121{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13122echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013123if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125else
13126 cat >conftest.$ac_ext <<_ACEOF
13127 program main
13128#ifndef __GNUC__
13129 choke me
13130#endif
13131
13132 end
13133_ACEOF
13134rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013135if { (ac_try="$ac_compile"
13136case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013142 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013148 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13149 { (case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_compiler_gnu=yes
13169else
13170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013171sed 's/^/| /' conftest.$ac_ext >&5
13172
Reid Spencera773bd52006-08-04 18:18:08 +000013173 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013174fi
Reid Spencera773bd52006-08-04 18:18:08 +000013175
13176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013177ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13178
13179fi
Reid Spencera773bd52006-08-04 18:18:08 +000013180{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13181echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013182ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013183ac_test_FFLAGS=${FFLAGS+set}
13184ac_save_FFLAGS=$FFLAGS
13185FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013186{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13187echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013188if test "${ac_cv_prog_f77_g+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190else
13191 FFLAGS=-g
13192cat >conftest.$ac_ext <<_ACEOF
13193 program main
13194
13195 end
13196_ACEOF
13197rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013198if { (ac_try="$ac_compile"
13199case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013205 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013211 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225esac
13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_prog_f77_g=yes
13232else
13233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013234sed 's/^/| /' conftest.$ac_ext >&5
13235
Reid Spencera773bd52006-08-04 18:18:08 +000013236 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013237fi
Reid Spencera773bd52006-08-04 18:18:08 +000013238
13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013240
13241fi
Reid Spencera773bd52006-08-04 18:18:08 +000013242{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13243echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013244if test "$ac_test_FFLAGS" = set; then
13245 FFLAGS=$ac_save_FFLAGS
13246elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013247 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013248 FFLAGS="-g -O2"
13249 else
13250 FFLAGS="-g"
13251 fi
13252else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013253 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013254 FFLAGS="-O2"
13255 else
13256 FFLAGS=
13257 fi
13258fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013259
13260G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013261ac_ext=c
13262ac_cpp='$CPP $CPPFLAGS'
13263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265ac_compiler_gnu=$ac_cv_c_compiler_gnu
13266
13267
13268
13269# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13270
13271# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013272{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13273echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013274if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
13277 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013278 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013279
13280 case $build_os in
13281 msdosdjgpp*)
13282 # On DJGPP, this test can blow up pretty badly due to problems in libc
13283 # (any single argument exceeding 2000 bytes causes a buffer overrun
13284 # during glob expansion). Even if it were fixed, the result of this
13285 # check would be larger than it should be.
13286 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13287 ;;
13288
13289 gnu*)
13290 # Under GNU Hurd, this test is not required because there is
13291 # no limit to the length of command line arguments.
13292 # Libtool will interpret -1 as no limit whatsoever
13293 lt_cv_sys_max_cmd_len=-1;
13294 ;;
13295
13296 cygwin* | mingw*)
13297 # On Win9x/ME, this test blows up -- it succeeds, but takes
13298 # about 5 minutes as the teststring grows exponentially.
13299 # Worse, since 9x/ME are not pre-emptively multitasking,
13300 # you end up with a "frozen" computer, even though with patience
13301 # the test eventually succeeds (with a max line length of 256k).
13302 # Instead, let's just punt: use the minimum linelength reported by
13303 # all of the supported platforms: 8192 (on NT/2K/XP).
13304 lt_cv_sys_max_cmd_len=8192;
13305 ;;
13306
Reid Spencer2706f8c2004-09-19 23:53:36 +000013307 amigaos*)
13308 # On AmigaOS with pdksh, this test takes hours, literally.
13309 # So we just punt and use a minimum line length of 8192.
13310 lt_cv_sys_max_cmd_len=8192;
13311 ;;
13312
Reid Spencera773bd52006-08-04 18:18:08 +000013313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013314 # This has been around since 386BSD, at least. Likely further.
13315 if test -x /sbin/sysctl; then
13316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13317 elif test -x /usr/sbin/sysctl; then
13318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13319 else
Reid Spencera773bd52006-08-04 18:18:08 +000013320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013321 fi
13322 # And add a safety zone
13323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013325 ;;
13326
Reid Spencera773bd52006-08-04 18:18:08 +000013327 interix*)
13328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13329 lt_cv_sys_max_cmd_len=196608
13330 ;;
13331
13332 osf*)
13333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13335 # nice to cause kernel panics so lets avoid the loop below.
13336 # First set a reasonable default.
13337 lt_cv_sys_max_cmd_len=16384
13338 #
13339 if test -x /sbin/sysconfig; then
13340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13342 esac
13343 fi
13344 ;;
13345 sco3.2v5*)
13346 lt_cv_sys_max_cmd_len=102400
13347 ;;
13348 sysv5* | sco5v6* | sysv4.2uw2*)
13349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13350 if test -n "$kargmax"; then
13351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13352 else
13353 lt_cv_sys_max_cmd_len=32768
13354 fi
13355 ;;
13356 *)
John Criswell47fdd832003-07-14 16:52:07 +000013357 # If test is not a shell built-in, we'll probably end up computing a
13358 # maximum length that is only half of the actual maximum length, but
13359 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13361 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13362 = "XX$teststring") >/dev/null 2>&1 &&
13363 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013364 lt_cv_sys_max_cmd_len=$new_result &&
13365 test $i != 17 # 1/2 MB should be enough
13366 do
13367 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013368 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013369 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013370 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013371 # Add a significant safety factor because C++ compilers can tack on massive
13372 # amounts of additional arguments before passing them to the linker.
13373 # It appears as though 1/2 is a usable value.
13374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13375 ;;
13376 esac
13377
13378fi
13379
13380if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013381 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13382echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013383else
Reid Spencera773bd52006-08-04 18:18:08 +000013384 { echo "$as_me:$LINENO: result: none" >&5
13385echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013386fi
13387
13388
13389
13390
13391# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013392{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13393echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013394if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397
13398# These are sane defaults that work on at least a few old systems.
13399# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13400
13401# Character class describing NM global symbol codes.
13402symcode='[BCDEGRST]'
13403
13404# Regexp to match symbols that can be accessed directly from C.
13405sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13406
John Criswell47fdd832003-07-14 16:52:07 +000013407# Transform an extracted symbol line into a proper C declaration
13408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13409
13410# Transform an extracted symbol line into symbol name and symbol address
13411lt_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'"
13412
13413# Define system-specific variables.
13414case $host_os in
13415aix*)
13416 symcode='[BCDT]'
13417 ;;
13418cygwin* | mingw* | pw32*)
13419 symcode='[ABCDGISTW]'
13420 ;;
13421hpux*) # Its linker distinguishes data from code symbols
13422 if test "$host_cpu" = ia64; then
13423 symcode='[ABCDEGRST]'
13424 fi
13425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13426 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'"
13427 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013428linux*)
13429 if test "$host_cpu" = ia64; then
13430 symcode='[ABCDGIRSTW]'
13431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13432 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'"
13433 fi
13434 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013435irix* | nonstopux*)
13436 symcode='[BCDEGRST]'
13437 ;;
13438osf*)
13439 symcode='[BCDEGQRST]'
13440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013441solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013442 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013443 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013444sco3.2v5*)
13445 symcode='[DT]'
13446 ;;
13447sysv4.2uw2*)
13448 symcode='[DT]'
13449 ;;
13450sysv5* | sco5v6* | unixware* | OpenUNIX*)
13451 symcode='[ABDT]'
13452 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013453sysv4)
13454 symcode='[DFNSTU]'
13455 ;;
13456esac
13457
13458# Handle CRLF in mingw tool chain
13459opt_cr=
13460case $build_os in
13461mingw*)
13462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13463 ;;
13464esac
13465
13466# If we're using GNU nm, then use its standard symbol codes.
13467case `$NM -V 2>&1` in
13468*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013469 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013470esac
13471
13472# Try without a prefix undercore, then with it.
13473for ac_symprfx in "" "_"; do
13474
Reid Spencera773bd52006-08-04 18:18:08 +000013475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13476 symxfrm="\\1 $ac_symprfx\\2 \\2"
13477
John Criswell47fdd832003-07-14 16:52:07 +000013478 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013479 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 +000013480
13481 # Check to see that the pipe works correctly.
13482 pipe_works=no
13483
13484 rm -f conftest*
13485 cat > conftest.$ac_ext <<EOF
13486#ifdef __cplusplus
13487extern "C" {
13488#endif
13489char nm_test_var;
13490void nm_test_func(){}
13491#ifdef __cplusplus
13492}
13493#endif
13494int main(){nm_test_var='a';nm_test_func();return(0);}
13495EOF
13496
13497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13498 (eval $ac_compile) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; then
13502 # Now try to grab the symbols.
13503 nlist=conftest.nm
13504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } && test -s "$nlist"; then
13509 # Try sorting and uniquifying the output.
13510 if sort "$nlist" | uniq > "$nlist"T; then
13511 mv -f "$nlist"T "$nlist"
13512 else
13513 rm -f "$nlist"T
13514 fi
13515
13516 # Make sure that we snagged all the symbols we need.
13517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13519 cat <<EOF > conftest.$ac_ext
13520#ifdef __cplusplus
13521extern "C" {
13522#endif
13523
13524EOF
13525 # Now generate the symbol file.
13526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13527
13528 cat <<EOF >> conftest.$ac_ext
13529#if defined (__STDC__) && __STDC__
13530# define lt_ptr_t void *
13531#else
13532# define lt_ptr_t char *
13533# define const
13534#endif
13535
13536/* The mapping between symbol names and symbols. */
13537const struct {
13538 const char *name;
13539 lt_ptr_t address;
13540}
13541lt_preloaded_symbols[] =
13542{
13543EOF
13544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13545 cat <<\EOF >> conftest.$ac_ext
13546 {0, (lt_ptr_t) 0}
13547};
13548
13549#ifdef __cplusplus
13550}
13551#endif
13552EOF
13553 # Now try linking the two files.
13554 mv conftest.$ac_objext conftstm.$ac_objext
13555 lt_save_LIBS="$LIBS"
13556 lt_save_CFLAGS="$CFLAGS"
13557 LIBS="conftstm.$ac_objext"
13558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560 (eval $ac_link) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13564 pipe_works=yes
13565 fi
13566 LIBS="$lt_save_LIBS"
13567 CFLAGS="$lt_save_CFLAGS"
13568 else
13569 echo "cannot find nm_test_func in $nlist" >&5
13570 fi
13571 else
13572 echo "cannot find nm_test_var in $nlist" >&5
13573 fi
13574 else
13575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13576 fi
13577 else
13578 echo "$progname: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13580 fi
13581 rm -f conftest* conftst*
13582
13583 # Do not use the global_symbol_pipe unless it works.
13584 if test "$pipe_works" = yes; then
13585 break
13586 else
13587 lt_cv_sys_global_symbol_pipe=
13588 fi
13589done
13590
13591fi
13592
13593if test -z "$lt_cv_sys_global_symbol_pipe"; then
13594 lt_cv_sys_global_symbol_to_cdecl=
13595fi
13596if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013597 { echo "$as_me:$LINENO: result: failed" >&5
13598echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013599else
Reid Spencera773bd52006-08-04 18:18:08 +000013600 { echo "$as_me:$LINENO: result: ok" >&5
13601echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013602fi
13603
Reid Spencera773bd52006-08-04 18:18:08 +000013604{ echo "$as_me:$LINENO: checking for objdir" >&5
13605echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013606if test "${lt_cv_objdir+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 rm -f .libs 2>/dev/null
13610mkdir .libs 2>/dev/null
13611if test -d .libs; then
13612 lt_cv_objdir=.libs
13613else
13614 # MS-DOS does not allow filenames that begin with a dot.
13615 lt_cv_objdir=_libs
13616fi
13617rmdir .libs 2>/dev/null
13618fi
Reid Spencera773bd52006-08-04 18:18:08 +000013619{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13620echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013621objdir=$lt_cv_objdir
13622
13623
13624
13625
13626
13627case $host_os in
13628aix3*)
13629 # AIX sometimes has problems with the GCC collect2 program. For some
13630 # reason, if we set the COLLECT_NAMES environment variable, the problems
13631 # vanish in a puff of smoke.
13632 if test "X${COLLECT_NAMES+set}" != Xset; then
13633 COLLECT_NAMES=
13634 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013635 fi
13636 ;;
13637esac
13638
John Criswell47fdd832003-07-14 16:52:07 +000013639# Sed substitution that helps us do robust quoting. It backslashifies
13640# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013641Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013642sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13643
13644# Same as above, but do not quote variable references.
13645double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13646
13647# Sed substitution to delay expansion of an escaped shell variable in a
13648# double_quote_subst'ed string.
13649delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13650
13651# Sed substitution to avoid accidental globbing in evaled expressions
13652no_glob_subst='s/\*/\\\*/g'
13653
13654# Constants:
13655rm="rm -f"
13656
13657# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013658default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013659can_build_shared=yes
13660
Reid Spencera773bd52006-08-04 18:18:08 +000013661# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013662# which needs '.lib').
13663libext=a
13664ltmain="$ac_aux_dir/ltmain.sh"
13665ofile="$default_ofile"
13666with_gnu_ld="$lt_cv_prog_gnu_ld"
13667
13668if test -n "$ac_tool_prefix"; then
13669 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13670set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013673if test "${ac_cv_prog_AR+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675else
13676 if test -n "$AR"; then
13677 ac_cv_prog_AR="$AR" # Let the user override the test.
13678else
13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680for as_dir in $PATH
13681do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013685 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 +000013686 ac_cv_prog_AR="${ac_tool_prefix}ar"
13687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690done
13691done
Reid Spencera773bd52006-08-04 18:18:08 +000013692IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013693
13694fi
13695fi
13696AR=$ac_cv_prog_AR
13697if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013698 { echo "$as_me:$LINENO: result: $AR" >&5
13699echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013700else
Reid Spencera773bd52006-08-04 18:18:08 +000013701 { echo "$as_me:$LINENO: result: no" >&5
13702echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013703fi
13704
Reid Spencera773bd52006-08-04 18:18:08 +000013705
John Criswell47fdd832003-07-14 16:52:07 +000013706fi
13707if test -z "$ac_cv_prog_AR"; then
13708 ac_ct_AR=$AR
13709 # Extract the first word of "ar", so it can be a program name with args.
13710set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013713if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 if test -n "$ac_ct_AR"; then
13717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013725 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 +000013726 ac_cv_prog_ac_ct_AR="ar"
13727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730done
13731done
Reid Spencera773bd52006-08-04 18:18:08 +000013732IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013733
John Criswell47fdd832003-07-14 16:52:07 +000013734fi
13735fi
13736ac_ct_AR=$ac_cv_prog_ac_ct_AR
13737if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013738 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13739echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013740else
Reid Spencera773bd52006-08-04 18:18:08 +000013741 { echo "$as_me:$LINENO: result: no" >&5
13742echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013743fi
13744
Reid Spencera773bd52006-08-04 18:18:08 +000013745 if test "x$ac_ct_AR" = x; then
13746 AR="false"
13747 else
13748 case $cross_compiling:$ac_tool_warned in
13749yes:)
13750{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13751whose name does not start with the host triplet. If you think this
13752configuration is useful to you, please write to autoconf@gnu.org." >&5
13753echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13754whose name does not start with the host triplet. If you think this
13755configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13756ac_tool_warned=yes ;;
13757esac
13758 AR=$ac_ct_AR
13759 fi
John Criswell47fdd832003-07-14 16:52:07 +000013760else
13761 AR="$ac_cv_prog_AR"
13762fi
13763
John Criswell7a73b802003-06-30 21:59:07 +000013764if test -n "$ac_tool_prefix"; then
13765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13766set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013769if test "${ac_cv_prog_RANLIB+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772 if test -n "$RANLIB"; then
13773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13774else
13775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776for as_dir in $PATH
13777do
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013781 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 +000013782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13785 fi
13786done
13787done
Reid Spencera773bd52006-08-04 18:18:08 +000013788IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013789
13790fi
13791fi
13792RANLIB=$ac_cv_prog_RANLIB
13793if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013794 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13795echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013796else
Reid Spencera773bd52006-08-04 18:18:08 +000013797 { echo "$as_me:$LINENO: result: no" >&5
13798echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013799fi
13800
Reid Spencera773bd52006-08-04 18:18:08 +000013801
John Criswell7a73b802003-06-30 21:59:07 +000013802fi
13803if test -z "$ac_cv_prog_RANLIB"; then
13804 ac_ct_RANLIB=$RANLIB
13805 # Extract the first word of "ranlib", so it can be a program name with args.
13806set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013809if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811else
13812 if test -n "$ac_ct_RANLIB"; then
13813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13814else
13815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816for as_dir in $PATH
13817do
13818 IFS=$as_save_IFS
13819 test -z "$as_dir" && as_dir=.
13820 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013821 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 +000013822 ac_cv_prog_ac_ct_RANLIB="ranlib"
13823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13824 break 2
13825 fi
13826done
13827done
Reid Spencera773bd52006-08-04 18:18:08 +000013828IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013829
John Criswell7a73b802003-06-30 21:59:07 +000013830fi
13831fi
13832ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13833if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013834 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13835echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013836else
Reid Spencera773bd52006-08-04 18:18:08 +000013837 { echo "$as_me:$LINENO: result: no" >&5
13838echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013839fi
13840
Reid Spencera773bd52006-08-04 18:18:08 +000013841 if test "x$ac_ct_RANLIB" = x; then
13842 RANLIB=":"
13843 else
13844 case $cross_compiling:$ac_tool_warned in
13845yes:)
13846{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13847whose name does not start with the host triplet. If you think this
13848configuration is useful to you, please write to autoconf@gnu.org." >&5
13849echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13850whose name does not start with the host triplet. If you think this
13851configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13852ac_tool_warned=yes ;;
13853esac
13854 RANLIB=$ac_ct_RANLIB
13855 fi
John Criswell7a73b802003-06-30 21:59:07 +000013856else
13857 RANLIB="$ac_cv_prog_RANLIB"
13858fi
13859
13860if test -n "$ac_tool_prefix"; then
13861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13862set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013865if test "${ac_cv_prog_STRIP+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867else
13868 if test -n "$STRIP"; then
13869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13870else
13871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872for as_dir in $PATH
13873do
13874 IFS=$as_save_IFS
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013877 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 +000013878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 break 2
13881 fi
13882done
13883done
Reid Spencera773bd52006-08-04 18:18:08 +000013884IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013885
13886fi
13887fi
13888STRIP=$ac_cv_prog_STRIP
13889if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013890 { echo "$as_me:$LINENO: result: $STRIP" >&5
13891echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013892else
Reid Spencera773bd52006-08-04 18:18:08 +000013893 { echo "$as_me:$LINENO: result: no" >&5
13894echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013895fi
13896
Reid Spencera773bd52006-08-04 18:18:08 +000013897
John Criswell7a73b802003-06-30 21:59:07 +000013898fi
13899if test -z "$ac_cv_prog_STRIP"; then
13900 ac_ct_STRIP=$STRIP
13901 # Extract the first word of "strip", so it can be a program name with args.
13902set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013905if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907else
13908 if test -n "$ac_ct_STRIP"; then
13909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13910else
13911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13912for as_dir in $PATH
13913do
13914 IFS=$as_save_IFS
13915 test -z "$as_dir" && as_dir=.
13916 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013917 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 +000013918 ac_cv_prog_ac_ct_STRIP="strip"
13919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13920 break 2
13921 fi
13922done
13923done
Reid Spencera773bd52006-08-04 18:18:08 +000013924IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013925
John Criswell7a73b802003-06-30 21:59:07 +000013926fi
13927fi
13928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13929if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013930 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13931echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013932else
Reid Spencera773bd52006-08-04 18:18:08 +000013933 { echo "$as_me:$LINENO: result: no" >&5
13934echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013935fi
13936
Reid Spencera773bd52006-08-04 18:18:08 +000013937 if test "x$ac_ct_STRIP" = x; then
13938 STRIP=":"
13939 else
13940 case $cross_compiling:$ac_tool_warned in
13941yes:)
13942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13943whose name does not start with the host triplet. If you think this
13944configuration is useful to you, please write to autoconf@gnu.org." >&5
13945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13946whose name does not start with the host triplet. If you think this
13947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13948ac_tool_warned=yes ;;
13949esac
13950 STRIP=$ac_ct_STRIP
13951 fi
John Criswell7a73b802003-06-30 21:59:07 +000013952else
13953 STRIP="$ac_cv_prog_STRIP"
13954fi
13955
13956
John Criswell7a73b802003-06-30 21:59:07 +000013957old_CC="$CC"
13958old_CFLAGS="$CFLAGS"
13959
13960# Set sane defaults for various variables
13961test -z "$AR" && AR=ar
13962test -z "$AR_FLAGS" && AR_FLAGS=cru
13963test -z "$AS" && AS=as
13964test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013965test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013966test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013967test -z "$DLLTOOL" && DLLTOOL=dlltool
13968test -z "$LD" && LD=ld
13969test -z "$LN_S" && LN_S="ln -s"
13970test -z "$MAGIC_CMD" && MAGIC_CMD=file
13971test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013972test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013973test -z "$OBJDUMP" && OBJDUMP=objdump
13974test -z "$RANLIB" && RANLIB=:
13975test -z "$STRIP" && STRIP=:
13976test -z "$ac_objext" && ac_objext=o
13977
John Criswell7a73b802003-06-30 21:59:07 +000013978# Determine commands to create old-style static archives.
13979old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13980old_postinstall_cmds='chmod 644 $oldlib'
13981old_postuninstall_cmds=
13982
13983if test -n "$RANLIB"; then
13984 case $host_os in
13985 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013987 ;;
13988 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013990 ;;
13991 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013992 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013993fi
13994
Reid Spencera773bd52006-08-04 18:18:08 +000013995for cc_temp in $compiler""; do
13996 case $cc_temp in
13997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13999 \-*) ;;
14000 *) break;;
14001 esac
14002done
14003cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14004
Reid Spencer2706f8c2004-09-19 23:53:36 +000014005
John Criswell47fdd832003-07-14 16:52:07 +000014006# Only perform the check for file, if the check method requires it
14007case $deplibs_check_method in
14008file_magic*)
14009 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014010 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14011echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014012if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014014else
John Criswell47fdd832003-07-14 16:52:07 +000014015 case $MAGIC_CMD in
14016[\\/*] | ?:[\\/]*)
14017 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14018 ;;
14019*)
14020 lt_save_MAGIC_CMD="$MAGIC_CMD"
14021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14023 for ac_dir in $ac_dummy; do
14024 IFS="$lt_save_ifs"
14025 test -z "$ac_dir" && ac_dir=.
14026 if test -f $ac_dir/${ac_tool_prefix}file; then
14027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14028 if test -n "$file_magic_test_file"; then
14029 case $deplibs_check_method in
14030 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014031 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14034 $EGREP "$file_magic_regex" > /dev/null; then
14035 :
14036 else
14037 cat <<EOF 1>&2
14038
14039*** Warning: the command libtool uses to detect shared libraries,
14040*** $file_magic_cmd, produces output that libtool cannot recognize.
14041*** The result is that libtool may fail to recognize shared libraries
14042*** as such. This will affect the creation of libtool libraries that
14043*** depend on shared libraries, but programs linked with such libtool
14044*** libraries will work regardless of this problem. Nevertheless, you
14045*** may want to report the problem to your system manager and/or to
14046*** bug-libtool@gnu.org
14047
14048EOF
14049 fi ;;
14050 esac
14051 fi
14052 break
14053 fi
14054 done
14055 IFS="$lt_save_ifs"
14056 MAGIC_CMD="$lt_save_MAGIC_CMD"
14057 ;;
14058esac
John Criswell7a73b802003-06-30 21:59:07 +000014059fi
John Criswell7a73b802003-06-30 21:59:07 +000014060
John Criswell47fdd832003-07-14 16:52:07 +000014061MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14062if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014063 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14064echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014065else
Reid Spencera773bd52006-08-04 18:18:08 +000014066 { echo "$as_me:$LINENO: result: no" >&5
14067echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014068fi
John Criswell7a73b802003-06-30 21:59:07 +000014069
John Criswell47fdd832003-07-14 16:52:07 +000014070if test -z "$lt_cv_path_MAGIC_CMD"; then
14071 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014072 { echo "$as_me:$LINENO: checking for file" >&5
14073echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014074if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076else
14077 case $MAGIC_CMD in
14078[\\/*] | ?:[\\/]*)
14079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14080 ;;
14081*)
14082 lt_save_MAGIC_CMD="$MAGIC_CMD"
14083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14085 for ac_dir in $ac_dummy; do
14086 IFS="$lt_save_ifs"
14087 test -z "$ac_dir" && ac_dir=.
14088 if test -f $ac_dir/file; then
14089 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14090 if test -n "$file_magic_test_file"; then
14091 case $deplibs_check_method in
14092 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14096 $EGREP "$file_magic_regex" > /dev/null; then
14097 :
14098 else
14099 cat <<EOF 1>&2
14100
14101*** Warning: the command libtool uses to detect shared libraries,
14102*** $file_magic_cmd, produces output that libtool cannot recognize.
14103*** The result is that libtool may fail to recognize shared libraries
14104*** as such. This will affect the creation of libtool libraries that
14105*** depend on shared libraries, but programs linked with such libtool
14106*** libraries will work regardless of this problem. Nevertheless, you
14107*** may want to report the problem to your system manager and/or to
14108*** bug-libtool@gnu.org
14109
14110EOF
14111 fi ;;
14112 esac
14113 fi
14114 break
14115 fi
14116 done
14117 IFS="$lt_save_ifs"
14118 MAGIC_CMD="$lt_save_MAGIC_CMD"
14119 ;;
14120esac
14121fi
14122
14123MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14124if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014125 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14126echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014127else
Reid Spencera773bd52006-08-04 18:18:08 +000014128 { echo "$as_me:$LINENO: result: no" >&5
14129echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014130fi
14131
14132 else
14133 MAGIC_CMD=:
14134 fi
14135fi
14136
14137 fi
14138 ;;
14139esac
14140
Reid Spencer17795972004-11-18 09:47:37 +000014141enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014142enable_win32_dll=no
14143
Reid Spencera773bd52006-08-04 18:18:08 +000014144# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014145if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014146 enableval=$enable_libtool_lock;
14147fi
John Criswell47fdd832003-07-14 16:52:07 +000014148
John Criswell47fdd832003-07-14 16:52:07 +000014149test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14150
John Criswell7a73b802003-06-30 21:59:07 +000014151
Reid Spencera773bd52006-08-04 18:18:08 +000014152# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014153if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014154 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014155else
14156 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014157fi
14158
John Criswell7a73b802003-06-30 21:59:07 +000014159test -z "$pic_mode" && pic_mode=default
14160
John Criswell47fdd832003-07-14 16:52:07 +000014161# Use C for the default configuration in the libtool script
14162tagname=
14163lt_save_CC="$CC"
14164ac_ext=c
14165ac_cpp='$CPP $CPPFLAGS'
14166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168ac_compiler_gnu=$ac_cv_c_compiler_gnu
14169
14170
14171# Source file extension for C test sources.
14172ac_ext=c
14173
14174# Object file extension for compiled C test sources.
14175objext=o
14176objext=$objext
14177
14178# Code to be used in simple compile tests
14179lt_simple_compile_test_code="int some_variable = 0;\n"
14180
14181# Code to be used in simple link tests
14182lt_simple_link_test_code='int main(){return(0);}\n'
14183
14184
14185# If no C compiler was specified, use CC.
14186LTCC=${LTCC-"$CC"}
14187
Reid Spencera773bd52006-08-04 18:18:08 +000014188# If no C compiler flags were specified, use CFLAGS.
14189LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14190
John Criswell47fdd832003-07-14 16:52:07 +000014191# Allow CC to be a program name with arguments.
14192compiler=$CC
14193
14194
Reid Spencera773bd52006-08-04 18:18:08 +000014195# save warnings/boilerplate of simple test code
14196ac_outfile=conftest.$ac_objext
14197printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14198eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199_lt_compiler_boilerplate=`cat conftest.err`
14200$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014201
Reid Spencera773bd52006-08-04 18:18:08 +000014202ac_outfile=conftest.$ac_objext
14203printf "$lt_simple_link_test_code" >conftest.$ac_ext
14204eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14205_lt_linker_boilerplate=`cat conftest.err`
14206$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014207
14208
John Criswell47fdd832003-07-14 16:52:07 +000014209
14210lt_prog_compiler_no_builtin_flag=
14211
14212if test "$GCC" = yes; then
14213 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14214
Reid Spencer2706f8c2004-09-19 23:53:36 +000014215
Reid Spencera773bd52006-08-04 18:18:08 +000014216{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14217echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014218if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220else
14221 lt_cv_prog_compiler_rtti_exceptions=no
14222 ac_outfile=conftest.$ac_objext
14223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14224 lt_compiler_flag="-fno-rtti -fno-exceptions"
14225 # Insert the option either (1) after the last *FLAGS variable, or
14226 # (2) before a word containing "conftest.", or (3) at the end.
14227 # Note that $ac_compile itself does not contain backslashes and begins
14228 # with a dollar sign (not a hyphen), so the echo should work correctly.
14229 # The option is referenced via a variable to avoid confusing sed.
14230 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14233 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000014234 (eval echo "\"\$as_me:14231: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014235 (eval "$lt_compile" 2>conftest.err)
14236 ac_status=$?
14237 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000014238 echo "$as_me:14235: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014239 if (exit $ac_status) && test -s "$ac_outfile"; then
14240 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014241 # So say no if there are warnings other than the usual output.
14242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014245 lt_cv_prog_compiler_rtti_exceptions=yes
14246 fi
14247 fi
14248 $rm conftest*
14249
14250fi
Reid Spencera773bd52006-08-04 18:18:08 +000014251{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14252echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014253
14254if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14256else
14257 :
14258fi
14259
14260fi
14261
14262lt_prog_compiler_wl=
14263lt_prog_compiler_pic=
14264lt_prog_compiler_static=
14265
Reid Spencera773bd52006-08-04 18:18:08 +000014266{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014268
14269 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014270 lt_prog_compiler_wl='-Wl,'
14271 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014272
14273 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014274 aix*)
14275 # All AIX code is PIC.
14276 if test "$host_cpu" = ia64; then
14277 # AIX 5 now supports IA64 processor
14278 lt_prog_compiler_static='-Bstatic'
14279 fi
John Criswell7a73b802003-06-30 21:59:07 +000014280 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014281
John Criswell7a73b802003-06-30 21:59:07 +000014282 amigaos*)
14283 # FIXME: we need at least 68020 code to build shared libraries, but
14284 # adding the `-m68020' flag to GCC prevents building anything better,
14285 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014286 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014287 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014288
14289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014290 # PIC is the default for these OSes.
14291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014292
14293 mingw* | pw32* | os2*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 lt_prog_compiler_pic='-DDLL_EXPORT'
14297 ;;
14298
John Criswell7a73b802003-06-30 21:59:07 +000014299 darwin* | rhapsody*)
14300 # PIC is the default on this platform
14301 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014302 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014303 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014304
Reid Spencera773bd52006-08-04 18:18:08 +000014305 interix3*)
14306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14307 # Instead, we relocate shared libraries at runtime.
14308 ;;
14309
John Criswell47fdd832003-07-14 16:52:07 +000014310 msdosdjgpp*)
14311 # Just because we use GCC doesn't mean we suddenly get shared libraries
14312 # on systems that don't support them.
14313 lt_prog_compiler_can_build_shared=no
14314 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014315 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014316
John Criswell7a73b802003-06-30 21:59:07 +000014317 sysv4*MP*)
14318 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014319 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014320 fi
14321 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014322
14323 hpux*)
14324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14325 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014326 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014327 hppa*64*|ia64*)
14328 # +Z the default
14329 ;;
14330 *)
14331 lt_prog_compiler_pic='-fPIC'
14332 ;;
14333 esac
14334 ;;
14335
John Criswell7a73b802003-06-30 21:59:07 +000014336 *)
John Criswell47fdd832003-07-14 16:52:07 +000014337 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014338 ;;
14339 esac
14340 else
John Criswell47fdd832003-07-14 16:52:07 +000014341 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014342 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014343 aix*)
14344 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014345 if test "$host_cpu" = ia64; then
14346 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014347 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014348 else
John Criswell47fdd832003-07-14 16:52:07 +000014349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014350 fi
14351 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014352 darwin*)
14353 # PIC is the default on this platform
14354 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014355 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014356 xlc*)
14357 lt_prog_compiler_pic='-qnocommon'
14358 lt_prog_compiler_wl='-Wl,'
14359 ;;
14360 esac
14361 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014362
John Criswell47fdd832003-07-14 16:52:07 +000014363 mingw* | pw32* | os2*)
14364 # This hack is so that the source file can tell whether it is being
14365 # built for inclusion in a dll (and should export symbols for example).
14366 lt_prog_compiler_pic='-DDLL_EXPORT'
14367 ;;
14368
John Criswell7a73b802003-06-30 21:59:07 +000014369 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014370 lt_prog_compiler_wl='-Wl,'
14371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14372 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014373 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014374 hppa*64*|ia64*)
14375 # +Z the default
14376 ;;
14377 *)
14378 lt_prog_compiler_pic='+Z'
14379 ;;
14380 esac
14381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14382 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014383 ;;
14384
John Criswell47fdd832003-07-14 16:52:07 +000014385 irix5* | irix6* | nonstopux*)
14386 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014387 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014388 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014389 ;;
14390
14391 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014392 lt_prog_compiler_pic='-KPIC'
14393 lt_prog_compiler_static='-Bstatic'
14394 ;;
14395
14396 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014397 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014398 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014399 lt_prog_compiler_wl='-Wl,'
14400 lt_prog_compiler_pic='-KPIC'
14401 lt_prog_compiler_static='-static'
14402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014403 pgcc* | pgf77* | pgf90* | pgf95*)
14404 # Portland Group compilers (*not* the Pentium gcc compiler,
14405 # which looks to be a dead project)
14406 lt_prog_compiler_wl='-Wl,'
14407 lt_prog_compiler_pic='-fpic'
14408 lt_prog_compiler_static='-Bstatic'
14409 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014410 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014411 lt_prog_compiler_wl='-Wl,'
14412 # All Alpha code is PIC.
14413 lt_prog_compiler_static='-non_shared'
14414 ;;
14415 esac
John Criswell7a73b802003-06-30 21:59:07 +000014416 ;;
14417
14418 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014419 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014420 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014421 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014422 ;;
14423
John Criswell7a73b802003-06-30 21:59:07 +000014424 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014425 lt_prog_compiler_pic='-KPIC'
14426 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014427 case $cc_basename in
14428 f77* | f90* | f95*)
14429 lt_prog_compiler_wl='-Qoption ld ';;
14430 *)
14431 lt_prog_compiler_wl='-Wl,';;
14432 esac
John Criswell7a73b802003-06-30 21:59:07 +000014433 ;;
14434
14435 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014436 lt_prog_compiler_wl='-Qoption ld '
14437 lt_prog_compiler_pic='-PIC'
14438 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014439 ;;
14440
Reid Spencera773bd52006-08-04 18:18:08 +000014441 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014442 lt_prog_compiler_wl='-Wl,'
14443 lt_prog_compiler_pic='-KPIC'
14444 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014445 ;;
14446
14447 sysv4*MP*)
14448 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014449 lt_prog_compiler_pic='-Kconform_pic'
14450 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014451 fi
14452 ;;
14453
Reid Spencera773bd52006-08-04 18:18:08 +000014454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14455 lt_prog_compiler_wl='-Wl,'
14456 lt_prog_compiler_pic='-KPIC'
14457 lt_prog_compiler_static='-Bstatic'
14458 ;;
14459
14460 unicos*)
14461 lt_prog_compiler_wl='-Wl,'
14462 lt_prog_compiler_can_build_shared=no
14463 ;;
14464
John Criswell47fdd832003-07-14 16:52:07 +000014465 uts4*)
14466 lt_prog_compiler_pic='-pic'
14467 lt_prog_compiler_static='-Bstatic'
14468 ;;
14469
John Criswell7a73b802003-06-30 21:59:07 +000014470 *)
John Criswell47fdd832003-07-14 16:52:07 +000014471 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014472 ;;
14473 esac
14474 fi
14475
Reid Spencera773bd52006-08-04 18:18:08 +000014476{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14477echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014478
John Criswell47fdd832003-07-14 16:52:07 +000014479#
14480# Check to make sure the PIC flag actually works.
14481#
14482if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014483
Reid Spencera773bd52006-08-04 18:18:08 +000014484{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14485echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014486if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
John Criswell47fdd832003-07-14 16:52:07 +000014489 lt_prog_compiler_pic_works=no
14490 ac_outfile=conftest.$ac_objext
14491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14492 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14493 # Insert the option either (1) after the last *FLAGS variable, or
14494 # (2) before a word containing "conftest.", or (3) at the end.
14495 # Note that $ac_compile itself does not contain backslashes and begins
14496 # with a dollar sign (not a hyphen), so the echo should work correctly.
14497 # The option is referenced via a variable to avoid confusing sed.
14498 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14501 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000014502 (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014503 (eval "$lt_compile" 2>conftest.err)
14504 ac_status=$?
14505 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000014506 echo "$as_me:14503: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014507 if (exit $ac_status) && test -s "$ac_outfile"; then
14508 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014509 # So say no if there are warnings other than the usual output.
14510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014513 lt_prog_compiler_pic_works=yes
14514 fi
14515 fi
14516 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014517
John Criswell47fdd832003-07-14 16:52:07 +000014518fi
Reid Spencera773bd52006-08-04 18:18:08 +000014519{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14520echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014521
John Criswell47fdd832003-07-14 16:52:07 +000014522if test x"$lt_prog_compiler_pic_works" = xyes; then
14523 case $lt_prog_compiler_pic in
14524 "" | " "*) ;;
14525 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14526 esac
John Criswell7a73b802003-06-30 21:59:07 +000014527else
John Criswell47fdd832003-07-14 16:52:07 +000014528 lt_prog_compiler_pic=
14529 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014530fi
14531
John Criswell7a73b802003-06-30 21:59:07 +000014532fi
Reid Spencera773bd52006-08-04 18:18:08 +000014533case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014534 # For platforms which do not support PIC, -DPIC is meaningless:
14535 *djgpp*)
14536 lt_prog_compiler_pic=
14537 ;;
14538 *)
14539 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14540 ;;
14541esac
John Criswell7a73b802003-06-30 21:59:07 +000014542
Reid Spencera773bd52006-08-04 18:18:08 +000014543#
14544# Check to make sure the static flag actually works.
14545#
14546wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14547{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14548echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14549if test "${lt_prog_compiler_static_works+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551else
14552 lt_prog_compiler_static_works=no
14553 save_LDFLAGS="$LDFLAGS"
14554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14557 # The linker can only warn and ignore the option if not recognized
14558 # So say no if there are warnings
14559 if test -s conftest.err; then
14560 # Append any errors to the config.log.
14561 cat conftest.err 1>&5
14562 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14564 if diff conftest.exp conftest.er2 >/dev/null; then
14565 lt_prog_compiler_static_works=yes
14566 fi
14567 else
14568 lt_prog_compiler_static_works=yes
14569 fi
14570 fi
14571 $rm conftest*
14572 LDFLAGS="$save_LDFLAGS"
14573
14574fi
14575{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14576echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14577
14578if test x"$lt_prog_compiler_static_works" = xyes; then
14579 :
14580else
14581 lt_prog_compiler_static=
14582fi
14583
14584
14585{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14586echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014587if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014588 echo $ECHO_N "(cached) $ECHO_C" >&6
14589else
John Criswell47fdd832003-07-14 16:52:07 +000014590 lt_cv_prog_compiler_c_o=no
14591 $rm -r conftest 2>/dev/null
14592 mkdir conftest
14593 cd conftest
14594 mkdir out
14595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014596
John Criswell47fdd832003-07-14 16:52:07 +000014597 lt_compiler_flag="-o out/conftest2.$ac_objext"
14598 # Insert the option either (1) after the last *FLAGS variable, or
14599 # (2) before a word containing "conftest.", or (3) at the end.
14600 # Note that $ac_compile itself does not contain backslashes and begins
14601 # with a dollar sign (not a hyphen), so the echo should work correctly.
14602 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14605 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000014606 (eval echo "\"\$as_me:14603: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014607 (eval "$lt_compile" 2>out/conftest.err)
14608 ac_status=$?
14609 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000014610 echo "$as_me:14607: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14612 then
14613 # The compiler can only warn and ignore the option if not recognized
14614 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014618 lt_cv_prog_compiler_c_o=yes
14619 fi
14620 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014621 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014622 $rm conftest*
14623 # SGI C++ compiler will create directory out/ii_files/ for
14624 # template instantiation
14625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14626 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014627 cd ..
14628 rmdir conftest
14629 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014630
14631fi
Reid Spencera773bd52006-08-04 18:18:08 +000014632{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14633echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014634
John Criswell7a73b802003-06-30 21:59:07 +000014635
John Criswell7a73b802003-06-30 21:59:07 +000014636hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014637if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014638 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014639 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14640echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014641 hard_links=yes
14642 $rm conftest*
14643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644 touch conftest.a
14645 ln conftest.a conftest.b 2>&5 || hard_links=no
14646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014647 { echo "$as_me:$LINENO: result: $hard_links" >&5
14648echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014649 if test "$hard_links" = no; then
14650 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14651echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14652 need_locks=warn
14653 fi
14654else
14655 need_locks=no
14656fi
John Criswell7a73b802003-06-30 21:59:07 +000014657
Reid Spencera773bd52006-08-04 18:18:08 +000014658{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14659echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014660
14661 runpath_var=
14662 allow_undefined_flag=
14663 enable_shared_with_static_runtimes=no
14664 archive_cmds=
14665 archive_expsym_cmds=
14666 old_archive_From_new_cmds=
14667 old_archive_from_expsyms_cmds=
14668 export_dynamic_flag_spec=
14669 whole_archive_flag_spec=
14670 thread_safe_flag_spec=
14671 hardcode_libdir_flag_spec=
14672 hardcode_libdir_flag_spec_ld=
14673 hardcode_libdir_separator=
14674 hardcode_direct=no
14675 hardcode_minus_L=no
14676 hardcode_shlibpath_var=unsupported
14677 link_all_deplibs=unknown
14678 hardcode_automatic=no
14679 module_cmds=
14680 module_expsym_cmds=
14681 always_export_symbols=no
14682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14683 # include_expsyms should be a list of space-separated symbols to be *always*
14684 # included in the symbol list
14685 include_expsyms=
14686 # exclude_expsyms can be an extended regexp of symbols to exclude
14687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14689 # as well as any symbol that contains `d'.
14690 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14692 # platforms (ab)use it in PIC code, but their linkers get confused if
14693 # the symbol is explicitly referenced. Since portable code cannot
14694 # rely on this symbol name, it's probably fine to never include it in
14695 # preloaded symbol tables.
14696 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014697 # Just being paranoid about ensuring that cc_basename is set.
14698 for cc_temp in $compiler""; do
14699 case $cc_temp in
14700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14702 \-*) ;;
14703 *) break;;
14704 esac
14705done
14706cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014707
14708 case $host_os in
14709 cygwin* | mingw* | pw32*)
14710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14711 # When not using gcc, we currently assume that we are using
14712 # Microsoft Visual C++.
14713 if test "$GCC" != yes; then
14714 with_gnu_ld=no
14715 fi
14716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014717 interix*)
14718 # we just hope/assume this is gcc and not c89 (= MSVC++)
14719 with_gnu_ld=yes
14720 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014721 openbsd*)
14722 with_gnu_ld=no
14723 ;;
14724 esac
14725
14726 ld_shlibs=yes
14727 if test "$with_gnu_ld" = yes; then
14728 # If archive_cmds runs LD, not CC, wlarc should be empty
14729 wlarc='${wl}'
14730
Reid Spencera773bd52006-08-04 18:18:08 +000014731 # Set some defaults for GNU ld with shared library support. These
14732 # are reset later if shared libraries are not supported. Putting them
14733 # here allows them to be overridden if necessary.
14734 runpath_var=LD_RUN_PATH
14735 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14736 export_dynamic_flag_spec='${wl}--export-dynamic'
14737 # ancient GNU ld didn't support --whole-archive et. al.
14738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14739 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14740 else
14741 whole_archive_flag_spec=
14742 fi
14743 supports_anon_versioning=no
14744 case `$LD -v 2>/dev/null` in
14745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14748 *\ 2.11.*) ;; # other 2.11 versions
14749 *) supports_anon_versioning=yes ;;
14750 esac
14751
John Criswell47fdd832003-07-14 16:52:07 +000014752 # See if GNU ld supports shared libraries.
14753 case $host_os in
14754 aix3* | aix4* | aix5*)
14755 # On AIX/PPC, the GNU linker is very broken
14756 if test "$host_cpu" != ia64; then
14757 ld_shlibs=no
14758 cat <<EOF 1>&2
14759
14760*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14761*** to be unable to reliably create shared libraries on AIX.
14762*** Therefore, libtool is disabling shared libraries support. If you
14763*** really care for shared libraries, you may want to modify your PATH
14764*** so that a non-GNU linker is found, and then restart.
14765
14766EOF
14767 fi
14768 ;;
14769
14770 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014771 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 +000014772 hardcode_libdir_flag_spec='-L$libdir'
14773 hardcode_minus_L=yes
14774
14775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14776 # that the semantics of dynamic libraries on AmigaOS, at least up
14777 # to version 4, is to share data among multiple programs linked
14778 # with the same dynamic library. Since this doesn't match the
14779 # behavior of shared libraries on other platforms, we can't use
14780 # them.
14781 ld_shlibs=no
14782 ;;
14783
14784 beos*)
14785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14786 allow_undefined_flag=unsupported
14787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14788 # support --undefined. This deserves some investigation. FIXME
14789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790 else
14791 ld_shlibs=no
14792 fi
14793 ;;
14794
14795 cygwin* | mingw* | pw32*)
14796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14797 # as there is no search path for DLLs.
14798 hardcode_libdir_flag_spec='-L$libdir'
14799 allow_undefined_flag=unsupported
14800 always_export_symbols=no
14801 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014802 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 +000014803
14804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014805 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 +000014806 # If the export-symbols file already is a .def file (1st line
14807 # is EXPORTS), use it as is; otherwise, prepend...
14808 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14809 cp $export_symbols $output_objdir/$soname.def;
14810 else
14811 echo EXPORTS > $output_objdir/$soname.def;
14812 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014813 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14815 else
14816 ld_shlibs=no
14817 fi
14818 ;;
14819
14820 interix3*)
14821 hardcode_direct=no
14822 hardcode_shlibpath_var=no
14823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14824 export_dynamic_flag_spec='${wl}-E'
14825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14826 # Instead, shared libraries are loaded at an image base (0x10000000 by
14827 # default) and relocated if they conflict, which is a slow very memory
14828 # consuming and fragmenting process. To avoid this, we pick a random,
14829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14832 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'
14833 ;;
14834
14835 linux*)
14836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837 tmp_addflag=
14838 case $cc_basename,$host_cpu in
14839 pgcc*) # Portland Group C compiler
14840 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'
14841 tmp_addflag=' $pic_flag'
14842 ;;
14843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14844 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'
14845 tmp_addflag=' $pic_flag -Mnomain' ;;
14846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14847 tmp_addflag=' -i_dynamic' ;;
14848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14849 tmp_addflag=' -i_dynamic -nofor_main' ;;
14850 ifc* | ifort*) # Intel Fortran compiler
14851 tmp_addflag=' -nofor_main' ;;
14852 esac
14853 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14854
14855 if test $supports_anon_versioning = yes; then
14856 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14858 $echo "local: *; };" >> $output_objdir/$libname.ver~
14859 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14860 fi
John Criswell47fdd832003-07-14 16:52:07 +000014861 else
14862 ld_shlibs=no
14863 fi
14864 ;;
14865
14866 netbsd*)
14867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14869 wlarc=
14870 else
14871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14873 fi
14874 ;;
14875
Reid Spencera773bd52006-08-04 18:18:08 +000014876 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14878 ld_shlibs=no
14879 cat <<EOF 1>&2
14880
14881*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14882*** create shared libraries on Solaris systems. Therefore, libtool
14883*** is disabling shared libraries support. We urge you to upgrade GNU
14884*** binutils to release 2.9.1 or newer. Another option is to modify
14885*** your PATH or compiler configuration so that the native linker is
14886*** used, and then restart.
14887
14888EOF
14889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14892 else
14893 ld_shlibs=no
14894 fi
14895 ;;
14896
Reid Spencera773bd52006-08-04 18:18:08 +000014897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14898 case `$LD -v 2>&1` in
14899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14900 ld_shlibs=no
14901 cat <<_LT_EOF 1>&2
14902
14903*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14904*** reliably create shared libraries on SCO systems. Therefore, libtool
14905*** is disabling shared libraries support. We urge you to upgrade GNU
14906*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14907*** your PATH or compiler configuration so that the native linker is
14908*** used, and then restart.
14909
14910_LT_EOF
14911 ;;
14912 *)
14913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14914 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14917 else
14918 ld_shlibs=no
14919 fi
14920 ;;
14921 esac
14922 ;;
14923
John Criswell47fdd832003-07-14 16:52:07 +000014924 sunos4*)
14925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14926 wlarc=
14927 hardcode_direct=yes
14928 hardcode_shlibpath_var=no
14929 ;;
14930
14931 *)
14932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14935 else
14936 ld_shlibs=no
14937 fi
14938 ;;
14939 esac
14940
Reid Spencera773bd52006-08-04 18:18:08 +000014941 if test "$ld_shlibs" = no; then
14942 runpath_var=
14943 hardcode_libdir_flag_spec=
14944 export_dynamic_flag_spec=
14945 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014946 fi
14947 else
14948 # PORTME fill in a description of your system's linker (not GNU ld)
14949 case $host_os in
14950 aix3*)
14951 allow_undefined_flag=unsupported
14952 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014953 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 +000014954 # Note: this linker hardcodes the directories in LIBPATH if there
14955 # are no directories specified by -L.
14956 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014958 # Neither direct hardcoding nor static linking is supported with a
14959 # broken collect2.
14960 hardcode_direct=unsupported
14961 fi
14962 ;;
14963
14964 aix4* | aix5*)
14965 if test "$host_cpu" = ia64; then
14966 # On IA64, the linker does run time linking by default, so we don't
14967 # have to do anything special.
14968 aix_use_runtimelinking=no
14969 exp_sym_flag='-Bexport'
14970 no_entry_flag=""
14971 else
14972 # If we're using GNU nm, then we don't want the "-C" option.
14973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14975 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'
14976 else
14977 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'
14978 fi
14979 aix_use_runtimelinking=no
14980
14981 # Test if we are trying to use run time linking or normal
14982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14983 # need to do runtime linking.
14984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14985 for ld_flag in $LDFLAGS; do
14986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14987 aix_use_runtimelinking=yes
14988 break
14989 fi
14990 done
Reid Spencera773bd52006-08-04 18:18:08 +000014991 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014992 esac
14993
14994 exp_sym_flag='-bexport'
14995 no_entry_flag='-bnoentry'
14996 fi
14997
14998 # When large executables or shared objects are built, AIX ld can
14999 # have problems creating the table of contents. If linking a library
15000 # or program results in "error TOC overflow" add -mminimal-toc to
15001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15003
15004 archive_cmds=''
15005 hardcode_direct=yes
15006 hardcode_libdir_separator=':'
15007 link_all_deplibs=yes
15008
15009 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015010 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015011 # We only want to do this on AIX 4.2 and lower, the check
15012 # below for broken collect2 doesn't work under 4.3+
15013 collect2name=`${CC} -print-prog-name=collect2`
15014 if test -f "$collect2name" && \
15015 strings "$collect2name" | grep resolve_lib_name >/dev/null
15016 then
15017 # We have reworked collect2
15018 hardcode_direct=yes
15019 else
15020 # We have old collect2
15021 hardcode_direct=unsupported
15022 # It fails to find uninstalled libraries when the uninstalled
15023 # path is not listed in the libpath. Setting hardcode_minus_L
15024 # to unsupported forces relinking
15025 hardcode_minus_L=yes
15026 hardcode_libdir_flag_spec='-L$libdir'
15027 hardcode_libdir_separator=
15028 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015029 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015030 esac
15031 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015032 if test "$aix_use_runtimelinking" = yes; then
15033 shared_flag="$shared_flag "'${wl}-G'
15034 fi
John Criswell47fdd832003-07-14 16:52:07 +000015035 else
15036 # not using gcc
15037 if test "$host_cpu" = ia64; then
15038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15039 # chokes on -Wl,-G. The following line is correct:
15040 shared_flag='-G'
15041 else
Reid Spencera773bd52006-08-04 18:18:08 +000015042 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015043 shared_flag='${wl}-G'
15044 else
15045 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015046 fi
John Criswell47fdd832003-07-14 16:52:07 +000015047 fi
15048 fi
15049
15050 # It seems that -bexpall does not export symbols beginning with
15051 # underscore (_), so it is better to generate a list of symbols to export.
15052 always_export_symbols=yes
15053 if test "$aix_use_runtimelinking" = yes; then
15054 # Warning - without using the other runtime loading flags (-brtl),
15055 # -berok will link without error, but may produce a broken library.
15056 allow_undefined_flag='-berok'
15057 # Determine the default libpath from the value encoded in an empty executable.
15058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015059/* confdefs.h. */
15060_ACEOF
15061cat confdefs.h >>conftest.$ac_ext
15062cat >>conftest.$ac_ext <<_ACEOF
15063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015064
John Criswell7a73b802003-06-30 21:59:07 +000015065int
15066main ()
15067{
John Criswell47fdd832003-07-14 16:52:07 +000015068
John Criswell7a73b802003-06-30 21:59:07 +000015069 ;
15070 return 0;
15071}
15072_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015073rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015074if { (ac_try="$ac_link"
15075case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015081 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015098 { (case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15101esac
15102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015107
John Criswell47fdd832003-07-14 16:52:07 +000015108aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15109}'`
15110# Check for a 64-bit object if we didn't find anything.
15111if 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; }
15112}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015113else
15114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015115sed 's/^/| /' conftest.$ac_ext >&5
15116
Reid Spencera773bd52006-08-04 18:18:08 +000015117
John Criswell7a73b802003-06-30 21:59:07 +000015118fi
Reid Spencera773bd52006-08-04 18:18:08 +000015119
15120rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015121 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015123
John Criswell47fdd832003-07-14 16:52:07 +000015124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015125 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 +000015126 else
15127 if test "$host_cpu" = ia64; then
15128 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15129 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015130 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 +000015131 else
15132 # Determine the default libpath from the value encoded in an empty executable.
15133 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015134/* confdefs.h. */
15135_ACEOF
15136cat confdefs.h >>conftest.$ac_ext
15137cat >>conftest.$ac_ext <<_ACEOF
15138/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015139
John Criswell47fdd832003-07-14 16:52:07 +000015140int
15141main ()
15142{
John Criswell7a73b802003-06-30 21:59:07 +000015143
John Criswell47fdd832003-07-14 16:52:07 +000015144 ;
15145 return 0;
15146}
15147_ACEOF
15148rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015149if { (ac_try="$ac_link"
15150case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153esac
15154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015156 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15163 { (case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15166esac
15167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015173 { (case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176esac
15177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015182
John Criswell47fdd832003-07-14 16:52:07 +000015183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15184}'`
15185# Check for a 64-bit object if we didn't find anything.
15186if 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; }
15187}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015188else
John Criswell47fdd832003-07-14 16:52:07 +000015189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015190sed 's/^/| /' conftest.$ac_ext >&5
15191
Reid Spencera773bd52006-08-04 18:18:08 +000015192
John Criswell47fdd832003-07-14 16:52:07 +000015193fi
Reid Spencera773bd52006-08-04 18:18:08 +000015194
15195rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015196 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015198
John Criswell47fdd832003-07-14 16:52:07 +000015199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15200 # Warning - without using the other run time loading flags,
15201 # -berok will link without error, but may produce a broken library.
15202 no_undefined_flag=' ${wl}-bernotok'
15203 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015204 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015205 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015206 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015207 # This is similar to how AIX traditionally builds its shared libraries.
15208 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 +000015209 fi
15210 fi
John Criswell7a73b802003-06-30 21:59:07 +000015211 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015212
15213 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015214 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 +000015215 hardcode_libdir_flag_spec='-L$libdir'
15216 hardcode_minus_L=yes
15217 # see comment about different semantics on the GNU ld section
15218 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015219 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015220
Reid Spencer2706f8c2004-09-19 23:53:36 +000015221 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015222 export_dynamic_flag_spec=-rdynamic
15223 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015224
John Criswell47fdd832003-07-14 16:52:07 +000015225 cygwin* | mingw* | pw32*)
15226 # When not using gcc, we currently assume that we are using
15227 # Microsoft Visual C++.
15228 # hardcode_libdir_flag_spec is actually meaningless, as there is
15229 # no search path for DLLs.
15230 hardcode_libdir_flag_spec=' '
15231 allow_undefined_flag=unsupported
15232 # Tell ltmain to make .lib files, not .a files.
15233 libext=lib
15234 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015235 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015236 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015237 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015238 # The linker will automatically build a .lib file if we build a DLL.
15239 old_archive_From_new_cmds='true'
15240 # FIXME: Should let the user specify the lib program.
15241 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15242 fix_srcfile_path='`cygpath -w "$srcfile"`'
15243 enable_shared_with_static_runtimes=yes
15244 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015245
John Criswell47fdd832003-07-14 16:52:07 +000015246 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015247 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015248 rhapsody* | darwin1.[012])
15249 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15250 ;;
15251 *) # Darwin 1.3 on
15252 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15253 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15254 else
15255 case ${MACOSX_DEPLOYMENT_TARGET} in
15256 10.[012])
15257 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15258 ;;
15259 10.*)
15260 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15261 ;;
15262 esac
15263 fi
15264 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015265 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015266 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015267 hardcode_direct=no
15268 hardcode_automatic=yes
15269 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015270 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015271 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015272 if test "$GCC" = yes ; then
15273 output_verbose_link_cmd='echo'
15274 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15275 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015276 # 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 +000015277 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}'
15278 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 +000015279 else
Reid Spencera773bd52006-08-04 18:18:08 +000015280 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015281 xlc*)
15282 output_verbose_link_cmd='echo'
15283 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15284 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015285 # 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 +000015286 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}'
15287 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 +000015288 ;;
15289 *)
15290 ld_shlibs=no
15291 ;;
15292 esac
John Criswell7a73b802003-06-30 21:59:07 +000015293 fi
John Criswell47fdd832003-07-14 16:52:07 +000015294 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015295
John Criswell47fdd832003-07-14 16:52:07 +000015296 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015298 hardcode_libdir_flag_spec='-L$libdir'
15299 hardcode_shlibpath_var=no
15300 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015301
John Criswell47fdd832003-07-14 16:52:07 +000015302 freebsd1*)
15303 ld_shlibs=no
15304 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015305
John Criswell47fdd832003-07-14 16:52:07 +000015306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15307 # support. Future versions do this automatically, but an explicit c++rt0.o
15308 # does not break anything, and helps significantly (at the cost of a little
15309 # extra space).
15310 freebsd2.2*)
15311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15312 hardcode_libdir_flag_spec='-R$libdir'
15313 hardcode_direct=yes
15314 hardcode_shlibpath_var=no
15315 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015316
John Criswell47fdd832003-07-14 16:52:07 +000015317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15318 freebsd2*)
15319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15320 hardcode_direct=yes
15321 hardcode_minus_L=yes
15322 hardcode_shlibpath_var=no
15323 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015324
John Criswell47fdd832003-07-14 16:52:07 +000015325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015326 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015327 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15328 hardcode_libdir_flag_spec='-R$libdir'
15329 hardcode_direct=yes
15330 hardcode_shlibpath_var=no
15331 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015332
John Criswell47fdd832003-07-14 16:52:07 +000015333 hpux9*)
15334 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015335 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 +000015336 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015337 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 +000015338 fi
15339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15340 hardcode_libdir_separator=:
15341 hardcode_direct=yes
15342
15343 # hardcode_minus_L: Not really in the search PATH,
15344 # but as the default location of the library.
15345 hardcode_minus_L=yes
15346 export_dynamic_flag_spec='${wl}-E'
15347 ;;
15348
Reid Spencera773bd52006-08-04 18:18:08 +000015349 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015351 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15352 else
15353 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15354 fi
15355 if test "$with_gnu_ld" = no; then
15356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15357 hardcode_libdir_separator=:
15358
15359 hardcode_direct=yes
15360 export_dynamic_flag_spec='${wl}-E'
15361
15362 # hardcode_minus_L: Not really in the search PATH,
15363 # but as the default location of the library.
15364 hardcode_minus_L=yes
15365 fi
15366 ;;
15367
15368 hpux11*)
15369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15370 case $host_cpu in
15371 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015374 ia64*)
15375 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15376 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015377 *)
15378 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379 ;;
15380 esac
15381 else
Reid Spencera773bd52006-08-04 18:18:08 +000015382 case $host_cpu in
15383 hppa*64*)
15384 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 ;;
15386 ia64*)
15387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015388 ;;
15389 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015390 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 +000015391 ;;
15392 esac
15393 fi
15394 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15396 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015397
Reid Spencera773bd52006-08-04 18:18:08 +000015398 case $host_cpu in
15399 hppa*64*|ia64*)
15400 hardcode_libdir_flag_spec_ld='+b $libdir'
15401 hardcode_direct=no
15402 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015403 ;;
15404 *)
John Criswell47fdd832003-07-14 16:52:07 +000015405 hardcode_direct=yes
15406 export_dynamic_flag_spec='${wl}-E'
15407
15408 # hardcode_minus_L: Not really in the search PATH,
15409 # but as the default location of the library.
15410 hardcode_minus_L=yes
15411 ;;
15412 esac
15413 fi
15414 ;;
15415
15416 irix5* | irix6* | nonstopux*)
15417 if test "$GCC" = yes; then
15418 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'
15419 else
15420 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'
15421 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15422 fi
15423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15424 hardcode_libdir_separator=:
15425 link_all_deplibs=yes
15426 ;;
15427
15428 netbsd*)
15429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15431 else
15432 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15433 fi
15434 hardcode_libdir_flag_spec='-R$libdir'
15435 hardcode_direct=yes
15436 hardcode_shlibpath_var=no
15437 ;;
15438
15439 newsos6)
15440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_direct=yes
15442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator=:
15444 hardcode_shlibpath_var=no
15445 ;;
15446
15447 openbsd*)
15448 hardcode_direct=yes
15449 hardcode_shlibpath_var=no
15450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015452 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 +000015453 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15454 export_dynamic_flag_spec='${wl}-E'
15455 else
15456 case $host_os in
15457 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459 hardcode_libdir_flag_spec='-R$libdir'
15460 ;;
15461 *)
15462 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15464 ;;
15465 esac
15466 fi
15467 ;;
15468
15469 os2*)
15470 hardcode_libdir_flag_spec='-L$libdir'
15471 hardcode_minus_L=yes
15472 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015473 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 +000015474 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15475 ;;
15476
15477 osf3*)
15478 if test "$GCC" = yes; then
15479 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15480 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'
15481 else
15482 allow_undefined_flag=' -expect_unresolved \*'
15483 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'
15484 fi
15485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15486 hardcode_libdir_separator=:
15487 ;;
15488
15489 osf4* | osf5*) # as osf3* with the addition of -msym flag
15490 if test "$GCC" = yes; then
15491 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15492 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'
15493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15494 else
15495 allow_undefined_flag=' -expect_unresolved \*'
15496 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 +000015497 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 +000015498 $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 +000015499
John Criswell47fdd832003-07-14 16:52:07 +000015500 # Both c and cxx compiler support -rpath directly
15501 hardcode_libdir_flag_spec='-rpath $libdir'
15502 fi
15503 hardcode_libdir_separator=:
15504 ;;
15505
John Criswell47fdd832003-07-14 16:52:07 +000015506 solaris*)
15507 no_undefined_flag=' -z text'
15508 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015509 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015510 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015511 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15512 $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 +000015513 else
Reid Spencera773bd52006-08-04 18:18:08 +000015514 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015515 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015516 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517 $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 +000015518 fi
15519 hardcode_libdir_flag_spec='-R$libdir'
15520 hardcode_shlibpath_var=no
15521 case $host_os in
15522 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015523 *)
15524 # The compiler driver will combine linker options so we
15525 # cannot just pass the convience library names through
15526 # without $wl, iff we do not link with $LD.
15527 # Luckily, gcc supports the same syntax we need for Sun Studio.
15528 # Supported since Solaris 2.6 (maybe 2.5.1?)
15529 case $wlarc in
15530 '')
15531 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15532 *)
15533 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' ;;
15534 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015535 esac
15536 link_all_deplibs=yes
15537 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015538
John Criswell47fdd832003-07-14 16:52:07 +000015539 sunos4*)
15540 if test "x$host_vendor" = xsequent; then
15541 # Use $CC to link under sequent, because it throws in some extra .o
15542 # files that make .init and .fini sections work.
15543 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15544 else
15545 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15546 fi
15547 hardcode_libdir_flag_spec='-L$libdir'
15548 hardcode_direct=yes
15549 hardcode_minus_L=yes
15550 hardcode_shlibpath_var=no
15551 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015552
John Criswell47fdd832003-07-14 16:52:07 +000015553 sysv4)
15554 case $host_vendor in
15555 sni)
15556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_direct=yes # is this really true???
15558 ;;
15559 siemens)
15560 ## LD is ld it makes a PLAMLIB
15561 ## CC just makes a GrossModule.
15562 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15563 reload_cmds='$CC -r -o $output$reload_objs'
15564 hardcode_direct=no
15565 ;;
15566 motorola)
15567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15569 ;;
15570 esac
15571 runpath_var='LD_RUN_PATH'
15572 hardcode_shlibpath_var=no
15573 ;;
15574
15575 sysv4.3*)
15576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577 hardcode_shlibpath_var=no
15578 export_dynamic_flag_spec='-Bexport'
15579 ;;
15580
15581 sysv4*MP*)
15582 if test -d /usr/nec; then
15583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584 hardcode_shlibpath_var=no
15585 runpath_var=LD_RUN_PATH
15586 hardcode_runpath_var=yes
15587 ld_shlibs=yes
15588 fi
15589 ;;
15590
Reid Spencera773bd52006-08-04 18:18:08 +000015591 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15592 no_undefined_flag='${wl}-z,text'
15593 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015594 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015595 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015596
John Criswell47fdd832003-07-14 16:52:07 +000015597 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 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 +000015600 else
Reid Spencera773bd52006-08-04 18:18:08 +000015601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 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 +000015603 fi
John Criswell47fdd832003-07-14 16:52:07 +000015604 ;;
15605
Reid Spencera773bd52006-08-04 18:18:08 +000015606 sysv5* | sco3.2v5* | sco5v6*)
15607 # Note: We can NOT use -z defs as we might desire, because we do not
15608 # link with -lc, and that would cause any symbols used from libc to
15609 # always be unresolved, which means just about no library would
15610 # ever link correctly. If we're not using GNU ld we use -z text
15611 # though, which does catch some bad symbols but isn't as heavy-handed
15612 # as -z defs.
15613 no_undefined_flag='${wl}-z,text'
15614 allow_undefined_flag='${wl}-z,nodefs'
15615 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015616 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015617 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15618 hardcode_libdir_separator=':'
15619 link_all_deplibs=yes
15620 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015621 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015622
15623 if test "$GCC" = yes; then
15624 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 else
15627 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 fi
John Criswell47fdd832003-07-14 16:52:07 +000015630 ;;
15631
15632 uts4*)
15633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634 hardcode_libdir_flag_spec='-L$libdir'
15635 hardcode_shlibpath_var=no
15636 ;;
15637
15638 *)
15639 ld_shlibs=no
15640 ;;
15641 esac
15642 fi
15643
Reid Spencera773bd52006-08-04 18:18:08 +000015644{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15645echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015646test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015647
John Criswell47fdd832003-07-14 16:52:07 +000015648#
15649# Do we need to explicitly link libc?
15650#
15651case "x$archive_cmds_need_lc" in
15652x|xyes)
15653 # Assume -lc should be added
15654 archive_cmds_need_lc=yes
15655
15656 if test "$enable_shared" = yes && test "$GCC" = yes; then
15657 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015658 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015659 # FIXME: we may have to deal with multi-command sequences.
15660 ;;
15661 '$CC '*)
15662 # Test whether the compiler implicitly links with -lc since on some
15663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15664 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015665 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15666echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015667 $rm conftest*
15668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15669
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } 2>conftest.err; then
15675 soname=conftest
15676 lib=conftest
15677 libobjs=conftest.$ac_objext
15678 deplibs=
15679 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015680 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015681 compiler_flags=-v
15682 linker_flags=-v
15683 verstring=
15684 output_objdir=.
15685 libname=conftest
15686 lt_save_allow_undefined_flag=$allow_undefined_flag
15687 allow_undefined_flag=
15688 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15689 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }
15693 then
15694 archive_cmds_need_lc=no
15695 else
15696 archive_cmds_need_lc=yes
15697 fi
15698 allow_undefined_flag=$lt_save_allow_undefined_flag
15699 else
15700 cat conftest.err 1>&5
15701 fi
15702 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015703 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15704echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015705 ;;
15706 esac
15707 fi
15708 ;;
15709esac
15710
Reid Spencera773bd52006-08-04 18:18:08 +000015711{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15712echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015713library_names_spec=
15714libname_spec='lib$name'
15715soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015716shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015717postinstall_cmds=
15718postuninstall_cmds=
15719finish_cmds=
15720finish_eval=
15721shlibpath_var=
15722shlibpath_overrides_runpath=unknown
15723version_type=none
15724dynamic_linker="$host_os ld.so"
15725sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015726if test "$GCC" = yes; then
15727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15728 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15729 # if the path contains ";" then we assume it to be the separator
15730 # otherwise default to the standard path separator (i.e. ":") - it is
15731 # assumed that no part of a normal pathname contains ";" but that should
15732 # okay in the real world where ";" in dirpaths is itself problematic.
15733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15734 else
15735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15736 fi
15737else
15738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15739fi
15740need_lib_prefix=unknown
15741hardcode_into_libs=no
15742
15743# when you set need_version to no, make sure it does not cause -set_version
15744# flags to be left without arguments
15745need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015746
15747case $host_os in
15748aix3*)
15749 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015751 shlibpath_var=LIBPATH
15752
John Criswell47fdd832003-07-14 16:52:07 +000015753 # AIX 3 has no versioning support, so we append a major version to the name.
15754 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015755 ;;
15756
15757aix4* | aix5*)
15758 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015759 need_lib_prefix=no
15760 need_version=no
15761 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015762 if test "$host_cpu" = ia64; then
15763 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015765 shlibpath_var=LD_LIBRARY_PATH
15766 else
15767 # With GCC up to 2.95.x, collect2 would create an import file
15768 # for dependence libraries. The import file would start with
15769 # the line `#! .'. This would cause the generated library to
15770 # depend on `.', always an invalid library. This was fixed in
15771 # development snapshots of GCC prior to 3.0.
15772 case $host_os in
15773 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775 echo ' yes '
15776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15777 :
15778 else
15779 can_build_shared=no
15780 fi
15781 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015782 esac
John Criswell47fdd832003-07-14 16:52:07 +000015783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15784 # soname into executable. Probably we can add versioning support to
15785 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015786 if test "$aix_use_runtimelinking" = yes; then
15787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15788 # instead of lib<name>.a to let people know that these are not
15789 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015791 else
15792 # We preserve .a as extension for shared libraries through AIX4.2
15793 # and later when we are not doing run time linking.
15794 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015795 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015796 fi
15797 shlibpath_var=LIBPATH
15798 fi
15799 ;;
15800
15801amigaos*)
15802 library_names_spec='$libname.ixlibrary $libname.a'
15803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015804 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 +000015805 ;;
15806
15807beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015808 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015809 dynamic_linker="$host_os ld.so"
15810 shlibpath_var=LIBRARY_PATH
15811 ;;
15812
Reid Spencer2706f8c2004-09-19 23:53:36 +000015813bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015814 version_type=linux
15815 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015822 # the default ld.so.conf also contains /usr/contrib/lib and
15823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15824 # libtool to hard-code these into programs
15825 ;;
15826
15827cygwin* | mingw* | pw32*)
15828 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015829 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015830 need_version=no
15831 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015832
John Criswell7a73b802003-06-30 21:59:07 +000015833 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015834 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015835 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015837 postinstall_cmds='base_file=`basename \${file}`~
15838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15839 dldir=$destdir/`dirname \$dlpath`~
15840 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015841 $install_prog $dir/$dlname \$dldir/$dlname~
15842 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15844 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015845 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015846 shlibpath_overrides_runpath=yes
15847
15848 case $host_os in
15849 cygwin*)
15850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15851 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 +000015852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015853 ;;
15854 mingw*)
15855 # MinGW DLLs use traditional 'lib' prefix
15856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15859 # It is most probably a Windows format PATH printed by
15860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15861 # path with ; separators, and with drive letters. We can handle the
15862 # drive letters (cygwin fileutils understands them), so leave them,
15863 # especially as we might pass files found there to a mingw objdump,
15864 # which wouldn't understand a cygwinified path. Ahh.
15865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15866 else
15867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15868 fi
15869 ;;
15870 pw32*)
15871 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015872 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 +000015873 ;;
15874 esac
John Criswell7a73b802003-06-30 21:59:07 +000015875 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015876
John Criswell7a73b802003-06-30 21:59:07 +000015877 *)
John Criswell47fdd832003-07-14 16:52:07 +000015878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015879 ;;
15880 esac
15881 dynamic_linker='Win32 ld.exe'
15882 # FIXME: first we should search . and the directory the executable is in
15883 shlibpath_var=PATH
15884 ;;
15885
15886darwin* | rhapsody*)
15887 dynamic_linker="$host_os dyld"
15888 version_type=darwin
15889 need_lib_prefix=no
15890 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015892 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015893 shlibpath_overrides_runpath=yes
15894 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015895 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015896 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015897 if test "$GCC" = yes; then
15898 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"`
15899 else
15900 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015901 fi
15902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15903 ;;
15904
15905dgux*)
15906 version_type=linux
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015912 ;;
15913
15914freebsd1*)
15915 dynamic_linker=no
15916 ;;
15917
Reid Spencer2706f8c2004-09-19 23:53:36 +000015918kfreebsd*-gnu)
15919 version_type=linux
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=no
15926 hardcode_into_libs=yes
15927 dynamic_linker='GNU ld.so'
15928 ;;
15929
Reid Spencera773bd52006-08-04 18:18:08 +000015930freebsd* | dragonfly*)
15931 # DragonFly does not have aout. When/if they implement a new
15932 # versioning mechanism, adjust this.
15933 if test -x /usr/bin/objformat; then
15934 objformat=`/usr/bin/objformat`
15935 else
15936 case $host_os in
15937 freebsd[123]*) objformat=aout ;;
15938 *) objformat=elf ;;
15939 esac
15940 fi
John Criswell7a73b802003-06-30 21:59:07 +000015941 version_type=freebsd-$objformat
15942 case $version_type in
15943 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015945 need_version=no
15946 need_lib_prefix=no
15947 ;;
15948 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015950 need_version=yes
15951 ;;
15952 esac
15953 shlibpath_var=LD_LIBRARY_PATH
15954 case $host_os in
15955 freebsd2*)
15956 shlibpath_overrides_runpath=yes
15957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015958 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015959 shlibpath_overrides_runpath=yes
15960 hardcode_into_libs=yes
15961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015964 shlibpath_overrides_runpath=no
15965 hardcode_into_libs=yes
15966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015967 freebsd*) # from 4.6 on
15968 shlibpath_overrides_runpath=yes
15969 hardcode_into_libs=yes
15970 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015971 esac
15972 ;;
15973
15974gnu*)
15975 version_type=linux
15976 need_lib_prefix=no
15977 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015980 shlibpath_var=LD_LIBRARY_PATH
15981 hardcode_into_libs=yes
15982 ;;
15983
15984hpux9* | hpux10* | hpux11*)
15985 # Give a soname corresponding to the major version so that dld.sl refuses to
15986 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015987 version_type=sunos
15988 need_lib_prefix=no
15989 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015990 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015991 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015992 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015993 hardcode_into_libs=yes
15994 dynamic_linker="$host_os dld.so"
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 if test "X$HPUX_IA64_MODE" = X32; then
16000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16001 else
16002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16003 fi
16004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16005 ;;
16006 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016007 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016008 hardcode_into_libs=yes
16009 dynamic_linker="$host_os dld.sl"
16010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16016 ;;
16017 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016018 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016019 dynamic_linker="$host_os dld.sl"
16020 shlibpath_var=SHLIB_PATH
16021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 ;;
16025 esac
John Criswell7a73b802003-06-30 21:59:07 +000016026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16027 postinstall_cmds='chmod 555 $lib'
16028 ;;
16029
Reid Spencera773bd52006-08-04 18:18:08 +000016030interix3*)
16031 version_type=linux
16032 need_lib_prefix=no
16033 need_version=no
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=no
16039 hardcode_into_libs=yes
16040 ;;
16041
John Criswell47fdd832003-07-14 16:52:07 +000016042irix5* | irix6* | nonstopux*)
16043 case $host_os in
16044 nonstopux*) version_type=nonstopux ;;
16045 *)
16046 if test "$lt_cv_prog_gnu_ld" = yes; then
16047 version_type=linux
16048 else
16049 version_type=irix
16050 fi ;;
16051 esac
John Criswell7a73b802003-06-30 21:59:07 +000016052 need_lib_prefix=no
16053 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016054 soname_spec='${libname}${release}${shared_ext}$major'
16055 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 +000016056 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016057 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016058 libsuff= shlibsuff=
16059 ;;
16060 *)
16061 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16063 libsuff= shlibsuff= libmagic=32-bit;;
16064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16065 libsuff=32 shlibsuff=N32 libmagic=N32;;
16066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016068 *) libsuff= shlibsuff= libmagic=never-match;;
16069 esac
16070 ;;
16071 esac
16072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16073 shlibpath_overrides_runpath=no
16074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016076 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016077 ;;
16078
16079# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016080linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016081 dynamic_linker=no
16082 ;;
16083
16084# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016085linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16092 shlibpath_var=LD_LIBRARY_PATH
16093 shlibpath_overrides_runpath=no
16094 # This implies no fast_install, which is unacceptable.
16095 # Some rework will be needed to allow for fast_install
16096 # before this can be enabled.
16097 hardcode_into_libs=yes
16098
Reid Spencer2706f8c2004-09-19 23:53:36 +000016099 # Append ld.so.conf contents to the search path
16100 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016101 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 +000016102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16103 fi
16104
John Criswell7a73b802003-06-30 21:59:07 +000016105 # We used to test for /lib/ld.so.1 and disable shared libraries on
16106 # powerpc, because MkLinux only supported shared libraries with the
16107 # GNU dynamic linker. Since this was broken with cross compilers,
16108 # most powerpc-linux boxes support dynamic linking these days and
16109 # people can always --disable-shared, the test was removed, and we
16110 # assume the GNU/Linux dynamic linker is in use.
16111 dynamic_linker='GNU/Linux ld.so'
16112 ;;
16113
Reid Spencer2706f8c2004-09-19 23:53:36 +000016114knetbsd*-gnu)
16115 version_type=linux
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 shlibpath_overrides_runpath=no
16122 hardcode_into_libs=yes
16123 dynamic_linker='GNU ld.so'
16124 ;;
16125
John Criswell7a73b802003-06-30 21:59:07 +000016126netbsd*)
16127 version_type=sunos
16128 need_lib_prefix=no
16129 need_version=no
16130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16133 dynamic_linker='NetBSD (a.out) ld.so'
16134 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016136 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016137 dynamic_linker='NetBSD ld.elf_so'
16138 fi
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16142 ;;
16143
16144newsos6)
16145 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 ;;
16150
Reid Spencer2706f8c2004-09-19 23:53:36 +000016151nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016152 version_type=linux
16153 need_lib_prefix=no
16154 need_version=no
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=yes
16159 ;;
16160
16161openbsd*)
16162 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016163 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016164 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16166 case $host_os in
16167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16168 *) need_version=no ;;
16169 esac
John Criswell47fdd832003-07-14 16:52:07 +000016170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16172 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016173 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 +000016174 case $host_os in
16175 openbsd2.[89] | openbsd2.[89].*)
16176 shlibpath_overrides_runpath=no
16177 ;;
16178 *)
16179 shlibpath_overrides_runpath=yes
16180 ;;
16181 esac
John Criswell7a73b802003-06-30 21:59:07 +000016182 else
16183 shlibpath_overrides_runpath=yes
16184 fi
John Criswell7a73b802003-06-30 21:59:07 +000016185 ;;
16186
16187os2*)
16188 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016189 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016190 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016191 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016192 dynamic_linker='OS/2 ld.exe'
16193 shlibpath_var=LIBPATH
16194 ;;
16195
16196osf3* | osf4* | osf5*)
16197 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016198 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016199 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016200 soname_spec='${libname}${release}${shared_ext}$major'
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016202 shlibpath_var=LD_LIBRARY_PATH
16203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16205 ;;
16206
John Criswell7a73b802003-06-30 21:59:07 +000016207solaris*)
16208 version_type=linux
16209 need_lib_prefix=no
16210 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=yes
16215 hardcode_into_libs=yes
16216 # ldd complains unless libraries are executable
16217 postinstall_cmds='chmod +x $lib'
16218 ;;
16219
16220sunos4*)
16221 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016223 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=yes
16226 if test "$with_gnu_ld" = yes; then
16227 need_lib_prefix=no
16228 fi
16229 need_version=yes
16230 ;;
16231
Reid Spencera773bd52006-08-04 18:18:08 +000016232sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016233 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016236 shlibpath_var=LD_LIBRARY_PATH
16237 case $host_vendor in
16238 sni)
16239 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016240 need_lib_prefix=no
16241 export_dynamic_flag_spec='${wl}-Blargedynsym'
16242 runpath_var=LD_RUN_PATH
16243 ;;
16244 siemens)
16245 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016246 ;;
16247 motorola)
16248 need_lib_prefix=no
16249 need_version=no
16250 shlibpath_overrides_runpath=no
16251 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16252 ;;
16253 esac
16254 ;;
16255
John Criswell7a73b802003-06-30 21:59:07 +000016256sysv4*MP*)
16257 if test -d /usr/nec ;then
16258 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016259 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16260 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016261 shlibpath_var=LD_LIBRARY_PATH
16262 fi
16263 ;;
16264
Reid Spencera773bd52006-08-04 18:18:08 +000016265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16266 version_type=freebsd-elf
16267 need_lib_prefix=no
16268 need_version=no
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 shlibpath_var=LD_LIBRARY_PATH
16272 hardcode_into_libs=yes
16273 if test "$with_gnu_ld" = yes; then
16274 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16275 shlibpath_overrides_runpath=no
16276 else
16277 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16278 shlibpath_overrides_runpath=yes
16279 case $host_os in
16280 sco3.2v5*)
16281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16282 ;;
16283 esac
16284 fi
16285 sys_lib_dlsearch_path_spec='/usr/lib'
16286 ;;
16287
John Criswell47fdd832003-07-14 16:52:07 +000016288uts4*)
16289 version_type=linux
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 ;;
16294
John Criswell7a73b802003-06-30 21:59:07 +000016295*)
16296 dynamic_linker=no
16297 ;;
16298esac
Reid Spencera773bd52006-08-04 18:18:08 +000016299{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16300echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016301test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016302
Reid Spencera773bd52006-08-04 18:18:08 +000016303variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16304if test "$GCC" = yes; then
16305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16306fi
16307
16308{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16309echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016310hardcode_action=
16311if test -n "$hardcode_libdir_flag_spec" || \
16312 test -n "$runpath_var" || \
16313 test "X$hardcode_automatic" = "Xyes" ; then
16314
16315 # We can hardcode non-existant directories.
16316 if test "$hardcode_direct" != no &&
16317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16318 # have to relink, otherwise we might link with an installed library
16319 # when we should be linking with a yet-to-be-installed one
16320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16321 test "$hardcode_minus_L" != no; then
16322 # Linking always hardcodes the temporary library directory.
16323 hardcode_action=relink
16324 else
16325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16326 hardcode_action=immediate
16327 fi
16328else
16329 # We cannot hardcode anything, or else we can only hardcode existing
16330 # directories.
16331 hardcode_action=unsupported
16332fi
Reid Spencera773bd52006-08-04 18:18:08 +000016333{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16334echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016335
16336if test "$hardcode_action" = relink; then
16337 # Fast installation is not supported
16338 enable_fast_install=no
16339elif test "$shlibpath_overrides_runpath" = yes ||
16340 test "$enable_shared" = no; then
16341 # Fast installation is not necessary
16342 enable_fast_install=needless
16343fi
16344
16345striplib=
16346old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016347{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16348echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016349if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16351 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016352 { echo "$as_me:$LINENO: result: yes" >&5
16353echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016354else
16355# FIXME - insert some real tests, host_os isn't really good enough
16356 case $host_os in
16357 darwin*)
16358 if test -n "$STRIP" ; then
16359 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016360 { echo "$as_me:$LINENO: result: yes" >&5
16361echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016362 else
Reid Spencera773bd52006-08-04 18:18:08 +000016363 { echo "$as_me:$LINENO: result: no" >&5
16364echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016365fi
16366 ;;
16367 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016368 { echo "$as_me:$LINENO: result: no" >&5
16369echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016370 ;;
16371 esac
16372fi
16373
John Criswell7a73b802003-06-30 21:59:07 +000016374if test "x$enable_dlopen" != xyes; then
16375 enable_dlopen=unknown
16376 enable_dlopen_self=unknown
16377 enable_dlopen_self_static=unknown
16378else
16379 lt_cv_dlopen=no
16380 lt_cv_dlopen_libs=
16381
16382 case $host_os in
16383 beos*)
16384 lt_cv_dlopen="load_add_on"
16385 lt_cv_dlopen_libs=
16386 lt_cv_dlopen_self=yes
16387 ;;
16388
John Criswell47fdd832003-07-14 16:52:07 +000016389 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016390 lt_cv_dlopen="LoadLibrary"
16391 lt_cv_dlopen_libs=
16392 ;;
16393
John Criswell47fdd832003-07-14 16:52:07 +000016394 cygwin*)
16395 lt_cv_dlopen="dlopen"
16396 lt_cv_dlopen_libs=
16397 ;;
16398
16399 darwin*)
16400 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016401 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16402echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016403if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405else
16406 ac_check_lib_save_LIBS=$LIBS
16407LIBS="-ldl $LIBS"
16408cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016414
Reid Spencera773bd52006-08-04 18:18:08 +000016415/* Override any GCC internal prototype to avoid an error.
16416 Use char because int might match the return type of a GCC
16417 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016418#ifdef __cplusplus
16419extern "C"
16420#endif
John Criswell47fdd832003-07-14 16:52:07 +000016421char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016422int
16423main ()
16424{
Reid Spencera773bd52006-08-04 18:18:08 +000016425return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016426 ;
16427 return 0;
16428}
16429_ACEOF
16430rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016431if { (ac_try="$ac_link"
16432case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16435esac
16436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448esac
16449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_cv_lib_dl_dlopen=yes
16465else
16466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016467sed 's/^/| /' conftest.$ac_ext >&5
16468
Reid Spencera773bd52006-08-04 18:18:08 +000016469 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016470fi
Reid Spencera773bd52006-08-04 18:18:08 +000016471
16472rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016473 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016474LIBS=$ac_check_lib_save_LIBS
16475fi
Reid Spencera773bd52006-08-04 18:18:08 +000016476{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16477echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016478if test $ac_cv_lib_dl_dlopen = yes; then
16479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16480else
16481
16482 lt_cv_dlopen="dyld"
16483 lt_cv_dlopen_libs=
16484 lt_cv_dlopen_self=yes
16485
16486fi
16487
16488 ;;
16489
John Criswell7a73b802003-06-30 21:59:07 +000016490 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016491 { echo "$as_me:$LINENO: checking for shl_load" >&5
16492echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016493if test "${ac_cv_func_shl_load+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495else
16496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016502/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16504#define shl_load innocuous_shl_load
16505
John Criswell7a73b802003-06-30 21:59:07 +000016506/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016507 which can conflict with char shl_load (); below.
16508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016510
John Criswell0c38eaf2003-09-10 15:17:25 +000016511#ifdef __STDC__
16512# include <limits.h>
16513#else
16514# include <assert.h>
16515#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016516
16517#undef shl_load
16518
Reid Spencera773bd52006-08-04 18:18:08 +000016519/* Override any GCC internal prototype to avoid an error.
16520 Use char because int might match the return type of a GCC
16521 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016522#ifdef __cplusplus
16523extern "C"
16524#endif
John Criswell7a73b802003-06-30 21:59:07 +000016525char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016526/* The GNU C library defines this for functions which it implements
16527 to always fail with ENOSYS. Some functions are actually named
16528 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016529#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016530choke me
John Criswell7a73b802003-06-30 21:59:07 +000016531#endif
16532
John Criswell0c38eaf2003-09-10 15:17:25 +000016533int
16534main ()
16535{
Reid Spencera773bd52006-08-04 18:18:08 +000016536return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016537 ;
16538 return 0;
16539}
16540_ACEOF
16541rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016542if { (ac_try="$ac_link"
16543case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546esac
16547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016549 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016550 grep -v '^ *+' conftest.er1 >conftest.err
16551 rm -f conftest.er1
16552 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; } &&
16565 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569esac
16570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 ac_cv_func_shl_load=yes
16576else
16577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016578sed 's/^/| /' conftest.$ac_ext >&5
16579
Reid Spencera773bd52006-08-04 18:18:08 +000016580 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016581fi
Reid Spencera773bd52006-08-04 18:18:08 +000016582
16583rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016584 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016585fi
Reid Spencera773bd52006-08-04 18:18:08 +000016586{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16587echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016588if test $ac_cv_func_shl_load = yes; then
16589 lt_cv_dlopen="shl_load"
16590else
Reid Spencera773bd52006-08-04 18:18:08 +000016591 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16592echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016593if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595else
16596 ac_check_lib_save_LIBS=$LIBS
16597LIBS="-ldld $LIBS"
16598cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016599/* confdefs.h. */
16600_ACEOF
16601cat confdefs.h >>conftest.$ac_ext
16602cat >>conftest.$ac_ext <<_ACEOF
16603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016604
Reid Spencera773bd52006-08-04 18:18:08 +000016605/* Override any GCC internal prototype to avoid an error.
16606 Use char because int might match the return type of a GCC
16607 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016608#ifdef __cplusplus
16609extern "C"
16610#endif
John Criswell7a73b802003-06-30 21:59:07 +000016611char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016612int
16613main ()
16614{
Reid Spencera773bd52006-08-04 18:18:08 +000016615return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016616 ;
16617 return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016621if { (ac_try="$ac_link"
16622case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_lib_dld_shl_load=yes
16655else
16656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016657sed 's/^/| /' conftest.$ac_ext >&5
16658
Reid Spencera773bd52006-08-04 18:18:08 +000016659 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016660fi
Reid Spencera773bd52006-08-04 18:18:08 +000016661
16662rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016663 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016664LIBS=$ac_check_lib_save_LIBS
16665fi
Reid Spencera773bd52006-08-04 18:18:08 +000016666{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16667echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016668if test $ac_cv_lib_dld_shl_load = yes; then
16669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16670else
Reid Spencera773bd52006-08-04 18:18:08 +000016671 { echo "$as_me:$LINENO: checking for dlopen" >&5
16672echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016673if test "${ac_cv_func_dlopen+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
16676 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016677/* confdefs.h. */
16678_ACEOF
16679cat confdefs.h >>conftest.$ac_ext
16680cat >>conftest.$ac_ext <<_ACEOF
16681/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016682/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16684#define dlopen innocuous_dlopen
16685
John Criswell7a73b802003-06-30 21:59:07 +000016686/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016687 which can conflict with char dlopen (); below.
16688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16689 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016690
John Criswell0c38eaf2003-09-10 15:17:25 +000016691#ifdef __STDC__
16692# include <limits.h>
16693#else
16694# include <assert.h>
16695#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016696
16697#undef dlopen
16698
Reid Spencera773bd52006-08-04 18:18:08 +000016699/* Override any GCC internal prototype to avoid an error.
16700 Use char because int might match the return type of a GCC
16701 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016702#ifdef __cplusplus
16703extern "C"
16704#endif
John Criswell7a73b802003-06-30 21:59:07 +000016705char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016706/* The GNU C library defines this for functions which it implements
16707 to always fail with ENOSYS. Some functions are actually named
16708 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016709#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016710choke me
John Criswell7a73b802003-06-30 21:59:07 +000016711#endif
16712
John Criswell0c38eaf2003-09-10 15:17:25 +000016713int
16714main ()
16715{
Reid Spencera773bd52006-08-04 18:18:08 +000016716return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016717 ;
16718 return 0;
16719}
16720_ACEOF
16721rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016722if { (ac_try="$ac_link"
16723case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16739esac
16740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016746 { (case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749esac
16750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_func_dlopen=yes
16756else
16757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016758sed 's/^/| /' conftest.$ac_ext >&5
16759
Reid Spencera773bd52006-08-04 18:18:08 +000016760 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016761fi
Reid Spencera773bd52006-08-04 18:18:08 +000016762
16763rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016764 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016765fi
Reid Spencera773bd52006-08-04 18:18:08 +000016766{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16767echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016768if test $ac_cv_func_dlopen = yes; then
16769 lt_cv_dlopen="dlopen"
16770else
Reid Spencera773bd52006-08-04 18:18:08 +000016771 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16772echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016773if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775else
16776 ac_check_lib_save_LIBS=$LIBS
16777LIBS="-ldl $LIBS"
16778cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016779/* confdefs.h. */
16780_ACEOF
16781cat confdefs.h >>conftest.$ac_ext
16782cat >>conftest.$ac_ext <<_ACEOF
16783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016784
Reid Spencera773bd52006-08-04 18:18:08 +000016785/* Override any GCC internal prototype to avoid an error.
16786 Use char because int might match the return type of a GCC
16787 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016788#ifdef __cplusplus
16789extern "C"
16790#endif
John Criswell7a73b802003-06-30 21:59:07 +000016791char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016792int
16793main ()
16794{
Reid Spencera773bd52006-08-04 18:18:08 +000016795return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016801if { (ac_try="$ac_link"
16802case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_lib_dl_dlopen=yes
16835else
16836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016837sed 's/^/| /' conftest.$ac_ext >&5
16838
Reid Spencera773bd52006-08-04 18:18:08 +000016839 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016840fi
Reid Spencera773bd52006-08-04 18:18:08 +000016841
16842rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016843 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016844LIBS=$ac_check_lib_save_LIBS
16845fi
Reid Spencera773bd52006-08-04 18:18:08 +000016846{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16847echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016848if test $ac_cv_lib_dl_dlopen = yes; then
16849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16850else
Reid Spencera773bd52006-08-04 18:18:08 +000016851 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16852echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016853if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855else
16856 ac_check_lib_save_LIBS=$LIBS
16857LIBS="-lsvld $LIBS"
16858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016864
Reid Spencera773bd52006-08-04 18:18:08 +000016865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016868#ifdef __cplusplus
16869extern "C"
16870#endif
John Criswell7a73b802003-06-30 21:59:07 +000016871char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016872int
16873main ()
16874{
Reid Spencera773bd52006-08-04 18:18:08 +000016875return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016876 ;
16877 return 0;
16878}
16879_ACEOF
16880rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016881if { (ac_try="$ac_link"
16882case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885esac
16886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898esac
16899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908esac
16909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_cv_lib_svld_dlopen=yes
16915else
16916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016917sed 's/^/| /' conftest.$ac_ext >&5
16918
Reid Spencera773bd52006-08-04 18:18:08 +000016919 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016920fi
Reid Spencera773bd52006-08-04 18:18:08 +000016921
16922rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016923 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016924LIBS=$ac_check_lib_save_LIBS
16925fi
Reid Spencera773bd52006-08-04 18:18:08 +000016926{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16927echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016928if test $ac_cv_lib_svld_dlopen = yes; then
16929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16930else
Reid Spencera773bd52006-08-04 18:18:08 +000016931 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16932echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016933if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 ac_check_lib_save_LIBS=$LIBS
16937LIBS="-ldld $LIBS"
16938cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016944
Reid Spencera773bd52006-08-04 18:18:08 +000016945/* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016948#ifdef __cplusplus
16949extern "C"
16950#endif
John Criswell7a73b802003-06-30 21:59:07 +000016951char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016952int
16953main ()
16954{
Reid Spencera773bd52006-08-04 18:18:08 +000016955return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016956 ;
16957 return 0;
16958}
16959_ACEOF
16960rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016961if { (ac_try="$ac_link"
16962case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965esac
16966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975 { (case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16978esac
16979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_lib_dld_dld_link=yes
16995else
16996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016997sed 's/^/| /' conftest.$ac_ext >&5
16998
Reid Spencera773bd52006-08-04 18:18:08 +000016999 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017000fi
Reid Spencera773bd52006-08-04 18:18:08 +000017001
17002rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017003 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017004LIBS=$ac_check_lib_save_LIBS
17005fi
Reid Spencera773bd52006-08-04 18:18:08 +000017006{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17007echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017008if test $ac_cv_lib_dld_dld_link = yes; then
17009 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17010fi
17011
17012
17013fi
17014
17015
17016fi
17017
17018
17019fi
17020
17021
17022fi
17023
17024
17025fi
17026
17027 ;;
17028 esac
17029
17030 if test "x$lt_cv_dlopen" != xno; then
17031 enable_dlopen=yes
17032 else
17033 enable_dlopen=no
17034 fi
17035
17036 case $lt_cv_dlopen in
17037 dlopen)
17038 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017039 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017040
17041 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017043
17044 save_LIBS="$LIBS"
17045 LIBS="$lt_cv_dlopen_libs $LIBS"
17046
Reid Spencera773bd52006-08-04 18:18:08 +000017047 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17048echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017049if test "${lt_cv_dlopen_self+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 if test "$cross_compiling" = yes; then :
17053 lt_cv_dlopen_self=cross
17054else
John Criswell47fdd832003-07-14 16:52:07 +000017055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017056 lt_status=$lt_dlunknown
17057 cat > conftest.$ac_ext <<EOF
David Greenea696d242007-06-28 19:36:08 +000017058#line 17055 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017059#include "confdefs.h"
17060
17061#if HAVE_DLFCN_H
17062#include <dlfcn.h>
17063#endif
17064
17065#include <stdio.h>
17066
17067#ifdef RTLD_GLOBAL
17068# define LT_DLGLOBAL RTLD_GLOBAL
17069#else
17070# ifdef DL_GLOBAL
17071# define LT_DLGLOBAL DL_GLOBAL
17072# else
17073# define LT_DLGLOBAL 0
17074# endif
17075#endif
17076
17077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17078 find out it does not work in some platform. */
17079#ifndef LT_DLLAZY_OR_NOW
17080# ifdef RTLD_LAZY
17081# define LT_DLLAZY_OR_NOW RTLD_LAZY
17082# else
17083# ifdef DL_LAZY
17084# define LT_DLLAZY_OR_NOW DL_LAZY
17085# else
17086# ifdef RTLD_NOW
17087# define LT_DLLAZY_OR_NOW RTLD_NOW
17088# else
17089# ifdef DL_NOW
17090# define LT_DLLAZY_OR_NOW DL_NOW
17091# else
17092# define LT_DLLAZY_OR_NOW 0
17093# endif
17094# endif
17095# endif
17096# endif
17097#endif
17098
17099#ifdef __cplusplus
17100extern "C" void exit (int);
17101#endif
17102
17103void fnord() { int i=42;}
17104int main ()
17105{
17106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17107 int status = $lt_dlunknown;
17108
17109 if (self)
17110 {
17111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17113 /* dlclose (self); */
17114 }
Reid Spencera773bd52006-08-04 18:18:08 +000017115 else
17116 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017117
17118 exit (status);
17119}
17120EOF
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017126 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017127 lt_status=$?
17128 case x$lt_status in
17129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017131 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017132 esac
17133 else :
17134 # compilation failed
17135 lt_cv_dlopen_self=no
17136 fi
17137fi
17138rm -fr conftest*
17139
17140
17141fi
Reid Spencera773bd52006-08-04 18:18:08 +000017142{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17143echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017144
17145 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17147 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17148echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017149if test "${lt_cv_dlopen_self_static+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151else
17152 if test "$cross_compiling" = yes; then :
17153 lt_cv_dlopen_self_static=cross
17154else
John Criswell47fdd832003-07-14 16:52:07 +000017155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017156 lt_status=$lt_dlunknown
17157 cat > conftest.$ac_ext <<EOF
David Greenea696d242007-06-28 19:36:08 +000017158#line 17155 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017159#include "confdefs.h"
17160
17161#if HAVE_DLFCN_H
17162#include <dlfcn.h>
17163#endif
17164
17165#include <stdio.h>
17166
17167#ifdef RTLD_GLOBAL
17168# define LT_DLGLOBAL RTLD_GLOBAL
17169#else
17170# ifdef DL_GLOBAL
17171# define LT_DLGLOBAL DL_GLOBAL
17172# else
17173# define LT_DLGLOBAL 0
17174# endif
17175#endif
17176
17177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17178 find out it does not work in some platform. */
17179#ifndef LT_DLLAZY_OR_NOW
17180# ifdef RTLD_LAZY
17181# define LT_DLLAZY_OR_NOW RTLD_LAZY
17182# else
17183# ifdef DL_LAZY
17184# define LT_DLLAZY_OR_NOW DL_LAZY
17185# else
17186# ifdef RTLD_NOW
17187# define LT_DLLAZY_OR_NOW RTLD_NOW
17188# else
17189# ifdef DL_NOW
17190# define LT_DLLAZY_OR_NOW DL_NOW
17191# else
17192# define LT_DLLAZY_OR_NOW 0
17193# endif
17194# endif
17195# endif
17196# endif
17197#endif
17198
17199#ifdef __cplusplus
17200extern "C" void exit (int);
17201#endif
17202
17203void fnord() { int i=42;}
17204int main ()
17205{
17206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17207 int status = $lt_dlunknown;
17208
17209 if (self)
17210 {
17211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17213 /* dlclose (self); */
17214 }
Reid Spencera773bd52006-08-04 18:18:08 +000017215 else
17216 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017217
17218 exit (status);
17219}
17220EOF
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017226 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017227 lt_status=$?
17228 case x$lt_status in
17229 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17230 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017231 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017232 esac
17233 else :
17234 # compilation failed
17235 lt_cv_dlopen_self_static=no
17236 fi
17237fi
17238rm -fr conftest*
17239
17240
17241fi
Reid Spencera773bd52006-08-04 18:18:08 +000017242{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17243echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017244 fi
17245
17246 CPPFLAGS="$save_CPPFLAGS"
17247 LDFLAGS="$save_LDFLAGS"
17248 LIBS="$save_LIBS"
17249 ;;
17250 esac
17251
17252 case $lt_cv_dlopen_self in
17253 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17254 *) enable_dlopen_self=unknown ;;
17255 esac
17256
17257 case $lt_cv_dlopen_self_static in
17258 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17259 *) enable_dlopen_self_static=unknown ;;
17260 esac
17261fi
17262
17263
Reid Spencera773bd52006-08-04 18:18:08 +000017264# Report which library types will actually be built
17265{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17266echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17267{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17268echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017269
Reid Spencera773bd52006-08-04 18:18:08 +000017270{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17271echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017272test "$can_build_shared" = "no" && enable_shared=no
17273
17274# On AIX, shared libraries and static libraries use the same namespace, and
17275# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017276case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017277aix3*)
17278 test "$enable_shared" = yes && enable_static=no
17279 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017280 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017281 postinstall_cmds='$RANLIB $lib'
17282 fi
17283 ;;
17284
Reid Spencer2706f8c2004-09-19 23:53:36 +000017285aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017286 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17287 test "$enable_shared" = yes && enable_static=no
17288 fi
John Criswell7a73b802003-06-30 21:59:07 +000017289 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017290esac
Reid Spencera773bd52006-08-04 18:18:08 +000017291{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17292echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017293
Reid Spencera773bd52006-08-04 18:18:08 +000017294{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17295echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017296# Make sure either enable_shared or enable_static is yes.
17297test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017298{ echo "$as_me:$LINENO: result: $enable_static" >&5
17299echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017300
17301# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017302# libtool distribution, otherwise you forgot to ship ltmain.sh
17303# with your package, and you will get complaints that there are
17304# no rules to generate ltmain.sh.
17305if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017306 # See if we are running on zsh, and set the options which allow our commands through
17307 # without removal of \ escapes.
17308 if test -n "${ZSH_VERSION+set}" ; then
17309 setopt NO_GLOB_SUBST
17310 fi
John Criswell7a73b802003-06-30 21:59:07 +000017311 # Now quote all the things that may contain metacharacters while being
17312 # careful not to overquote the AC_SUBSTed values. We take copies of the
17313 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017314 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 +000017315 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017316 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17317 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17318 deplibs_check_method reload_flag reload_cmds need_locks \
17319 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17320 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017321 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017322 old_postinstall_cmds old_postuninstall_cmds \
17323 compiler \
17324 CC \
17325 LD \
17326 lt_prog_compiler_wl \
17327 lt_prog_compiler_pic \
17328 lt_prog_compiler_static \
17329 lt_prog_compiler_no_builtin_flag \
17330 export_dynamic_flag_spec \
17331 thread_safe_flag_spec \
17332 whole_archive_flag_spec \
17333 enable_shared_with_static_runtimes \
17334 old_archive_cmds \
17335 old_archive_from_new_cmds \
17336 predep_objects \
17337 postdep_objects \
17338 predeps \
17339 postdeps \
17340 compiler_lib_search_path \
17341 archive_cmds \
17342 archive_expsym_cmds \
17343 postinstall_cmds \
17344 postuninstall_cmds \
17345 old_archive_from_expsyms_cmds \
17346 allow_undefined_flag \
17347 no_undefined_flag \
17348 export_symbols_cmds \
17349 hardcode_libdir_flag_spec \
17350 hardcode_libdir_flag_spec_ld \
17351 hardcode_libdir_separator \
17352 hardcode_automatic \
17353 module_cmds \
17354 module_expsym_cmds \
17355 lt_cv_prog_compiler_c_o \
17356 exclude_expsyms \
17357 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017358
17359 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017360 old_archive_cmds | \
17361 old_archive_from_new_cmds | \
17362 archive_cmds | \
17363 archive_expsym_cmds | \
17364 module_cmds | \
17365 module_expsym_cmds | \
17366 old_archive_from_expsyms_cmds | \
17367 export_symbols_cmds | \
17368 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017369 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017370 old_postinstall_cmds | old_postuninstall_cmds | \
17371 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017372 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017373 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 +000017374 ;;
17375 *)
17376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17377 ;;
17378 esac
17379 done
17380
John Criswell47fdd832003-07-14 16:52:07 +000017381 case $lt_echo in
17382 *'\$0 --fallback-echo"')
17383 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17384 ;;
17385 esac
17386
17387cfgfile="${ofile}T"
17388 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17389 $rm -f "$cfgfile"
17390 { echo "$as_me:$LINENO: creating $ofile" >&5
17391echo "$as_me: creating $ofile" >&6;}
17392
17393 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017394#! $SHELL
17395
John Criswell47fdd832003-07-14 16:52:07 +000017396# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017397# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17398# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17399#
John Criswell47fdd832003-07-14 16:52:07 +000017400# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17401# Free Software Foundation, Inc.
17402#
17403# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017404# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17405#
17406# This program is free software; you can redistribute it and/or modify
17407# it under the terms of the GNU General Public License as published by
17408# the Free Software Foundation; either version 2 of the License, or
17409# (at your option) any later version.
17410#
17411# This program is distributed in the hope that it will be useful, but
17412# WITHOUT ANY WARRANTY; without even the implied warranty of
17413# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17414# General Public License for more details.
17415#
17416# You should have received a copy of the GNU General Public License
17417# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017418# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017419#
17420# As a special exception to the GNU General Public License, if you
17421# distribute this file as part of a program that contains a
17422# configuration script generated by Autoconf, you may include it under
17423# the same distribution terms that you use for the rest of that program.
17424
John Criswell47fdd832003-07-14 16:52:07 +000017425# A sed program that does not truncate output.
17426SED=$lt_SED
17427
John Criswell7a73b802003-06-30 21:59:07 +000017428# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017429Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017430
17431# The HP-UX ksh and POSIX shell print the target directory to stdout
17432# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017434
John Criswell47fdd832003-07-14 16:52:07 +000017435# The names of the tagged configurations supported by this script.
17436available_tags=
17437
John Criswell7a73b802003-06-30 21:59:07 +000017438# ### BEGIN LIBTOOL CONFIG
17439
17440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17441
17442# Shell to use when invoking shell scripts.
17443SHELL=$lt_SHELL
17444
17445# Whether or not to build shared libraries.
17446build_libtool_libs=$enable_shared
17447
17448# Whether or not to build static libraries.
17449build_old_libs=$enable_static
17450
17451# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017452build_libtool_need_lc=$archive_cmds_need_lc
17453
17454# Whether or not to disallow shared libs when runtime libs are static
17455allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017456
17457# Whether or not to optimize for fast installation.
17458fast_install=$enable_fast_install
17459
17460# The host system.
17461host_alias=$host_alias
17462host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017463host_os=$host_os
17464
17465# The build system.
17466build_alias=$build_alias
17467build=$build
17468build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017469
17470# An echo program that does not interpret backslashes.
17471echo=$lt_echo
17472
17473# The archiver.
17474AR=$lt_AR
17475AR_FLAGS=$lt_AR_FLAGS
17476
John Criswell47fdd832003-07-14 16:52:07 +000017477# A C compiler.
17478LTCC=$lt_LTCC
17479
Reid Spencera773bd52006-08-04 18:18:08 +000017480# LTCC compiler flags.
17481LTCFLAGS=$lt_LTCFLAGS
17482
John Criswell47fdd832003-07-14 16:52:07 +000017483# A language-specific compiler.
17484CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017485
17486# Is the compiler the GNU C compiler?
17487with_gcc=$GCC
17488
John Criswell47fdd832003-07-14 16:52:07 +000017489# An ERE matcher.
17490EGREP=$lt_EGREP
17491
John Criswell7a73b802003-06-30 21:59:07 +000017492# The linker used to build libraries.
17493LD=$lt_LD
17494
17495# Whether we need hard or soft links.
17496LN_S=$lt_LN_S
17497
17498# A BSD-compatible nm program.
17499NM=$lt_NM
17500
17501# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017502STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017503
17504# Used to examine libraries when file_magic_cmd begins "file"
17505MAGIC_CMD=$MAGIC_CMD
17506
17507# Used on cygwin: DLL creation program.
17508DLLTOOL="$DLLTOOL"
17509
17510# Used on cygwin: object dumper.
17511OBJDUMP="$OBJDUMP"
17512
17513# Used on cygwin: assembler.
17514AS="$AS"
17515
17516# The name of the directory that contains temporary libtool files.
17517objdir=$objdir
17518
17519# How to create reloadable object files.
17520reload_flag=$lt_reload_flag
17521reload_cmds=$lt_reload_cmds
17522
17523# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017524wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017525
17526# Object file suffix (normally "o").
17527objext="$ac_objext"
17528
17529# Old archive suffix (normally "a").
17530libext="$libext"
17531
John Criswell47fdd832003-07-14 16:52:07 +000017532# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017533shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017534
John Criswell7a73b802003-06-30 21:59:07 +000017535# Executable file suffix (normally "").
17536exeext="$exeext"
17537
17538# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017539pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017540pic_mode=$pic_mode
17541
John Criswell47fdd832003-07-14 16:52:07 +000017542# What is the maximum length of a command?
17543max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017544
John Criswell47fdd832003-07-14 16:52:07 +000017545# Does compiler simultaneously support -c and -o options?
17546compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017547
Reid Spencera773bd52006-08-04 18:18:08 +000017548# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017549need_locks=$lt_need_locks
17550
17551# Do we need the lib prefix for modules?
17552need_lib_prefix=$need_lib_prefix
17553
17554# Do we need a version for libraries?
17555need_version=$need_version
17556
17557# Whether dlopen is supported.
17558dlopen_support=$enable_dlopen
17559
17560# Whether dlopen of programs is supported.
17561dlopen_self=$enable_dlopen_self
17562
17563# Whether dlopen of statically linked programs is supported.
17564dlopen_self_static=$enable_dlopen_self_static
17565
17566# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017567link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017568
17569# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017571
17572# Compiler flag to allow reflexive dlopens.
17573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17574
17575# Compiler flag to generate shared objects directly from archives.
17576whole_archive_flag_spec=$lt_whole_archive_flag_spec
17577
17578# Compiler flag to generate thread-safe objects.
17579thread_safe_flag_spec=$lt_thread_safe_flag_spec
17580
17581# Library versioning type.
17582version_type=$version_type
17583
17584# Format of library name prefix.
17585libname_spec=$lt_libname_spec
17586
17587# List of archive names. First name is the real one, the rest are links.
17588# The last name is the one that the linker finds with -lNAME.
17589library_names_spec=$lt_library_names_spec
17590
17591# The coded name of the library, if different from the real name.
17592soname_spec=$lt_soname_spec
17593
17594# Commands used to build and install an old-style archive.
17595RANLIB=$lt_RANLIB
17596old_archive_cmds=$lt_old_archive_cmds
17597old_postinstall_cmds=$lt_old_postinstall_cmds
17598old_postuninstall_cmds=$lt_old_postuninstall_cmds
17599
17600# Create an old-style archive from a shared archive.
17601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17602
17603# Create a temporary old-style archive to link instead of a shared archive.
17604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17605
17606# Commands used to build and install a shared archive.
17607archive_cmds=$lt_archive_cmds
17608archive_expsym_cmds=$lt_archive_expsym_cmds
17609postinstall_cmds=$lt_postinstall_cmds
17610postuninstall_cmds=$lt_postuninstall_cmds
17611
John Criswell47fdd832003-07-14 16:52:07 +000017612# Commands used to build a loadable module (assumed same as above if empty)
17613module_cmds=$lt_module_cmds
17614module_expsym_cmds=$lt_module_expsym_cmds
17615
John Criswell7a73b802003-06-30 21:59:07 +000017616# Commands to strip libraries.
17617old_striplib=$lt_old_striplib
17618striplib=$lt_striplib
17619
John Criswell47fdd832003-07-14 16:52:07 +000017620# Dependencies to place before the objects being linked to create a
17621# shared library.
17622predep_objects=$lt_predep_objects
17623
17624# Dependencies to place after the objects being linked to create a
17625# shared library.
17626postdep_objects=$lt_postdep_objects
17627
17628# Dependencies to place before the objects being linked to create a
17629# shared library.
17630predeps=$lt_predeps
17631
17632# Dependencies to place after the objects being linked to create a
17633# shared library.
17634postdeps=$lt_postdeps
17635
17636# The library search path used internally by the compiler when linking
17637# a shared library.
17638compiler_lib_search_path=$lt_compiler_lib_search_path
17639
John Criswell7a73b802003-06-30 21:59:07 +000017640# Method to check whether dependent libraries are shared objects.
17641deplibs_check_method=$lt_deplibs_check_method
17642
17643# Command to use when deplibs_check_method == file_magic.
17644file_magic_cmd=$lt_file_magic_cmd
17645
17646# Flag that allows shared libraries with undefined symbols to be built.
17647allow_undefined_flag=$lt_allow_undefined_flag
17648
17649# Flag that forces no undefined symbols.
17650no_undefined_flag=$lt_no_undefined_flag
17651
17652# Commands used to finish a libtool library installation in a directory.
17653finish_cmds=$lt_finish_cmds
17654
17655# Same as above, but a single script fragment to be evaled but not shown.
17656finish_eval=$lt_finish_eval
17657
17658# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017659global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017660
17661# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017662global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017663
17664# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017665global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017666
17667# This is the shared library runtime path variable.
17668runpath_var=$runpath_var
17669
17670# This is the shared library path variable.
17671shlibpath_var=$shlibpath_var
17672
17673# Is shlibpath searched before the hard-coded library search path?
17674shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17675
17676# How to hardcode a shared library path into an executable.
17677hardcode_action=$hardcode_action
17678
17679# Whether we should hardcode library paths into libraries.
17680hardcode_into_libs=$hardcode_into_libs
17681
17682# Flag to hardcode \$libdir into a binary during linking.
17683# This must work even if \$libdir does not exist.
17684hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17685
John Criswell47fdd832003-07-14 16:52:07 +000017686# If ld is used when linking, flag to hardcode \$libdir into
17687# a binary during linking. This must work even if \$libdir does
17688# not exist.
17689hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17690
John Criswell7a73b802003-06-30 21:59:07 +000017691# Whether we need a single -rpath flag with a separated argument.
17692hardcode_libdir_separator=$lt_hardcode_libdir_separator
17693
John Criswell47fdd832003-07-14 16:52:07 +000017694# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017695# resulting binary.
17696hardcode_direct=$hardcode_direct
17697
17698# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17699# resulting binary.
17700hardcode_minus_L=$hardcode_minus_L
17701
17702# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17703# the resulting binary.
17704hardcode_shlibpath_var=$hardcode_shlibpath_var
17705
John Criswell47fdd832003-07-14 16:52:07 +000017706# Set to yes if building a shared library automatically hardcodes DIR into the library
17707# and all subsequent libraries and executables linked against it.
17708hardcode_automatic=$hardcode_automatic
17709
John Criswell7a73b802003-06-30 21:59:07 +000017710# Variables whose values should be saved in libtool wrapper scripts and
17711# restored at relink time.
17712variables_saved_for_relink="$variables_saved_for_relink"
17713
17714# Whether libtool must link a program against all its dependency libraries.
17715link_all_deplibs=$link_all_deplibs
17716
17717# Compile-time system search path for libraries
17718sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17719
17720# Run-time system search path for libraries
17721sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17722
17723# Fix the shell variable \$srcfile for the compiler.
17724fix_srcfile_path="$fix_srcfile_path"
17725
17726# Set to yes if exported symbols are required.
17727always_export_symbols=$always_export_symbols
17728
17729# The commands to list exported symbols.
17730export_symbols_cmds=$lt_export_symbols_cmds
17731
17732# The commands to extract the exported symbol list from a shared archive.
17733extract_expsyms_cmds=$lt_extract_expsyms_cmds
17734
17735# Symbols that should not be listed in the preloaded symbols.
17736exclude_expsyms=$lt_exclude_expsyms
17737
17738# Symbols that must always be exported.
17739include_expsyms=$lt_include_expsyms
17740
17741# ### END LIBTOOL CONFIG
17742
17743__EOF__
17744
John Criswell47fdd832003-07-14 16:52:07 +000017745
John Criswell7a73b802003-06-30 21:59:07 +000017746 case $host_os in
17747 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017748 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017749
17750# AIX sometimes has problems with the GCC collect2 program. For some
17751# reason, if we set the COLLECT_NAMES environment variable, the problems
17752# vanish in a puff of smoke.
17753if test "X${COLLECT_NAMES+set}" != Xset; then
17754 COLLECT_NAMES=
17755 export COLLECT_NAMES
17756fi
17757EOF
17758 ;;
17759 esac
17760
John Criswell7a73b802003-06-30 21:59:07 +000017761 # We use sed instead of cat because bash on DJGPP gets confused if
17762 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17763 # text mode, it properly converts lines to CR/LF. This bash problem
17764 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017765 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017766
John Criswell47fdd832003-07-14 16:52:07 +000017767 mv -f "$cfgfile" "$ofile" || \
17768 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017769 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017770
17771else
17772 # If there is no Makefile yet, we rely on a make rule to execute
17773 # `config.status --recheck' to rerun these tests and create the
17774 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17776 if test -f "$ltmain_in"; then
17777 test -f Makefile && make "$ltmain"
17778 fi
John Criswell7a73b802003-06-30 21:59:07 +000017779fi
John Criswell7a73b802003-06-30 21:59:07 +000017780
17781
John Criswell47fdd832003-07-14 16:52:07 +000017782ac_ext=c
17783ac_cpp='$CPP $CPPFLAGS'
17784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786ac_compiler_gnu=$ac_cv_c_compiler_gnu
17787
17788CC="$lt_save_CC"
17789
17790
Reid Spencera773bd52006-08-04 18:18:08 +000017791# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017792if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017793 withval=$with_tags; tagnames="$withval"
17794fi
17795
John Criswell47fdd832003-07-14 16:52:07 +000017796
17797if test -f "$ltmain" && test -n "$tagnames"; then
17798 if test ! -f "${ofile}"; then
17799 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17800echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17801 fi
17802
17803 if test -z "$LTCC"; then
17804 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17805 if test -z "$LTCC"; then
17806 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17807echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17808 else
17809 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17810echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17811 fi
17812 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017813 if test -z "$LTCFLAGS"; then
17814 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17815 fi
John Criswell47fdd832003-07-14 16:52:07 +000017816
17817 # Extract list of available tagged configurations in $ofile.
17818 # Note that this assumes the entire list is on one line.
17819 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17820
17821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17822 for tagname in $tagnames; do
17823 IFS="$lt_save_ifs"
17824 # Check whether tagname contains only valid characters
17825 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17826 "") ;;
17827 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17828echo "$as_me: error: invalid tag name: $tagname" >&2;}
17829 { (exit 1); exit 1; }; }
17830 ;;
17831 esac
17832
17833 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17834 then
17835 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17836echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17837 { (exit 1); exit 1; }; }
17838 fi
17839
17840 # Update the list of available tags.
17841 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017842 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017843
17844 case $tagname in
17845 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017846 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17847 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17848 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017849 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017850ac_cpp='$CXXCPP $CPPFLAGS'
17851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17854
17855
17856
17857
17858archive_cmds_need_lc_CXX=no
17859allow_undefined_flag_CXX=
17860always_export_symbols_CXX=no
17861archive_expsym_cmds_CXX=
17862export_dynamic_flag_spec_CXX=
17863hardcode_direct_CXX=no
17864hardcode_libdir_flag_spec_CXX=
17865hardcode_libdir_flag_spec_ld_CXX=
17866hardcode_libdir_separator_CXX=
17867hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017868hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017869hardcode_automatic_CXX=no
17870module_cmds_CXX=
17871module_expsym_cmds_CXX=
17872link_all_deplibs_CXX=unknown
17873old_archive_cmds_CXX=$old_archive_cmds
17874no_undefined_flag_CXX=
17875whole_archive_flag_spec_CXX=
17876enable_shared_with_static_runtimes_CXX=no
17877
17878# Dependencies to place before and after the object being linked:
17879predep_objects_CXX=
17880postdep_objects_CXX=
17881predeps_CXX=
17882postdeps_CXX=
17883compiler_lib_search_path_CXX=
17884
17885# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017886ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017887
17888# Object file extension for compiled C++ test sources.
17889objext=o
17890objext_CXX=$objext
17891
17892# Code to be used in simple compile tests
17893lt_simple_compile_test_code="int some_variable = 0;\n"
17894
17895# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017896lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017897
17898# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17899
17900# If no C compiler was specified, use CC.
17901LTCC=${LTCC-"$CC"}
17902
Reid Spencera773bd52006-08-04 18:18:08 +000017903# If no C compiler flags were specified, use CFLAGS.
17904LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17905
John Criswell47fdd832003-07-14 16:52:07 +000017906# Allow CC to be a program name with arguments.
17907compiler=$CC
17908
17909
Reid Spencera773bd52006-08-04 18:18:08 +000017910# save warnings/boilerplate of simple test code
17911ac_outfile=conftest.$ac_objext
17912printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17913eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17914_lt_compiler_boilerplate=`cat conftest.err`
17915$rm conftest*
17916
17917ac_outfile=conftest.$ac_objext
17918printf "$lt_simple_link_test_code" >conftest.$ac_ext
17919eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17920_lt_linker_boilerplate=`cat conftest.err`
17921$rm conftest*
17922
17923
John Criswell47fdd832003-07-14 16:52:07 +000017924# Allow CC to be a program name with arguments.
17925lt_save_CC=$CC
17926lt_save_LD=$LD
17927lt_save_GCC=$GCC
17928GCC=$GXX
17929lt_save_with_gnu_ld=$with_gnu_ld
17930lt_save_path_LD=$lt_cv_path_LD
17931if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17933else
Reid Spencera773bd52006-08-04 18:18:08 +000017934 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017935fi
17936if test -n "${lt_cv_path_LDCXX+set}"; then
17937 lt_cv_path_LD=$lt_cv_path_LDCXX
17938else
Reid Spencera773bd52006-08-04 18:18:08 +000017939 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017940fi
17941test -z "${LDCXX+set}" || LD=$LDCXX
17942CC=${CXX-"c++"}
17943compiler=$CC
17944compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017945for cc_temp in $compiler""; do
17946 case $cc_temp in
17947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17949 \-*) ;;
17950 *) break;;
17951 esac
17952done
17953cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17954
John Criswell47fdd832003-07-14 16:52:07 +000017955
17956# We don't want -fno-exception wen compiling C++ code, so set the
17957# no_builtin_flag separately
17958if test "$GXX" = yes; then
17959 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17960else
17961 lt_prog_compiler_no_builtin_flag_CXX=
17962fi
17963
17964if test "$GXX" = yes; then
17965 # Set up default GNU C++ configuration
17966
17967
Reid Spencera773bd52006-08-04 18:18:08 +000017968# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017969if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017971else
17972 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017973fi
17974
John Criswell47fdd832003-07-14 16:52:07 +000017975ac_prog=ld
17976if test "$GCC" = yes; then
17977 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017978 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17979echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017980 case $host in
17981 *-*-mingw*)
17982 # gcc leaves a trailing carriage return which upsets mingw
17983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17984 *)
17985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17986 esac
17987 case $ac_prog in
17988 # Accept absolute paths.
17989 [\\/]* | ?:[\\/]*)
17990 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017991 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017992 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17993 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17994 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17995 done
17996 test -z "$LD" && LD="$ac_prog"
17997 ;;
17998 "")
17999 # If it fails, then pretend we aren't using GCC.
18000 ac_prog=ld
18001 ;;
18002 *)
18003 # If it is relative, then search for the first ld in PATH.
18004 with_gnu_ld=unknown
18005 ;;
18006 esac
18007elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18009echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018010else
Reid Spencera773bd52006-08-04 18:18:08 +000018011 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18012echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018013fi
18014if test "${lt_cv_path_LD+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18016else
18017 if test -z "$LD"; then
18018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18019 for ac_dir in $PATH; do
18020 IFS="$lt_save_ifs"
18021 test -z "$ac_dir" && ac_dir=.
18022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18023 lt_cv_path_LD="$ac_dir/$ac_prog"
18024 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018025 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018026 # Break only if it was the GNU/non-GNU ld that we prefer.
18027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18028 *GNU* | *'with BFD'*)
18029 test "$with_gnu_ld" != no && break
18030 ;;
18031 *)
18032 test "$with_gnu_ld" != yes && break
18033 ;;
18034 esac
18035 fi
18036 done
18037 IFS="$lt_save_ifs"
18038else
18039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18040fi
18041fi
18042
18043LD="$lt_cv_path_LD"
18044if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018045 { echo "$as_me:$LINENO: result: $LD" >&5
18046echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018047else
Reid Spencera773bd52006-08-04 18:18:08 +000018048 { echo "$as_me:$LINENO: result: no" >&5
18049echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018050fi
18051test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18052echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18053 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018054{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18055echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018056if test "${lt_cv_prog_gnu_ld+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18058else
Reid Spencera773bd52006-08-04 18:18:08 +000018059 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018060case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018061*GNU* | *'with BFD'*)
18062 lt_cv_prog_gnu_ld=yes
18063 ;;
18064*)
18065 lt_cv_prog_gnu_ld=no
18066 ;;
18067esac
18068fi
Reid Spencera773bd52006-08-04 18:18:08 +000018069{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18070echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018071with_gnu_ld=$lt_cv_prog_gnu_ld
18072
18073
18074
18075 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18076 # archiving commands below assume that GNU ld is being used.
18077 if test "$with_gnu_ld" = yes; then
18078 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18079 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'
18080
18081 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18083
18084 # If archive_cmds runs LD, not CC, wlarc should be empty
18085 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18086 # investigate it a little bit more. (MM)
18087 wlarc='${wl}'
18088
18089 # ancient GNU ld didn't support --whole-archive et. al.
18090 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18091 grep 'no-whole-archive' > /dev/null; then
18092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18093 else
18094 whole_archive_flag_spec_CXX=
18095 fi
18096 else
18097 with_gnu_ld=no
18098 wlarc=
18099
18100 # A generic and very simple default shared library creation
18101 # command for GNU C++ for the case where it uses the native
18102 # linker, instead of GNU ld. If possible, this setting should
18103 # overridden to take advantage of the native linker features on
18104 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018105 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018106 fi
18107
18108 # Commands to make compiler produce verbose output that lists
18109 # what "hidden" libraries, object files and flags are used when
18110 # linking a shared library.
18111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18112
18113else
18114 GXX=no
18115 with_gnu_ld=no
18116 wlarc=
18117fi
18118
18119# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018120{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18121echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018122ld_shlibs_CXX=yes
18123case $host_os in
18124 aix3*)
18125 # FIXME: insert proper C++ library support
18126 ld_shlibs_CXX=no
18127 ;;
18128 aix4* | aix5*)
18129 if test "$host_cpu" = ia64; then
18130 # On IA64, the linker does run time linking by default, so we don't
18131 # have to do anything special.
18132 aix_use_runtimelinking=no
18133 exp_sym_flag='-Bexport'
18134 no_entry_flag=""
18135 else
18136 aix_use_runtimelinking=no
18137
18138 # Test if we are trying to use run time linking or normal
18139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18140 # need to do runtime linking.
18141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18142 for ld_flag in $LDFLAGS; do
18143 case $ld_flag in
18144 *-brtl*)
18145 aix_use_runtimelinking=yes
18146 break
18147 ;;
18148 esac
18149 done
Reid Spencera773bd52006-08-04 18:18:08 +000018150 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018151 esac
18152
18153 exp_sym_flag='-bexport'
18154 no_entry_flag='-bnoentry'
18155 fi
18156
18157 # When large executables or shared objects are built, AIX ld can
18158 # have problems creating the table of contents. If linking a library
18159 # or program results in "error TOC overflow" add -mminimal-toc to
18160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18162
18163 archive_cmds_CXX=''
18164 hardcode_direct_CXX=yes
18165 hardcode_libdir_separator_CXX=':'
18166 link_all_deplibs_CXX=yes
18167
18168 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018169 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018170 # We only want to do this on AIX 4.2 and lower, the check
18171 # below for broken collect2 doesn't work under 4.3+
18172 collect2name=`${CC} -print-prog-name=collect2`
18173 if test -f "$collect2name" && \
18174 strings "$collect2name" | grep resolve_lib_name >/dev/null
18175 then
18176 # We have reworked collect2
18177 hardcode_direct_CXX=yes
18178 else
18179 # We have old collect2
18180 hardcode_direct_CXX=unsupported
18181 # It fails to find uninstalled libraries when the uninstalled
18182 # path is not listed in the libpath. Setting hardcode_minus_L
18183 # to unsupported forces relinking
18184 hardcode_minus_L_CXX=yes
18185 hardcode_libdir_flag_spec_CXX='-L$libdir'
18186 hardcode_libdir_separator_CXX=
18187 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018188 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018189 esac
18190 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018191 if test "$aix_use_runtimelinking" = yes; then
18192 shared_flag="$shared_flag "'${wl}-G'
18193 fi
John Criswell47fdd832003-07-14 16:52:07 +000018194 else
18195 # not using gcc
18196 if test "$host_cpu" = ia64; then
18197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18198 # chokes on -Wl,-G. The following line is correct:
18199 shared_flag='-G'
18200 else
18201 if test "$aix_use_runtimelinking" = yes; then
18202 shared_flag='${wl}-G'
18203 else
18204 shared_flag='${wl}-bM:SRE'
18205 fi
18206 fi
18207 fi
18208
18209 # It seems that -bexpall does not export symbols beginning with
18210 # underscore (_), so it is better to generate a list of symbols to export.
18211 always_export_symbols_CXX=yes
18212 if test "$aix_use_runtimelinking" = yes; then
18213 # Warning - without using the other runtime loading flags (-brtl),
18214 # -berok will link without error, but may produce a broken library.
18215 allow_undefined_flag_CXX='-berok'
18216 # Determine the default libpath from the value encoded in an empty executable.
18217 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018223
John Criswell47fdd832003-07-14 16:52:07 +000018224int
18225main ()
18226{
18227
18228 ;
18229 return 0;
18230}
18231_ACEOF
18232rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018233if { (ac_try="$ac_link"
18234case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18237esac
18238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250esac
18251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018257 { (case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260esac
18261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266
18267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18268}'`
18269# Check for a 64-bit object if we didn't find anything.
18270if 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; }
18271}'`; fi
18272else
18273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018274sed 's/^/| /' conftest.$ac_ext >&5
18275
Reid Spencera773bd52006-08-04 18:18:08 +000018276
John Criswell47fdd832003-07-14 16:52:07 +000018277fi
Reid Spencera773bd52006-08-04 18:18:08 +000018278
18279rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018280 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18282
18283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18284
Reid Spencera773bd52006-08-04 18:18:08 +000018285 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 +000018286 else
18287 if test "$host_cpu" = ia64; then
18288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18289 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018290 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 +000018291 else
18292 # Determine the default libpath from the value encoded in an empty executable.
18293 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018294/* confdefs.h. */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018299
John Criswell47fdd832003-07-14 16:52:07 +000018300int
18301main ()
18302{
18303
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018309if { (ac_try="$ac_link"
18310case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313esac
18314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18323 { (case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326esac
18327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } &&
18332 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018333 { (case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18336esac
18337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342
18343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18344}'`
18345# Check for a 64-bit object if we didn't find anything.
18346if 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; }
18347}'`; fi
18348else
18349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018350sed 's/^/| /' conftest.$ac_ext >&5
18351
Reid Spencera773bd52006-08-04 18:18:08 +000018352
John Criswell47fdd832003-07-14 16:52:07 +000018353fi
Reid Spencera773bd52006-08-04 18:18:08 +000018354
18355rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018356 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18358
18359 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18360 # Warning - without using the other run time loading flags,
18361 # -berok will link without error, but may produce a broken library.
18362 no_undefined_flag_CXX=' ${wl}-bernotok'
18363 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018364 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018365 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018366 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018367 # This is similar to how AIX traditionally builds its shared libraries.
18368 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 +000018369 fi
18370 fi
18371 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018372
18373 beos*)
18374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18375 allow_undefined_flag_CXX=unsupported
18376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18377 # support --undefined. This deserves some investigation. FIXME
18378 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18379 else
18380 ld_shlibs_CXX=no
18381 fi
18382 ;;
18383
John Criswell47fdd832003-07-14 16:52:07 +000018384 chorus*)
18385 case $cc_basename in
18386 *)
18387 # FIXME: insert proper C++ library support
18388 ld_shlibs_CXX=no
18389 ;;
18390 esac
18391 ;;
18392
18393 cygwin* | mingw* | pw32*)
18394 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18395 # as there is no search path for DLLs.
18396 hardcode_libdir_flag_spec_CXX='-L$libdir'
18397 allow_undefined_flag_CXX=unsupported
18398 always_export_symbols_CXX=no
18399 enable_shared_with_static_runtimes_CXX=yes
18400
18401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018402 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 +000018403 # If the export-symbols file already is a .def file (1st line
18404 # is EXPORTS), use it as is; otherwise, prepend...
18405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18406 cp $export_symbols $output_objdir/$soname.def;
18407 else
18408 echo EXPORTS > $output_objdir/$soname.def;
18409 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018410 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018411 $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 +000018412 else
18413 ld_shlibs_CXX=no
18414 fi
18415 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018416 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018417 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018418 rhapsody* | darwin1.[012])
18419 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18420 ;;
18421 *) # Darwin 1.3 on
18422 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18423 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18424 else
18425 case ${MACOSX_DEPLOYMENT_TARGET} in
18426 10.[012])
18427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18428 ;;
18429 10.*)
18430 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18431 ;;
18432 esac
18433 fi
18434 ;;
18435 esac
18436 archive_cmds_need_lc_CXX=no
18437 hardcode_direct_CXX=no
18438 hardcode_automatic_CXX=yes
18439 hardcode_shlibpath_var_CXX=unsupported
18440 whole_archive_flag_spec_CXX=''
18441 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018442
Reid Spencer2706f8c2004-09-19 23:53:36 +000018443 if test "$GXX" = yes ; then
18444 lt_int_apple_cc_single_mod=no
18445 output_verbose_link_cmd='echo'
18446 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18447 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018448 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018449 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018450 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 +000018451 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018452 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 +000018453 fi
18454 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018455 # 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 +000018456 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018457 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 +000018458 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018459 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 +000018460 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018461 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 +000018462 else
Reid Spencera773bd52006-08-04 18:18:08 +000018463 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018464 xlc*)
18465 output_verbose_link_cmd='echo'
18466 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'
18467 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018468 # 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 +000018469 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}'
18470 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 +000018471 ;;
18472 *)
18473 ld_shlibs_CXX=no
18474 ;;
18475 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018476 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018477 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018478
18479 dgux*)
18480 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018481 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018482 # FIXME: insert proper C++ library support
18483 ld_shlibs_CXX=no
18484 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018485 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018486 # Green Hills C++ Compiler
18487 # FIXME: insert proper C++ library support
18488 ld_shlibs_CXX=no
18489 ;;
18490 *)
18491 # FIXME: insert proper C++ library support
18492 ld_shlibs_CXX=no
18493 ;;
18494 esac
18495 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018496 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018497 # C++ shared libraries reported to be fairly broken before switch to ELF
18498 ld_shlibs_CXX=no
18499 ;;
18500 freebsd-elf*)
18501 archive_cmds_need_lc_CXX=no
18502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018503 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018504 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18505 # conventions
18506 ld_shlibs_CXX=yes
18507 ;;
18508 gnu*)
18509 ;;
18510 hpux9*)
18511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18512 hardcode_libdir_separator_CXX=:
18513 export_dynamic_flag_spec_CXX='${wl}-E'
18514 hardcode_direct_CXX=yes
18515 hardcode_minus_L_CXX=yes # Not in the search PATH,
18516 # but as the default
18517 # location of the library.
18518
18519 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018520 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018521 # FIXME: insert proper C++ library support
18522 ld_shlibs_CXX=no
18523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018524 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018525 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 +000018526 # Commands to make compiler produce verbose output that lists
18527 # what "hidden" libraries, object files and flags are used when
18528 # linking a shared library.
18529 #
18530 # There doesn't appear to be a way to prevent this compiler from
18531 # explicitly linking system object files so we need to strip them
18532 # from the output so that they don't get included in the library
18533 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018534 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 +000018535 ;;
18536 *)
18537 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018538 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 +000018539 else
18540 # FIXME: insert proper C++ library support
18541 ld_shlibs_CXX=no
18542 fi
18543 ;;
18544 esac
18545 ;;
18546 hpux10*|hpux11*)
18547 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18549 hardcode_libdir_separator_CXX=:
18550
18551 case $host_cpu in
18552 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018553 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018554 ;;
18555 *)
John Criswell47fdd832003-07-14 16:52:07 +000018556 export_dynamic_flag_spec_CXX='${wl}-E'
18557 ;;
18558 esac
18559 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018560 case $host_cpu in
18561 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018562 hardcode_direct_CXX=no
18563 hardcode_shlibpath_var_CXX=no
18564 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018565 *)
18566 hardcode_direct_CXX=yes
18567 hardcode_minus_L_CXX=yes # Not in the search PATH,
18568 # but as the default
18569 # location of the library.
18570 ;;
18571 esac
18572
18573 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018574 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018575 # FIXME: insert proper C++ library support
18576 ld_shlibs_CXX=no
18577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018578 aCC*)
18579 case $host_cpu in
18580 hppa*64*)
18581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18582 ;;
18583 ia64*)
18584 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 +000018585 ;;
18586 *)
18587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18588 ;;
18589 esac
18590 # Commands to make compiler produce verbose output that lists
18591 # what "hidden" libraries, object files and flags are used when
18592 # linking a shared library.
18593 #
18594 # There doesn't appear to be a way to prevent this compiler from
18595 # explicitly linking system object files so we need to strip them
18596 # from the output so that they don't get included in the library
18597 # dependencies.
18598 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'
18599 ;;
18600 *)
18601 if test "$GXX" = yes; then
18602 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018603 case $host_cpu in
18604 hppa*64*)
18605 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18606 ;;
18607 ia64*)
18608 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 +000018609 ;;
18610 *)
18611 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'
18612 ;;
18613 esac
18614 fi
18615 else
18616 # FIXME: insert proper C++ library support
18617 ld_shlibs_CXX=no
18618 fi
18619 ;;
18620 esac
18621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018622 interix3*)
18623 hardcode_direct_CXX=no
18624 hardcode_shlibpath_var_CXX=no
18625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18626 export_dynamic_flag_spec_CXX='${wl}-E'
18627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18628 # Instead, shared libraries are loaded at an image base (0x10000000 by
18629 # default) and relocated if they conflict, which is a slow very memory
18630 # consuming and fragmenting process. To avoid this, we pick a random,
18631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18632 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18633 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'
18634 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'
18635 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018636 irix5* | irix6*)
18637 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018638 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018639 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018640 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 +000018641
18642 # Archives containing C++ object files must be created using
18643 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18644 # necessary to make sure instantiated templates are included
18645 # in the archive.
18646 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18647 ;;
18648 *)
18649 if test "$GXX" = yes; then
18650 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018651 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 +000018652 else
18653 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'
18654 fi
18655 fi
18656 link_all_deplibs_CXX=yes
18657 ;;
18658 esac
18659 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18660 hardcode_libdir_separator_CXX=:
18661 ;;
18662 linux*)
18663 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018664 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018665 # Kuck and Associates, Inc. (KAI) C++ Compiler
18666
18667 # KCC will only create a shared library if the output file
18668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18669 # to its proper name (with version) after linking.
18670 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'
18671 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'
18672 # Commands to make compiler produce verbose output that lists
18673 # what "hidden" libraries, object files and flags are used when
18674 # linking a shared library.
18675 #
18676 # There doesn't appear to be a way to prevent this compiler from
18677 # explicitly linking system object files so we need to strip them
18678 # from the output so that they don't get included in the library
18679 # dependencies.
18680 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'
18681
18682 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18684
18685 # Archives containing C++ object files must be created using
18686 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18687 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018689 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018690 # Intel C++
18691 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018692 # version 8.0 and above of icpc choke on multiply defined symbols
18693 # if we add $predep_objects and $postdep_objects, however 7.1 and
18694 # earlier do not add the objects themselves.
18695 case `$CC -V 2>&1` in
18696 *"Version 7."*)
18697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18698 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'
18699 ;;
18700 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018701 tmp_idyn=
18702 case $host_cpu in
18703 ia64*) tmp_idyn=' -i_dynamic';;
18704 esac
18705 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18706 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 +000018707 ;;
18708 esac
John Criswell47fdd832003-07-14 16:52:07 +000018709 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18712 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18713 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018714 pgCC*)
18715 # Portland Group C++ compiler
18716 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18717 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'
18718
18719 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18721 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'
18722 ;;
18723 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018724 # Compaq C++
18725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18726 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'
18727
18728 runpath_var=LD_RUN_PATH
18729 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18730 hardcode_libdir_separator_CXX=:
18731
18732 # Commands to make compiler produce verbose output that lists
18733 # what "hidden" libraries, object files and flags are used when
18734 # linking a shared library.
18735 #
18736 # There doesn't appear to be a way to prevent this compiler from
18737 # explicitly linking system object files so we need to strip them
18738 # from the output so that they don't get included in the library
18739 # dependencies.
18740 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'
18741 ;;
18742 esac
18743 ;;
18744 lynxos*)
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18747 ;;
18748 m88k*)
18749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
18752 mvs*)
18753 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018754 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 ;;
18758 *)
18759 # FIXME: insert proper C++ library support
18760 ld_shlibs_CXX=no
18761 ;;
18762 esac
18763 ;;
18764 netbsd*)
18765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18767 wlarc=
18768 hardcode_libdir_flag_spec_CXX='-R$libdir'
18769 hardcode_direct_CXX=yes
18770 hardcode_shlibpath_var_CXX=no
18771 fi
18772 # Workaround some broken pre-1.5 toolchains
18773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18774 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018775 openbsd2*)
18776 # C++ shared libraries are fairly broken
18777 ld_shlibs_CXX=no
18778 ;;
18779 openbsd*)
18780 hardcode_direct_CXX=yes
18781 hardcode_shlibpath_var_CXX=no
18782 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18785 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18786 export_dynamic_flag_spec_CXX='${wl}-E'
18787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18788 fi
18789 output_verbose_link_cmd='echo'
18790 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018791 osf3*)
18792 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018793 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018794 # Kuck and Associates, Inc. (KAI) C++ Compiler
18795
18796 # KCC will only create a shared library if the output file
18797 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18798 # to its proper name (with version) after linking.
18799 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'
18800
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18802 hardcode_libdir_separator_CXX=:
18803
18804 # Archives containing C++ object files must be created using
18805 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18807
18808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018809 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018810 # Rational C++ 2.4.1
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18813 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018814 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018816 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 +000018817
18818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18819 hardcode_libdir_separator_CXX=:
18820
18821 # Commands to make compiler produce verbose output that lists
18822 # what "hidden" libraries, object files and flags are used when
18823 # linking a shared library.
18824 #
18825 # There doesn't appear to be a way to prevent this compiler from
18826 # explicitly linking system object files so we need to strip them
18827 # from the output so that they don't get included in the library
18828 # dependencies.
18829 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'
18830 ;;
18831 *)
18832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018834 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 +000018835
18836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18837 hardcode_libdir_separator_CXX=:
18838
18839 # Commands to make compiler produce verbose output that lists
18840 # what "hidden" libraries, object files and flags are used when
18841 # linking a shared library.
18842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18843
18844 else
18845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18847 fi
18848 ;;
18849 esac
18850 ;;
18851 osf4* | osf5*)
18852 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018853 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018854 # Kuck and Associates, Inc. (KAI) C++ Compiler
18855
18856 # KCC will only create a shared library if the output file
18857 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18858 # to its proper name (with version) after linking.
18859 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'
18860
18861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18862 hardcode_libdir_separator_CXX=:
18863
18864 # Archives containing C++ object files must be created using
18865 # the KAI C++ compiler.
18866 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018868 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018869 # Rational C++ 2.4.1
18870 # FIXME: insert proper C++ library support
18871 ld_shlibs_CXX=no
18872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018873 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018874 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018875 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 +000018876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18877 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018878 $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 +000018879 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018880
18881 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18882 hardcode_libdir_separator_CXX=:
18883
18884 # Commands to make compiler produce verbose output that lists
18885 # what "hidden" libraries, object files and flags are used when
18886 # linking a shared library.
18887 #
18888 # There doesn't appear to be a way to prevent this compiler from
18889 # explicitly linking system object files so we need to strip them
18890 # from the output so that they don't get included in the library
18891 # dependencies.
18892 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'
18893 ;;
18894 *)
18895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018897 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 +000018898
18899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900 hardcode_libdir_separator_CXX=:
18901
18902 # Commands to make compiler produce verbose output that lists
18903 # what "hidden" libraries, object files and flags are used when
18904 # linking a shared library.
18905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18906
18907 else
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18910 fi
18911 ;;
18912 esac
18913 ;;
18914 psos*)
18915 # FIXME: insert proper C++ library support
18916 ld_shlibs_CXX=no
18917 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018918 sunos4*)
18919 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018920 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018921 # Sun C++ 4.x
18922 # FIXME: insert proper C++ library support
18923 ld_shlibs_CXX=no
18924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018925 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018926 # Lucid
18927 # FIXME: insert proper C++ library support
18928 ld_shlibs_CXX=no
18929 ;;
18930 *)
18931 # FIXME: insert proper C++ library support
18932 ld_shlibs_CXX=no
18933 ;;
18934 esac
18935 ;;
18936 solaris*)
18937 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018938 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018939 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018940 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018941 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018942 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 +000018943 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 +000018944 $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 +000018945
18946 hardcode_libdir_flag_spec_CXX='-R$libdir'
18947 hardcode_shlibpath_var_CXX=no
18948 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018949 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018950 *)
18951 # The C++ compiler is used as linker so we must use $wl
18952 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018953 # linker. We must also pass each convience library through
18954 # to the system linker between allextract/defaultextract.
18955 # The C++ compiler will combine linker options so we
18956 # cannot just pass the convience library names through
18957 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018958 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018959 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 +000018960 ;;
18961 esac
18962 link_all_deplibs_CXX=yes
18963
Reid Spencera773bd52006-08-04 18:18:08 +000018964 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018965
18966 # Archives containing C++ object files must be created using
18967 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18968 # necessary to make sure instantiated templates are included
18969 # in the archive.
18970 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018972 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018973 # Green Hills C++ Compiler
18974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18975
18976 # The C++ compiler must be used to create the archive.
18977 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18978 ;;
18979 *)
18980 # GNU C++ compiler with Solaris linker
18981 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18982 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18983 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018984 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 +000018985 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18986 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18987
John Criswell47fdd832003-07-14 16:52:07 +000018988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018991 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018992 else
18993 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18994 # platform.
18995 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 +000018996 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18997 $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 +000018998
18999 # Commands to make compiler produce verbose output that lists
19000 # what "hidden" libraries, object files and flags are used when
19001 # linking a shared library.
19002 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19003 fi
19004
19005 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19006 fi
19007 ;;
19008 esac
19009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19011 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019012 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019013 hardcode_shlibpath_var_CXX=no
19014 runpath_var='LD_RUN_PATH'
19015
19016 case $cc_basename in
19017 CC*)
19018 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19019 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19020 ;;
19021 *)
19022 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19023 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19024 ;;
19025 esac
19026 ;;
19027 sysv5* | sco3.2v5* | sco5v6*)
19028 # Note: We can NOT use -z defs as we might desire, because we do not
19029 # link with -lc, and that would cause any symbols used from libc to
19030 # always be unresolved, which means just about no library would
19031 # ever link correctly. If we're not using GNU ld we use -z text
19032 # though, which does catch some bad symbols but isn't as heavy-handed
19033 # as -z defs.
19034 # For security reasons, it is highly recommended that you always
19035 # use absolute paths for naming shared libraries, and exclude the
19036 # DT_RUNPATH tag from executables and libraries. But doing so
19037 # requires that you compile everything twice, which is a pain.
19038 # So that behaviour is only enabled if SCOABSPATH is set to a
19039 # non-empty value in the environment. Most likely only useful for
19040 # creating official distributions of packages.
19041 # This is a hack until libtool officially supports absolute path
19042 # names for shared libraries.
19043 no_undefined_flag_CXX='${wl}-z,text'
19044 allow_undefined_flag_CXX='${wl}-z,nodefs'
19045 archive_cmds_need_lc_CXX=no
19046 hardcode_shlibpath_var_CXX=no
19047 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19048 hardcode_libdir_separator_CXX=':'
19049 link_all_deplibs_CXX=yes
19050 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19051 runpath_var='LD_RUN_PATH'
19052
19053 case $cc_basename in
19054 CC*)
19055 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19056 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19057 ;;
19058 *)
19059 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19060 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19061 ;;
19062 esac
John Criswell47fdd832003-07-14 16:52:07 +000019063 ;;
19064 tandem*)
19065 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019066 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019067 # NonStop-UX NCC 3.20
19068 # FIXME: insert proper C++ library support
19069 ld_shlibs_CXX=no
19070 ;;
19071 *)
19072 # FIXME: insert proper C++ library support
19073 ld_shlibs_CXX=no
19074 ;;
19075 esac
19076 ;;
19077 vxworks*)
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19080 ;;
19081 *)
19082 # FIXME: insert proper C++ library support
19083 ld_shlibs_CXX=no
19084 ;;
19085esac
Reid Spencera773bd52006-08-04 18:18:08 +000019086{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19087echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019088test "$ld_shlibs_CXX" = no && can_build_shared=no
19089
19090GCC_CXX="$GXX"
19091LD_CXX="$LD"
19092
John Criswell47fdd832003-07-14 16:52:07 +000019093
19094cat > conftest.$ac_ext <<EOF
19095class Foo
19096{
19097public:
19098 Foo (void) { a = 0; }
19099private:
19100 int a;
19101};
19102EOF
19103
19104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; then
19109 # Parse the compiler output and extract the necessary
19110 # objects, libraries and library flags.
19111
19112 # Sentinel used to keep track of whether or not we are before
19113 # the conftest object file.
19114 pre_test_object_deps_done=no
19115
19116 # The `*' in the case matches for architectures that use `case' in
19117 # $output_verbose_cmd can trigger glob expansion during the loop
19118 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019119 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019120
19121 for p in `eval $output_verbose_link_cmd`; do
19122 case $p in
19123
19124 -L* | -R* | -l*)
19125 # Some compilers place space between "-{L,R}" and the path.
19126 # Remove the space.
19127 if test $p = "-L" \
19128 || test $p = "-R"; then
19129 prev=$p
19130 continue
19131 else
19132 prev=
19133 fi
19134
19135 if test "$pre_test_object_deps_done" = no; then
19136 case $p in
19137 -L* | -R*)
19138 # Internal compiler library paths should come after those
19139 # provided the user. The postdeps already come after the
19140 # user supplied libs so there is no need to process them.
19141 if test -z "$compiler_lib_search_path_CXX"; then
19142 compiler_lib_search_path_CXX="${prev}${p}"
19143 else
19144 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19145 fi
19146 ;;
19147 # The "-l" case would never come before the object being
19148 # linked, so don't bother handling this case.
19149 esac
19150 else
19151 if test -z "$postdeps_CXX"; then
19152 postdeps_CXX="${prev}${p}"
19153 else
19154 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19155 fi
19156 fi
19157 ;;
19158
19159 *.$objext)
19160 # This assumes that the test object file only shows up
19161 # once in the compiler output.
19162 if test "$p" = "conftest.$objext"; then
19163 pre_test_object_deps_done=yes
19164 continue
19165 fi
19166
19167 if test "$pre_test_object_deps_done" = no; then
19168 if test -z "$predep_objects_CXX"; then
19169 predep_objects_CXX="$p"
19170 else
19171 predep_objects_CXX="$predep_objects_CXX $p"
19172 fi
19173 else
19174 if test -z "$postdep_objects_CXX"; then
19175 postdep_objects_CXX="$p"
19176 else
19177 postdep_objects_CXX="$postdep_objects_CXX $p"
19178 fi
19179 fi
19180 ;;
19181
19182 *) ;; # Ignore the rest.
19183
19184 esac
19185 done
19186
19187 # Clean up.
19188 rm -f a.out a.exe
19189else
19190 echo "libtool.m4: error: problem compiling CXX test program"
19191fi
19192
19193$rm -f confest.$objext
19194
Reid Spencera773bd52006-08-04 18:18:08 +000019195# PORTME: override above test on systems where it is broken
19196case $host_os in
19197interix3*)
19198 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19199 # hack all around it, let's just trust "g++" to DTRT.
19200 predep_objects_CXX=
19201 postdep_objects_CXX=
19202 postdeps_CXX=
19203 ;;
19204
19205solaris*)
19206 case $cc_basename in
19207 CC*)
19208 # Adding this requires a known-good setup of shared libraries for
19209 # Sun compiler versions before 5.6, else PIC objects from an old
19210 # archive will be linked into the output, leading to subtle bugs.
19211 postdeps_CXX='-lCstd -lCrun'
19212 ;;
19213 esac
19214 ;;
19215esac
19216
19217
John Criswell47fdd832003-07-14 16:52:07 +000019218case " $postdeps_CXX " in
19219*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19220esac
19221
19222lt_prog_compiler_wl_CXX=
19223lt_prog_compiler_pic_CXX=
19224lt_prog_compiler_static_CXX=
19225
Reid Spencera773bd52006-08-04 18:18:08 +000019226{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19227echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019228
19229 # C++ specific cases for pic, static, wl, etc.
19230 if test "$GXX" = yes; then
19231 lt_prog_compiler_wl_CXX='-Wl,'
19232 lt_prog_compiler_static_CXX='-static'
19233
19234 case $host_os in
19235 aix*)
19236 # All AIX code is PIC.
19237 if test "$host_cpu" = ia64; then
19238 # AIX 5 now supports IA64 processor
19239 lt_prog_compiler_static_CXX='-Bstatic'
19240 fi
19241 ;;
19242 amigaos*)
19243 # FIXME: we need at least 68020 code to build shared libraries, but
19244 # adding the `-m68020' flag to GCC prevents building anything better,
19245 # like `-m68040'.
19246 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19247 ;;
19248 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19249 # PIC is the default for these OSes.
19250 ;;
19251 mingw* | os2* | pw32*)
19252 # This hack is so that the source file can tell whether it is being
19253 # built for inclusion in a dll (and should export symbols for example).
19254 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19255 ;;
19256 darwin* | rhapsody*)
19257 # PIC is the default on this platform
19258 # Common symbols not allowed in MH_DYLIB files
19259 lt_prog_compiler_pic_CXX='-fno-common'
19260 ;;
19261 *djgpp*)
19262 # DJGPP does not support shared libraries at all
19263 lt_prog_compiler_pic_CXX=
19264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019265 interix3*)
19266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19267 # Instead, we relocate shared libraries at runtime.
19268 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019269 sysv4*MP*)
19270 if test -d /usr/nec; then
19271 lt_prog_compiler_pic_CXX=-Kconform_pic
19272 fi
19273 ;;
19274 hpux*)
19275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19276 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019277 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019278 hppa*64*|ia64*)
19279 ;;
19280 *)
19281 lt_prog_compiler_pic_CXX='-fPIC'
19282 ;;
19283 esac
19284 ;;
19285 *)
19286 lt_prog_compiler_pic_CXX='-fPIC'
19287 ;;
19288 esac
19289 else
19290 case $host_os in
19291 aix4* | aix5*)
19292 # All AIX code is PIC.
19293 if test "$host_cpu" = ia64; then
19294 # AIX 5 now supports IA64 processor
19295 lt_prog_compiler_static_CXX='-Bstatic'
19296 else
19297 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19298 fi
19299 ;;
19300 chorus*)
19301 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019302 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019303 # Green Hills C++ Compiler
19304 # _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"
19305 ;;
19306 esac
19307 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019308 darwin*)
19309 # PIC is the default on this platform
19310 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019311 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019312 xlc*)
19313 lt_prog_compiler_pic_CXX='-qnocommon'
19314 lt_prog_compiler_wl_CXX='-Wl,'
19315 ;;
19316 esac
19317 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019318 dgux*)
19319 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019320 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019321 lt_prog_compiler_pic_CXX='-KPIC'
19322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019323 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019324 # Green Hills C++ Compiler
19325 lt_prog_compiler_pic_CXX='-pic'
19326 ;;
19327 *)
19328 ;;
19329 esac
19330 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019331 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019332 # FreeBSD uses GNU C++
19333 ;;
19334 hpux9* | hpux10* | hpux11*)
19335 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019336 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019338 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019339 if test "$host_cpu" != ia64; then
19340 lt_prog_compiler_pic_CXX='+Z'
19341 fi
19342 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019343 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019344 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019345 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19346 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019347 hppa*64*|ia64*)
19348 # +Z the default
19349 ;;
19350 *)
19351 lt_prog_compiler_pic_CXX='+Z'
19352 ;;
19353 esac
19354 ;;
19355 *)
19356 ;;
19357 esac
19358 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019359 interix*)
19360 # This is c89, which is MS Visual C++ (no shared libs)
19361 # Anyone wants to do a port?
19362 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019363 irix5* | irix6* | nonstopux*)
19364 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019365 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019366 lt_prog_compiler_wl_CXX='-Wl,'
19367 lt_prog_compiler_static_CXX='-non_shared'
19368 # CC pic flag -KPIC is the default.
19369 ;;
19370 *)
19371 ;;
19372 esac
19373 ;;
19374 linux*)
19375 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019376 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019377 # KAI C++ Compiler
19378 lt_prog_compiler_wl_CXX='--backend -Wl,'
19379 lt_prog_compiler_pic_CXX='-fPIC'
19380 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019381 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019382 # Intel C++
19383 lt_prog_compiler_wl_CXX='-Wl,'
19384 lt_prog_compiler_pic_CXX='-KPIC'
19385 lt_prog_compiler_static_CXX='-static'
19386 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019387 pgCC*)
19388 # Portland Group C++ compiler.
19389 lt_prog_compiler_wl_CXX='-Wl,'
19390 lt_prog_compiler_pic_CXX='-fpic'
19391 lt_prog_compiler_static_CXX='-Bstatic'
19392 ;;
19393 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019394 # Compaq C++
19395 # Make sure the PIC flag is empty. It appears that all Alpha
19396 # Linux and Compaq Tru64 Unix objects are PIC.
19397 lt_prog_compiler_pic_CXX=
19398 lt_prog_compiler_static_CXX='-non_shared'
19399 ;;
19400 *)
19401 ;;
19402 esac
19403 ;;
19404 lynxos*)
19405 ;;
19406 m88k*)
19407 ;;
19408 mvs*)
19409 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019410 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019411 lt_prog_compiler_pic_CXX='-W c,exportall'
19412 ;;
19413 *)
19414 ;;
19415 esac
19416 ;;
19417 netbsd*)
19418 ;;
19419 osf3* | osf4* | osf5*)
19420 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019421 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019422 lt_prog_compiler_wl_CXX='--backend -Wl,'
19423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019424 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019425 # Rational C++ 2.4.1
19426 lt_prog_compiler_pic_CXX='-pic'
19427 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019428 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019429 # Digital/Compaq C++
19430 lt_prog_compiler_wl_CXX='-Wl,'
19431 # Make sure the PIC flag is empty. It appears that all Alpha
19432 # Linux and Compaq Tru64 Unix objects are PIC.
19433 lt_prog_compiler_pic_CXX=
19434 lt_prog_compiler_static_CXX='-non_shared'
19435 ;;
19436 *)
19437 ;;
19438 esac
19439 ;;
19440 psos*)
19441 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019442 solaris*)
19443 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019444 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019445 # Sun C++ 4.2, 5.x and Centerline C++
19446 lt_prog_compiler_pic_CXX='-KPIC'
19447 lt_prog_compiler_static_CXX='-Bstatic'
19448 lt_prog_compiler_wl_CXX='-Qoption ld '
19449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019450 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019451 # Green Hills C++ Compiler
19452 lt_prog_compiler_pic_CXX='-PIC'
19453 ;;
19454 *)
19455 ;;
19456 esac
19457 ;;
19458 sunos4*)
19459 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019460 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019461 # Sun C++ 4.x
19462 lt_prog_compiler_pic_CXX='-pic'
19463 lt_prog_compiler_static_CXX='-Bstatic'
19464 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019465 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019466 # Lucid
19467 lt_prog_compiler_pic_CXX='-pic'
19468 ;;
19469 *)
19470 ;;
19471 esac
19472 ;;
19473 tandem*)
19474 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019475 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019476 # NonStop-UX NCC 3.20
19477 lt_prog_compiler_pic_CXX='-KPIC'
19478 ;;
19479 *)
19480 ;;
19481 esac
19482 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19484 case $cc_basename in
19485 CC*)
19486 lt_prog_compiler_wl_CXX='-Wl,'
19487 lt_prog_compiler_pic_CXX='-KPIC'
19488 lt_prog_compiler_static_CXX='-Bstatic'
19489 ;;
19490 esac
John Criswell47fdd832003-07-14 16:52:07 +000019491 ;;
19492 vxworks*)
19493 ;;
19494 *)
19495 lt_prog_compiler_can_build_shared_CXX=no
19496 ;;
19497 esac
19498 fi
19499
Reid Spencera773bd52006-08-04 18:18:08 +000019500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19501echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019502
19503#
19504# Check to make sure the PIC flag actually works.
19505#
19506if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019507
Reid Spencera773bd52006-08-04 18:18:08 +000019508{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19509echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019510if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513 lt_prog_compiler_pic_works_CXX=no
19514 ac_outfile=conftest.$ac_objext
19515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19516 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19517 # Insert the option either (1) after the last *FLAGS variable, or
19518 # (2) before a word containing "conftest.", or (3) at the end.
19519 # Note that $ac_compile itself does not contain backslashes and begins
19520 # with a dollar sign (not a hyphen), so the echo should work correctly.
19521 # The option is referenced via a variable to avoid confusing sed.
19522 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19525 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000019526 (eval echo "\"\$as_me:19523: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019527 (eval "$lt_compile" 2>conftest.err)
19528 ac_status=$?
19529 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000019530 echo "$as_me:19527: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019531 if (exit $ac_status) && test -s "$ac_outfile"; then
19532 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019533 # So say no if there are warnings other than the usual output.
19534 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019537 lt_prog_compiler_pic_works_CXX=yes
19538 fi
19539 fi
19540 $rm conftest*
19541
19542fi
Reid Spencera773bd52006-08-04 18:18:08 +000019543{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19544echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019545
19546if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19547 case $lt_prog_compiler_pic_CXX in
19548 "" | " "*) ;;
19549 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19550 esac
19551else
19552 lt_prog_compiler_pic_CXX=
19553 lt_prog_compiler_can_build_shared_CXX=no
19554fi
19555
19556fi
Reid Spencera773bd52006-08-04 18:18:08 +000019557case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019558 # For platforms which do not support PIC, -DPIC is meaningless:
19559 *djgpp*)
19560 lt_prog_compiler_pic_CXX=
19561 ;;
19562 *)
19563 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19564 ;;
19565esac
19566
Reid Spencera773bd52006-08-04 18:18:08 +000019567#
19568# Check to make sure the static flag actually works.
19569#
19570wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19571{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19572echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19573if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
19576 lt_prog_compiler_static_works_CXX=no
19577 save_LDFLAGS="$LDFLAGS"
19578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19579 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19581 # The linker can only warn and ignore the option if not recognized
19582 # So say no if there are warnings
19583 if test -s conftest.err; then
19584 # Append any errors to the config.log.
19585 cat conftest.err 1>&5
19586 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19588 if diff conftest.exp conftest.er2 >/dev/null; then
19589 lt_prog_compiler_static_works_CXX=yes
19590 fi
19591 else
19592 lt_prog_compiler_static_works_CXX=yes
19593 fi
19594 fi
19595 $rm conftest*
19596 LDFLAGS="$save_LDFLAGS"
19597
19598fi
19599{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19600echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19601
19602if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19603 :
19604else
19605 lt_prog_compiler_static_CXX=
19606fi
19607
19608
19609{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19610echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019611if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613else
19614 lt_cv_prog_compiler_c_o_CXX=no
19615 $rm -r conftest 2>/dev/null
19616 mkdir conftest
19617 cd conftest
19618 mkdir out
19619 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19620
John Criswell47fdd832003-07-14 16:52:07 +000019621 lt_compiler_flag="-o out/conftest2.$ac_objext"
19622 # Insert the option either (1) after the last *FLAGS variable, or
19623 # (2) before a word containing "conftest.", or (3) at the end.
19624 # Note that $ac_compile itself does not contain backslashes and begins
19625 # with a dollar sign (not a hyphen), so the echo should work correctly.
19626 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19629 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000019630 (eval echo "\"\$as_me:19627: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019631 (eval "$lt_compile" 2>out/conftest.err)
19632 ac_status=$?
19633 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000019634 echo "$as_me:19631: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19636 then
19637 # The compiler can only warn and ignore the option if not recognized
19638 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019639 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019642 lt_cv_prog_compiler_c_o_CXX=yes
19643 fi
19644 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019645 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019646 $rm conftest*
19647 # SGI C++ compiler will create directory out/ii_files/ for
19648 # template instantiation
19649 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19650 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019651 cd ..
19652 rmdir conftest
19653 $rm conftest*
19654
19655fi
Reid Spencera773bd52006-08-04 18:18:08 +000019656{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19657echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019658
19659
19660hard_links="nottested"
19661if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19662 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019663 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19664echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019665 hard_links=yes
19666 $rm conftest*
19667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19668 touch conftest.a
19669 ln conftest.a conftest.b 2>&5 || hard_links=no
19670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019671 { echo "$as_me:$LINENO: result: $hard_links" >&5
19672echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019673 if test "$hard_links" = no; then
19674 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19675echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19676 need_locks=warn
19677 fi
19678else
19679 need_locks=no
19680fi
19681
Reid Spencera773bd52006-08-04 18:18:08 +000019682{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19683echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019684
19685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19686 case $host_os in
19687 aix4* | aix5*)
19688 # If we're using GNU nm, then we don't want the "-C" option.
19689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19690 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19691 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'
19692 else
19693 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'
19694 fi
19695 ;;
19696 pw32*)
19697 export_symbols_cmds_CXX="$ltdll_cmds"
19698 ;;
19699 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019700 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 +000019701 ;;
19702 *)
19703 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19704 ;;
19705 esac
19706
Reid Spencera773bd52006-08-04 18:18:08 +000019707{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19708echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019709test "$ld_shlibs_CXX" = no && can_build_shared=no
19710
John Criswell47fdd832003-07-14 16:52:07 +000019711#
19712# Do we need to explicitly link libc?
19713#
19714case "x$archive_cmds_need_lc_CXX" in
19715x|xyes)
19716 # Assume -lc should be added
19717 archive_cmds_need_lc_CXX=yes
19718
19719 if test "$enable_shared" = yes && test "$GCC" = yes; then
19720 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019721 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019722 # FIXME: we may have to deal with multi-command sequences.
19723 ;;
19724 '$CC '*)
19725 # Test whether the compiler implicitly links with -lc since on some
19726 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19727 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019728 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19729echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019730 $rm conftest*
19731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19732
19733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734 (eval $ac_compile) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } 2>conftest.err; then
19738 soname=conftest
19739 lib=conftest
19740 libobjs=conftest.$ac_objext
19741 deplibs=
19742 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019743 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019744 compiler_flags=-v
19745 linker_flags=-v
19746 verstring=
19747 output_objdir=.
19748 libname=conftest
19749 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19750 allow_undefined_flag_CXX=
19751 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19752 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }
19756 then
19757 archive_cmds_need_lc_CXX=no
19758 else
19759 archive_cmds_need_lc_CXX=yes
19760 fi
19761 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19762 else
19763 cat conftest.err 1>&5
19764 fi
19765 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019766 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19767echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019768 ;;
19769 esac
19770 fi
19771 ;;
19772esac
19773
Reid Spencera773bd52006-08-04 18:18:08 +000019774{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19775echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019776library_names_spec=
19777libname_spec='lib$name'
19778soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019779shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019780postinstall_cmds=
19781postuninstall_cmds=
19782finish_cmds=
19783finish_eval=
19784shlibpath_var=
19785shlibpath_overrides_runpath=unknown
19786version_type=none
19787dynamic_linker="$host_os ld.so"
19788sys_lib_dlsearch_path_spec="/lib /usr/lib"
19789if test "$GCC" = yes; then
19790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19791 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19792 # if the path contains ";" then we assume it to be the separator
19793 # otherwise default to the standard path separator (i.e. ":") - it is
19794 # assumed that no part of a normal pathname contains ";" but that should
19795 # okay in the real world where ";" in dirpaths is itself problematic.
19796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19797 else
19798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19799 fi
19800else
19801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19802fi
19803need_lib_prefix=unknown
19804hardcode_into_libs=no
19805
19806# when you set need_version to no, make sure it does not cause -set_version
19807# flags to be left without arguments
19808need_version=unknown
19809
19810case $host_os in
19811aix3*)
19812 version_type=linux
19813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19814 shlibpath_var=LIBPATH
19815
19816 # AIX 3 has no versioning support, so we append a major version to the name.
19817 soname_spec='${libname}${release}${shared_ext}$major'
19818 ;;
19819
19820aix4* | aix5*)
19821 version_type=linux
19822 need_lib_prefix=no
19823 need_version=no
19824 hardcode_into_libs=yes
19825 if test "$host_cpu" = ia64; then
19826 # AIX 5 supports IA64
19827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19828 shlibpath_var=LD_LIBRARY_PATH
19829 else
19830 # With GCC up to 2.95.x, collect2 would create an import file
19831 # for dependence libraries. The import file would start with
19832 # the line `#! .'. This would cause the generated library to
19833 # depend on `.', always an invalid library. This was fixed in
19834 # development snapshots of GCC prior to 3.0.
19835 case $host_os in
19836 aix4 | aix4.[01] | aix4.[01].*)
19837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19838 echo ' yes '
19839 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19840 :
19841 else
19842 can_build_shared=no
19843 fi
19844 ;;
19845 esac
19846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19847 # soname into executable. Probably we can add versioning support to
19848 # collect2, so additional links can be useful in future.
19849 if test "$aix_use_runtimelinking" = yes; then
19850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19851 # instead of lib<name>.a to let people know that these are not
19852 # typical AIX shared libraries.
19853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19854 else
19855 # We preserve .a as extension for shared libraries through AIX4.2
19856 # and later when we are not doing run time linking.
19857 library_names_spec='${libname}${release}.a $libname.a'
19858 soname_spec='${libname}${release}${shared_ext}$major'
19859 fi
19860 shlibpath_var=LIBPATH
19861 fi
19862 ;;
19863
19864amigaos*)
19865 library_names_spec='$libname.ixlibrary $libname.a'
19866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019867 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 +000019868 ;;
19869
19870beos*)
19871 library_names_spec='${libname}${shared_ext}'
19872 dynamic_linker="$host_os ld.so"
19873 shlibpath_var=LIBRARY_PATH
19874 ;;
19875
Reid Spencer2706f8c2004-09-19 23:53:36 +000019876bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019877 version_type=linux
19878 need_version=no
19879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19880 soname_spec='${libname}${release}${shared_ext}$major'
19881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19885 # the default ld.so.conf also contains /usr/contrib/lib and
19886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19887 # libtool to hard-code these into programs
19888 ;;
19889
19890cygwin* | mingw* | pw32*)
19891 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019892 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019893 need_version=no
19894 need_lib_prefix=no
19895
19896 case $GCC,$host_os in
19897 yes,cygwin* | yes,mingw* | yes,pw32*)
19898 library_names_spec='$libname.dll.a'
19899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019900 postinstall_cmds='base_file=`basename \${file}`~
19901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19902 dldir=$destdir/`dirname \$dlpath`~
19903 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019904 $install_prog $dir/$dlname \$dldir/$dlname~
19905 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19907 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019908 $rm \$dlpath'
19909 shlibpath_overrides_runpath=yes
19910
19911 case $host_os in
19912 cygwin*)
19913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19914 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 +000019915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019916 ;;
19917 mingw*)
19918 # MinGW DLLs use traditional 'lib' prefix
19919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19921 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19922 # It is most probably a Windows format PATH printed by
19923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19924 # path with ; separators, and with drive letters. We can handle the
19925 # drive letters (cygwin fileutils understands them), so leave them,
19926 # especially as we might pass files found there to a mingw objdump,
19927 # which wouldn't understand a cygwinified path. Ahh.
19928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19929 else
19930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19931 fi
19932 ;;
19933 pw32*)
19934 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019935 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 +000019936 ;;
19937 esac
19938 ;;
19939
19940 *)
19941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19942 ;;
19943 esac
19944 dynamic_linker='Win32 ld.exe'
19945 # FIXME: first we should search . and the directory the executable is in
19946 shlibpath_var=PATH
19947 ;;
19948
19949darwin* | rhapsody*)
19950 dynamic_linker="$host_os dyld"
19951 version_type=darwin
19952 need_lib_prefix=no
19953 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019954 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019955 soname_spec='${libname}${release}${major}$shared_ext'
19956 shlibpath_overrides_runpath=yes
19957 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019958 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019959 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019960 if test "$GCC" = yes; then
19961 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"`
19962 else
19963 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019964 fi
19965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19966 ;;
19967
19968dgux*)
19969 version_type=linux
19970 need_lib_prefix=no
19971 need_version=no
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19973 soname_spec='${libname}${release}${shared_ext}$major'
19974 shlibpath_var=LD_LIBRARY_PATH
19975 ;;
19976
19977freebsd1*)
19978 dynamic_linker=no
19979 ;;
19980
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981kfreebsd*-gnu)
19982 version_type=linux
19983 need_lib_prefix=no
19984 need_version=no
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19986 soname_spec='${libname}${release}${shared_ext}$major'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 shlibpath_overrides_runpath=no
19989 hardcode_into_libs=yes
19990 dynamic_linker='GNU ld.so'
19991 ;;
19992
Reid Spencera773bd52006-08-04 18:18:08 +000019993freebsd* | dragonfly*)
19994 # DragonFly does not have aout. When/if they implement a new
19995 # versioning mechanism, adjust this.
19996 if test -x /usr/bin/objformat; then
19997 objformat=`/usr/bin/objformat`
19998 else
19999 case $host_os in
20000 freebsd[123]*) objformat=aout ;;
20001 *) objformat=elf ;;
20002 esac
20003 fi
John Criswell47fdd832003-07-14 16:52:07 +000020004 version_type=freebsd-$objformat
20005 case $version_type in
20006 freebsd-elf*)
20007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20008 need_version=no
20009 need_lib_prefix=no
20010 ;;
20011 freebsd-*)
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20013 need_version=yes
20014 ;;
20015 esac
20016 shlibpath_var=LD_LIBRARY_PATH
20017 case $host_os in
20018 freebsd2*)
20019 shlibpath_overrides_runpath=yes
20020 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020021 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020022 shlibpath_overrides_runpath=yes
20023 hardcode_into_libs=yes
20024 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020027 shlibpath_overrides_runpath=no
20028 hardcode_into_libs=yes
20029 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020030 freebsd*) # from 4.6 on
20031 shlibpath_overrides_runpath=yes
20032 hardcode_into_libs=yes
20033 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020034 esac
20035 ;;
20036
20037gnu*)
20038 version_type=linux
20039 need_lib_prefix=no
20040 need_version=no
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20042 soname_spec='${libname}${release}${shared_ext}$major'
20043 shlibpath_var=LD_LIBRARY_PATH
20044 hardcode_into_libs=yes
20045 ;;
20046
20047hpux9* | hpux10* | hpux11*)
20048 # Give a soname corresponding to the major version so that dld.sl refuses to
20049 # link against other versions.
20050 version_type=sunos
20051 need_lib_prefix=no
20052 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020053 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020054 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020055 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020056 hardcode_into_libs=yes
20057 dynamic_linker="$host_os dld.so"
20058 shlibpath_var=LD_LIBRARY_PATH
20059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20061 soname_spec='${libname}${release}${shared_ext}$major'
20062 if test "X$HPUX_IA64_MODE" = X32; then
20063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20064 else
20065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20066 fi
20067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20068 ;;
20069 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020070 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020071 hardcode_into_libs=yes
20072 dynamic_linker="$host_os dld.sl"
20073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20076 soname_spec='${libname}${release}${shared_ext}$major'
20077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20079 ;;
20080 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020081 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020082 dynamic_linker="$host_os dld.sl"
20083 shlibpath_var=SHLIB_PATH
20084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20086 soname_spec='${libname}${release}${shared_ext}$major'
20087 ;;
20088 esac
20089 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20090 postinstall_cmds='chmod 555 $lib'
20091 ;;
20092
Reid Spencera773bd52006-08-04 18:18:08 +000020093interix3*)
20094 version_type=linux
20095 need_lib_prefix=no
20096 need_version=no
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20100 shlibpath_var=LD_LIBRARY_PATH
20101 shlibpath_overrides_runpath=no
20102 hardcode_into_libs=yes
20103 ;;
20104
John Criswell47fdd832003-07-14 16:52:07 +000020105irix5* | irix6* | nonstopux*)
20106 case $host_os in
20107 nonstopux*) version_type=nonstopux ;;
20108 *)
20109 if test "$lt_cv_prog_gnu_ld" = yes; then
20110 version_type=linux
20111 else
20112 version_type=irix
20113 fi ;;
20114 esac
20115 need_lib_prefix=no
20116 need_version=no
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20119 case $host_os in
20120 irix5* | nonstopux*)
20121 libsuff= shlibsuff=
20122 ;;
20123 *)
20124 case $LD in # libtool.m4 will add one of these switches to LD
20125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20126 libsuff= shlibsuff= libmagic=32-bit;;
20127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20128 libsuff=32 shlibsuff=N32 libmagic=N32;;
20129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20131 *) libsuff= shlibsuff= libmagic=never-match;;
20132 esac
20133 ;;
20134 esac
20135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20136 shlibpath_overrides_runpath=no
20137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20139 hardcode_into_libs=yes
20140 ;;
20141
20142# No shared lib support for Linux oldld, aout, or coff.
20143linux*oldld* | linux*aout* | linux*coff*)
20144 dynamic_linker=no
20145 ;;
20146
20147# This must be Linux ELF.
20148linux*)
20149 version_type=linux
20150 need_lib_prefix=no
20151 need_version=no
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20153 soname_spec='${libname}${release}${shared_ext}$major'
20154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20155 shlibpath_var=LD_LIBRARY_PATH
20156 shlibpath_overrides_runpath=no
20157 # This implies no fast_install, which is unacceptable.
20158 # Some rework will be needed to allow for fast_install
20159 # before this can be enabled.
20160 hardcode_into_libs=yes
20161
Reid Spencer2706f8c2004-09-19 23:53:36 +000020162 # Append ld.so.conf contents to the search path
20163 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020164 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 +000020165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20166 fi
20167
John Criswell47fdd832003-07-14 16:52:07 +000020168 # We used to test for /lib/ld.so.1 and disable shared libraries on
20169 # powerpc, because MkLinux only supported shared libraries with the
20170 # GNU dynamic linker. Since this was broken with cross compilers,
20171 # most powerpc-linux boxes support dynamic linking these days and
20172 # people can always --disable-shared, the test was removed, and we
20173 # assume the GNU/Linux dynamic linker is in use.
20174 dynamic_linker='GNU/Linux ld.so'
20175 ;;
20176
Reid Spencer2706f8c2004-09-19 23:53:36 +000020177knetbsd*-gnu)
20178 version_type=linux
20179 need_lib_prefix=no
20180 need_version=no
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 shlibpath_var=LD_LIBRARY_PATH
20184 shlibpath_overrides_runpath=no
20185 hardcode_into_libs=yes
20186 dynamic_linker='GNU ld.so'
20187 ;;
20188
John Criswell47fdd832003-07-14 16:52:07 +000020189netbsd*)
20190 version_type=sunos
20191 need_lib_prefix=no
20192 need_version=no
20193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20196 dynamic_linker='NetBSD (a.out) ld.so'
20197 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020199 soname_spec='${libname}${release}${shared_ext}$major'
20200 dynamic_linker='NetBSD ld.elf_so'
20201 fi
20202 shlibpath_var=LD_LIBRARY_PATH
20203 shlibpath_overrides_runpath=yes
20204 hardcode_into_libs=yes
20205 ;;
20206
20207newsos6)
20208 version_type=linux
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 shlibpath_var=LD_LIBRARY_PATH
20211 shlibpath_overrides_runpath=yes
20212 ;;
20213
Reid Spencer2706f8c2004-09-19 23:53:36 +000020214nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020215 version_type=linux
20216 need_lib_prefix=no
20217 need_version=no
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219 soname_spec='${libname}${release}${shared_ext}$major'
20220 shlibpath_var=LD_LIBRARY_PATH
20221 shlibpath_overrides_runpath=yes
20222 ;;
20223
20224openbsd*)
20225 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020226 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020227 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20229 case $host_os in
20230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20231 *) need_version=no ;;
20232 esac
John Criswell47fdd832003-07-14 16:52:07 +000020233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20237 case $host_os in
20238 openbsd2.[89] | openbsd2.[89].*)
20239 shlibpath_overrides_runpath=no
20240 ;;
20241 *)
20242 shlibpath_overrides_runpath=yes
20243 ;;
20244 esac
20245 else
20246 shlibpath_overrides_runpath=yes
20247 fi
20248 ;;
20249
20250os2*)
20251 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020252 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020253 need_lib_prefix=no
20254 library_names_spec='$libname${shared_ext} $libname.a'
20255 dynamic_linker='OS/2 ld.exe'
20256 shlibpath_var=LIBPATH
20257 ;;
20258
20259osf3* | osf4* | osf5*)
20260 version_type=osf
20261 need_lib_prefix=no
20262 need_version=no
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 shlibpath_var=LD_LIBRARY_PATH
20266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20268 ;;
20269
John Criswell47fdd832003-07-14 16:52:07 +000020270solaris*)
20271 version_type=linux
20272 need_lib_prefix=no
20273 need_version=no
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=yes
20278 hardcode_into_libs=yes
20279 # ldd complains unless libraries are executable
20280 postinstall_cmds='chmod +x $lib'
20281 ;;
20282
20283sunos4*)
20284 version_type=sunos
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 shlibpath_overrides_runpath=yes
20289 if test "$with_gnu_ld" = yes; then
20290 need_lib_prefix=no
20291 fi
20292 need_version=yes
20293 ;;
20294
Reid Spencera773bd52006-08-04 18:18:08 +000020295sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020296 version_type=linux
20297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20298 soname_spec='${libname}${release}${shared_ext}$major'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 case $host_vendor in
20301 sni)
20302 shlibpath_overrides_runpath=no
20303 need_lib_prefix=no
20304 export_dynamic_flag_spec='${wl}-Blargedynsym'
20305 runpath_var=LD_RUN_PATH
20306 ;;
20307 siemens)
20308 need_lib_prefix=no
20309 ;;
20310 motorola)
20311 need_lib_prefix=no
20312 need_version=no
20313 shlibpath_overrides_runpath=no
20314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20315 ;;
20316 esac
20317 ;;
20318
20319sysv4*MP*)
20320 if test -d /usr/nec ;then
20321 version_type=linux
20322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20323 soname_spec='$libname${shared_ext}.$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 fi
20326 ;;
20327
Reid Spencera773bd52006-08-04 18:18:08 +000020328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20329 version_type=freebsd-elf
20330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 hardcode_into_libs=yes
20336 if test "$with_gnu_ld" = yes; then
20337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20338 shlibpath_overrides_runpath=no
20339 else
20340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20341 shlibpath_overrides_runpath=yes
20342 case $host_os in
20343 sco3.2v5*)
20344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20345 ;;
20346 esac
20347 fi
20348 sys_lib_dlsearch_path_spec='/usr/lib'
20349 ;;
20350
John Criswell47fdd832003-07-14 16:52:07 +000020351uts4*)
20352 version_type=linux
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 ;;
20357
20358*)
20359 dynamic_linker=no
20360 ;;
20361esac
Reid Spencera773bd52006-08-04 18:18:08 +000020362{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20363echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020364test "$dynamic_linker" = no && can_build_shared=no
20365
Reid Spencera773bd52006-08-04 18:18:08 +000020366variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20367if test "$GCC" = yes; then
20368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20369fi
20370
20371{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20372echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020373hardcode_action_CXX=
20374if test -n "$hardcode_libdir_flag_spec_CXX" || \
20375 test -n "$runpath_var_CXX" || \
20376 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20377
20378 # We can hardcode non-existant directories.
20379 if test "$hardcode_direct_CXX" != no &&
20380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20381 # have to relink, otherwise we might link with an installed library
20382 # when we should be linking with a yet-to-be-installed one
20383 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20384 test "$hardcode_minus_L_CXX" != no; then
20385 # Linking always hardcodes the temporary library directory.
20386 hardcode_action_CXX=relink
20387 else
20388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20389 hardcode_action_CXX=immediate
20390 fi
20391else
20392 # We cannot hardcode anything, or else we can only hardcode existing
20393 # directories.
20394 hardcode_action_CXX=unsupported
20395fi
Reid Spencera773bd52006-08-04 18:18:08 +000020396{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20397echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020398
20399if test "$hardcode_action_CXX" = relink; then
20400 # Fast installation is not supported
20401 enable_fast_install=no
20402elif test "$shlibpath_overrides_runpath" = yes ||
20403 test "$enable_shared" = no; then
20404 # Fast installation is not necessary
20405 enable_fast_install=needless
20406fi
20407
John Criswell47fdd832003-07-14 16:52:07 +000020408
20409# The else clause should only fire when bootstrapping the
20410# libtool distribution, otherwise you forgot to ship ltmain.sh
20411# with your package, and you will get complaints that there are
20412# no rules to generate ltmain.sh.
20413if test -f "$ltmain"; then
20414 # See if we are running on zsh, and set the options which allow our commands through
20415 # without removal of \ escapes.
20416 if test -n "${ZSH_VERSION+set}" ; then
20417 setopt NO_GLOB_SUBST
20418 fi
20419 # Now quote all the things that may contain metacharacters while being
20420 # careful not to overquote the AC_SUBSTed values. We take copies of the
20421 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020422 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 +000020423 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020424 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20425 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20426 deplibs_check_method reload_flag reload_cmds need_locks \
20427 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20428 lt_cv_sys_global_symbol_to_c_name_address \
20429 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20430 old_postinstall_cmds old_postuninstall_cmds \
20431 compiler_CXX \
20432 CC_CXX \
20433 LD_CXX \
20434 lt_prog_compiler_wl_CXX \
20435 lt_prog_compiler_pic_CXX \
20436 lt_prog_compiler_static_CXX \
20437 lt_prog_compiler_no_builtin_flag_CXX \
20438 export_dynamic_flag_spec_CXX \
20439 thread_safe_flag_spec_CXX \
20440 whole_archive_flag_spec_CXX \
20441 enable_shared_with_static_runtimes_CXX \
20442 old_archive_cmds_CXX \
20443 old_archive_from_new_cmds_CXX \
20444 predep_objects_CXX \
20445 postdep_objects_CXX \
20446 predeps_CXX \
20447 postdeps_CXX \
20448 compiler_lib_search_path_CXX \
20449 archive_cmds_CXX \
20450 archive_expsym_cmds_CXX \
20451 postinstall_cmds_CXX \
20452 postuninstall_cmds_CXX \
20453 old_archive_from_expsyms_cmds_CXX \
20454 allow_undefined_flag_CXX \
20455 no_undefined_flag_CXX \
20456 export_symbols_cmds_CXX \
20457 hardcode_libdir_flag_spec_CXX \
20458 hardcode_libdir_flag_spec_ld_CXX \
20459 hardcode_libdir_separator_CXX \
20460 hardcode_automatic_CXX \
20461 module_cmds_CXX \
20462 module_expsym_cmds_CXX \
20463 lt_cv_prog_compiler_c_o_CXX \
20464 exclude_expsyms_CXX \
20465 include_expsyms_CXX; do
20466
20467 case $var in
20468 old_archive_cmds_CXX | \
20469 old_archive_from_new_cmds_CXX | \
20470 archive_cmds_CXX | \
20471 archive_expsym_cmds_CXX | \
20472 module_cmds_CXX | \
20473 module_expsym_cmds_CXX | \
20474 old_archive_from_expsyms_cmds_CXX | \
20475 export_symbols_cmds_CXX | \
20476 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20477 postinstall_cmds | postuninstall_cmds | \
20478 old_postinstall_cmds | old_postuninstall_cmds | \
20479 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20480 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020481 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 +000020482 ;;
20483 *)
20484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20485 ;;
20486 esac
20487 done
20488
20489 case $lt_echo in
20490 *'\$0 --fallback-echo"')
20491 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20492 ;;
20493 esac
20494
20495cfgfile="$ofile"
20496
20497 cat <<__EOF__ >> "$cfgfile"
20498# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20499
20500# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20501
20502# Shell to use when invoking shell scripts.
20503SHELL=$lt_SHELL
20504
20505# Whether or not to build shared libraries.
20506build_libtool_libs=$enable_shared
20507
20508# Whether or not to build static libraries.
20509build_old_libs=$enable_static
20510
20511# Whether or not to add -lc for building shared libraries.
20512build_libtool_need_lc=$archive_cmds_need_lc_CXX
20513
20514# Whether or not to disallow shared libs when runtime libs are static
20515allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20516
20517# Whether or not to optimize for fast installation.
20518fast_install=$enable_fast_install
20519
20520# The host system.
20521host_alias=$host_alias
20522host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020523host_os=$host_os
20524
20525# The build system.
20526build_alias=$build_alias
20527build=$build
20528build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020529
20530# An echo program that does not interpret backslashes.
20531echo=$lt_echo
20532
20533# The archiver.
20534AR=$lt_AR
20535AR_FLAGS=$lt_AR_FLAGS
20536
20537# A C compiler.
20538LTCC=$lt_LTCC
20539
Reid Spencera773bd52006-08-04 18:18:08 +000020540# LTCC compiler flags.
20541LTCFLAGS=$lt_LTCFLAGS
20542
John Criswell47fdd832003-07-14 16:52:07 +000020543# A language-specific compiler.
20544CC=$lt_compiler_CXX
20545
20546# Is the compiler the GNU C compiler?
20547with_gcc=$GCC_CXX
20548
20549# An ERE matcher.
20550EGREP=$lt_EGREP
20551
20552# The linker used to build libraries.
20553LD=$lt_LD_CXX
20554
20555# Whether we need hard or soft links.
20556LN_S=$lt_LN_S
20557
20558# A BSD-compatible nm program.
20559NM=$lt_NM
20560
20561# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020562STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020563
20564# Used to examine libraries when file_magic_cmd begins "file"
20565MAGIC_CMD=$MAGIC_CMD
20566
20567# Used on cygwin: DLL creation program.
20568DLLTOOL="$DLLTOOL"
20569
20570# Used on cygwin: object dumper.
20571OBJDUMP="$OBJDUMP"
20572
20573# Used on cygwin: assembler.
20574AS="$AS"
20575
20576# The name of the directory that contains temporary libtool files.
20577objdir=$objdir
20578
20579# How to create reloadable object files.
20580reload_flag=$lt_reload_flag
20581reload_cmds=$lt_reload_cmds
20582
20583# How to pass a linker flag through the compiler.
20584wl=$lt_lt_prog_compiler_wl_CXX
20585
20586# Object file suffix (normally "o").
20587objext="$ac_objext"
20588
20589# Old archive suffix (normally "a").
20590libext="$libext"
20591
20592# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020593shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020594
20595# Executable file suffix (normally "").
20596exeext="$exeext"
20597
20598# Additional compiler flags for building library objects.
20599pic_flag=$lt_lt_prog_compiler_pic_CXX
20600pic_mode=$pic_mode
20601
20602# What is the maximum length of a command?
20603max_cmd_len=$lt_cv_sys_max_cmd_len
20604
20605# Does compiler simultaneously support -c and -o options?
20606compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20607
Reid Spencera773bd52006-08-04 18:18:08 +000020608# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020609need_locks=$lt_need_locks
20610
20611# Do we need the lib prefix for modules?
20612need_lib_prefix=$need_lib_prefix
20613
20614# Do we need a version for libraries?
20615need_version=$need_version
20616
20617# Whether dlopen is supported.
20618dlopen_support=$enable_dlopen
20619
20620# Whether dlopen of programs is supported.
20621dlopen_self=$enable_dlopen_self
20622
20623# Whether dlopen of statically linked programs is supported.
20624dlopen_self_static=$enable_dlopen_self_static
20625
20626# Compiler flag to prevent dynamic linking.
20627link_static_flag=$lt_lt_prog_compiler_static_CXX
20628
20629# Compiler flag to turn off builtin functions.
20630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20631
20632# Compiler flag to allow reflexive dlopens.
20633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20634
20635# Compiler flag to generate shared objects directly from archives.
20636whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20637
20638# Compiler flag to generate thread-safe objects.
20639thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20640
20641# Library versioning type.
20642version_type=$version_type
20643
20644# Format of library name prefix.
20645libname_spec=$lt_libname_spec
20646
20647# List of archive names. First name is the real one, the rest are links.
20648# The last name is the one that the linker finds with -lNAME.
20649library_names_spec=$lt_library_names_spec
20650
20651# The coded name of the library, if different from the real name.
20652soname_spec=$lt_soname_spec
20653
20654# Commands used to build and install an old-style archive.
20655RANLIB=$lt_RANLIB
20656old_archive_cmds=$lt_old_archive_cmds_CXX
20657old_postinstall_cmds=$lt_old_postinstall_cmds
20658old_postuninstall_cmds=$lt_old_postuninstall_cmds
20659
20660# Create an old-style archive from a shared archive.
20661old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20662
20663# Create a temporary old-style archive to link instead of a shared archive.
20664old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20665
20666# Commands used to build and install a shared archive.
20667archive_cmds=$lt_archive_cmds_CXX
20668archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20669postinstall_cmds=$lt_postinstall_cmds
20670postuninstall_cmds=$lt_postuninstall_cmds
20671
20672# Commands used to build a loadable module (assumed same as above if empty)
20673module_cmds=$lt_module_cmds_CXX
20674module_expsym_cmds=$lt_module_expsym_cmds_CXX
20675
20676# Commands to strip libraries.
20677old_striplib=$lt_old_striplib
20678striplib=$lt_striplib
20679
20680# Dependencies to place before the objects being linked to create a
20681# shared library.
20682predep_objects=$lt_predep_objects_CXX
20683
20684# Dependencies to place after the objects being linked to create a
20685# shared library.
20686postdep_objects=$lt_postdep_objects_CXX
20687
20688# Dependencies to place before the objects being linked to create a
20689# shared library.
20690predeps=$lt_predeps_CXX
20691
20692# Dependencies to place after the objects being linked to create a
20693# shared library.
20694postdeps=$lt_postdeps_CXX
20695
20696# The library search path used internally by the compiler when linking
20697# a shared library.
20698compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20699
20700# Method to check whether dependent libraries are shared objects.
20701deplibs_check_method=$lt_deplibs_check_method
20702
20703# Command to use when deplibs_check_method == file_magic.
20704file_magic_cmd=$lt_file_magic_cmd
20705
20706# Flag that allows shared libraries with undefined symbols to be built.
20707allow_undefined_flag=$lt_allow_undefined_flag_CXX
20708
20709# Flag that forces no undefined symbols.
20710no_undefined_flag=$lt_no_undefined_flag_CXX
20711
20712# Commands used to finish a libtool library installation in a directory.
20713finish_cmds=$lt_finish_cmds
20714
20715# Same as above, but a single script fragment to be evaled but not shown.
20716finish_eval=$lt_finish_eval
20717
20718# Take the output of nm and produce a listing of raw symbols and C names.
20719global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20720
20721# Transform the output of nm in a proper C declaration
20722global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20723
20724# Transform the output of nm in a C name address pair
20725global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20726
20727# This is the shared library runtime path variable.
20728runpath_var=$runpath_var
20729
20730# This is the shared library path variable.
20731shlibpath_var=$shlibpath_var
20732
20733# Is shlibpath searched before the hard-coded library search path?
20734shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20735
20736# How to hardcode a shared library path into an executable.
20737hardcode_action=$hardcode_action_CXX
20738
20739# Whether we should hardcode library paths into libraries.
20740hardcode_into_libs=$hardcode_into_libs
20741
20742# Flag to hardcode \$libdir into a binary during linking.
20743# This must work even if \$libdir does not exist.
20744hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20745
20746# If ld is used when linking, flag to hardcode \$libdir into
20747# a binary during linking. This must work even if \$libdir does
20748# not exist.
20749hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20750
20751# Whether we need a single -rpath flag with a separated argument.
20752hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20753
20754# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20755# resulting binary.
20756hardcode_direct=$hardcode_direct_CXX
20757
20758# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20759# resulting binary.
20760hardcode_minus_L=$hardcode_minus_L_CXX
20761
20762# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20763# the resulting binary.
20764hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20765
20766# Set to yes if building a shared library automatically hardcodes DIR into the library
20767# and all subsequent libraries and executables linked against it.
20768hardcode_automatic=$hardcode_automatic_CXX
20769
20770# Variables whose values should be saved in libtool wrapper scripts and
20771# restored at relink time.
20772variables_saved_for_relink="$variables_saved_for_relink"
20773
20774# Whether libtool must link a program against all its dependency libraries.
20775link_all_deplibs=$link_all_deplibs_CXX
20776
20777# Compile-time system search path for libraries
20778sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20779
20780# Run-time system search path for libraries
20781sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20782
20783# Fix the shell variable \$srcfile for the compiler.
20784fix_srcfile_path="$fix_srcfile_path_CXX"
20785
20786# Set to yes if exported symbols are required.
20787always_export_symbols=$always_export_symbols_CXX
20788
20789# The commands to list exported symbols.
20790export_symbols_cmds=$lt_export_symbols_cmds_CXX
20791
20792# The commands to extract the exported symbol list from a shared archive.
20793extract_expsyms_cmds=$lt_extract_expsyms_cmds
20794
20795# Symbols that should not be listed in the preloaded symbols.
20796exclude_expsyms=$lt_exclude_expsyms_CXX
20797
20798# Symbols that must always be exported.
20799include_expsyms=$lt_include_expsyms_CXX
20800
20801# ### END LIBTOOL TAG CONFIG: $tagname
20802
20803__EOF__
20804
20805
20806else
20807 # If there is no Makefile yet, we rely on a make rule to execute
20808 # `config.status --recheck' to rerun these tests and create the
20809 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20811 if test -f "$ltmain_in"; then
20812 test -f Makefile && make "$ltmain"
20813 fi
John Criswell47fdd832003-07-14 16:52:07 +000020814fi
20815
20816
20817ac_ext=c
20818ac_cpp='$CPP $CPPFLAGS'
20819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823CC=$lt_save_CC
20824LDCXX=$LD
20825LD=$lt_save_LD
20826GCC=$lt_save_GCC
20827with_gnu_ldcxx=$with_gnu_ld
20828with_gnu_ld=$lt_save_with_gnu_ld
20829lt_cv_path_LDCXX=$lt_cv_path_LD
20830lt_cv_path_LD=$lt_save_path_LD
20831lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20832lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20833
20834 else
20835 tagname=""
20836 fi
20837 ;;
20838
20839 F77)
20840 if test -n "$F77" && test "X$F77" != "Xno"; then
20841
20842ac_ext=f
20843ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20844ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20846
20847
20848archive_cmds_need_lc_F77=no
20849allow_undefined_flag_F77=
20850always_export_symbols_F77=no
20851archive_expsym_cmds_F77=
20852export_dynamic_flag_spec_F77=
20853hardcode_direct_F77=no
20854hardcode_libdir_flag_spec_F77=
20855hardcode_libdir_flag_spec_ld_F77=
20856hardcode_libdir_separator_F77=
20857hardcode_minus_L_F77=no
20858hardcode_automatic_F77=no
20859module_cmds_F77=
20860module_expsym_cmds_F77=
20861link_all_deplibs_F77=unknown
20862old_archive_cmds_F77=$old_archive_cmds
20863no_undefined_flag_F77=
20864whole_archive_flag_spec_F77=
20865enable_shared_with_static_runtimes_F77=no
20866
20867# Source file extension for f77 test sources.
20868ac_ext=f
20869
20870# Object file extension for compiled f77 test sources.
20871objext=o
20872objext_F77=$objext
20873
20874# Code to be used in simple compile tests
20875lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20876
20877# Code to be used in simple link tests
20878lt_simple_link_test_code=" program t\n end\n"
20879
20880# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20881
20882# If no C compiler was specified, use CC.
20883LTCC=${LTCC-"$CC"}
20884
Reid Spencera773bd52006-08-04 18:18:08 +000020885# If no C compiler flags were specified, use CFLAGS.
20886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20887
John Criswell47fdd832003-07-14 16:52:07 +000020888# Allow CC to be a program name with arguments.
20889compiler=$CC
20890
20891
Reid Spencera773bd52006-08-04 18:18:08 +000020892# save warnings/boilerplate of simple test code
20893ac_outfile=conftest.$ac_objext
20894printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20896_lt_compiler_boilerplate=`cat conftest.err`
20897$rm conftest*
20898
20899ac_outfile=conftest.$ac_objext
20900printf "$lt_simple_link_test_code" >conftest.$ac_ext
20901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20902_lt_linker_boilerplate=`cat conftest.err`
20903$rm conftest*
20904
20905
John Criswell47fdd832003-07-14 16:52:07 +000020906# Allow CC to be a program name with arguments.
20907lt_save_CC="$CC"
20908CC=${F77-"f77"}
20909compiler=$CC
20910compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020911for cc_temp in $compiler""; do
20912 case $cc_temp in
20913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20915 \-*) ;;
20916 *) break;;
20917 esac
20918done
20919cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020920
John Criswell47fdd832003-07-14 16:52:07 +000020921
Reid Spencera773bd52006-08-04 18:18:08 +000020922{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20923echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20924{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20925echo "${ECHO_T}$can_build_shared" >&6; }
20926
20927{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20928echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020929test "$can_build_shared" = "no" && enable_shared=no
20930
20931# On AIX, shared libraries and static libraries use the same namespace, and
20932# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020933case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020934aix3*)
20935 test "$enable_shared" = yes && enable_static=no
20936 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020938 postinstall_cmds='$RANLIB $lib'
20939 fi
20940 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020941aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020942 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20943 test "$enable_shared" = yes && enable_static=no
20944 fi
John Criswell47fdd832003-07-14 16:52:07 +000020945 ;;
20946esac
Reid Spencera773bd52006-08-04 18:18:08 +000020947{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20948echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020949
Reid Spencera773bd52006-08-04 18:18:08 +000020950{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20951echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020952# Make sure either enable_shared or enable_static is yes.
20953test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020954{ echo "$as_me:$LINENO: result: $enable_static" >&5
20955echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020956
20957GCC_F77="$G77"
20958LD_F77="$LD"
20959
20960lt_prog_compiler_wl_F77=
20961lt_prog_compiler_pic_F77=
20962lt_prog_compiler_static_F77=
20963
Reid Spencera773bd52006-08-04 18:18:08 +000020964{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20965echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020966
20967 if test "$GCC" = yes; then
20968 lt_prog_compiler_wl_F77='-Wl,'
20969 lt_prog_compiler_static_F77='-static'
20970
20971 case $host_os in
20972 aix*)
20973 # All AIX code is PIC.
20974 if test "$host_cpu" = ia64; then
20975 # AIX 5 now supports IA64 processor
20976 lt_prog_compiler_static_F77='-Bstatic'
20977 fi
20978 ;;
20979
20980 amigaos*)
20981 # FIXME: we need at least 68020 code to build shared libraries, but
20982 # adding the `-m68020' flag to GCC prevents building anything better,
20983 # like `-m68040'.
20984 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20985 ;;
20986
20987 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20988 # PIC is the default for these OSes.
20989 ;;
20990
20991 mingw* | pw32* | os2*)
20992 # This hack is so that the source file can tell whether it is being
20993 # built for inclusion in a dll (and should export symbols for example).
20994 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20995 ;;
20996
20997 darwin* | rhapsody*)
20998 # PIC is the default on this platform
20999 # Common symbols not allowed in MH_DYLIB files
21000 lt_prog_compiler_pic_F77='-fno-common'
21001 ;;
21002
Reid Spencera773bd52006-08-04 18:18:08 +000021003 interix3*)
21004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21005 # Instead, we relocate shared libraries at runtime.
21006 ;;
21007
John Criswell47fdd832003-07-14 16:52:07 +000021008 msdosdjgpp*)
21009 # Just because we use GCC doesn't mean we suddenly get shared libraries
21010 # on systems that don't support them.
21011 lt_prog_compiler_can_build_shared_F77=no
21012 enable_shared=no
21013 ;;
21014
21015 sysv4*MP*)
21016 if test -d /usr/nec; then
21017 lt_prog_compiler_pic_F77=-Kconform_pic
21018 fi
21019 ;;
21020
21021 hpux*)
21022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21023 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021024 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021025 hppa*64*|ia64*)
21026 # +Z the default
21027 ;;
21028 *)
21029 lt_prog_compiler_pic_F77='-fPIC'
21030 ;;
21031 esac
21032 ;;
21033
21034 *)
21035 lt_prog_compiler_pic_F77='-fPIC'
21036 ;;
21037 esac
21038 else
21039 # PORTME Check for flag to pass linker flags through the system compiler.
21040 case $host_os in
21041 aix*)
21042 lt_prog_compiler_wl_F77='-Wl,'
21043 if test "$host_cpu" = ia64; then
21044 # AIX 5 now supports IA64 processor
21045 lt_prog_compiler_static_F77='-Bstatic'
21046 else
21047 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21048 fi
21049 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021050 darwin*)
21051 # PIC is the default on this platform
21052 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021053 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021054 xlc*)
21055 lt_prog_compiler_pic_F77='-qnocommon'
21056 lt_prog_compiler_wl_F77='-Wl,'
21057 ;;
21058 esac
21059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021060
21061 mingw* | pw32* | os2*)
21062 # This hack is so that the source file can tell whether it is being
21063 # built for inclusion in a dll (and should export symbols for example).
21064 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21065 ;;
21066
21067 hpux9* | hpux10* | hpux11*)
21068 lt_prog_compiler_wl_F77='-Wl,'
21069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21070 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021071 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021072 hppa*64*|ia64*)
21073 # +Z the default
21074 ;;
21075 *)
21076 lt_prog_compiler_pic_F77='+Z'
21077 ;;
21078 esac
21079 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21080 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21081 ;;
21082
21083 irix5* | irix6* | nonstopux*)
21084 lt_prog_compiler_wl_F77='-Wl,'
21085 # PIC (with -KPIC) is the default.
21086 lt_prog_compiler_static_F77='-non_shared'
21087 ;;
21088
21089 newsos6)
21090 lt_prog_compiler_pic_F77='-KPIC'
21091 lt_prog_compiler_static_F77='-Bstatic'
21092 ;;
21093
21094 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021095 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021096 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021097 lt_prog_compiler_wl_F77='-Wl,'
21098 lt_prog_compiler_pic_F77='-KPIC'
21099 lt_prog_compiler_static_F77='-static'
21100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021101 pgcc* | pgf77* | pgf90* | pgf95*)
21102 # Portland Group compilers (*not* the Pentium gcc compiler,
21103 # which looks to be a dead project)
21104 lt_prog_compiler_wl_F77='-Wl,'
21105 lt_prog_compiler_pic_F77='-fpic'
21106 lt_prog_compiler_static_F77='-Bstatic'
21107 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021108 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021109 lt_prog_compiler_wl_F77='-Wl,'
21110 # All Alpha code is PIC.
21111 lt_prog_compiler_static_F77='-non_shared'
21112 ;;
21113 esac
21114 ;;
21115
21116 osf3* | osf4* | osf5*)
21117 lt_prog_compiler_wl_F77='-Wl,'
21118 # All OSF/1 code is PIC.
21119 lt_prog_compiler_static_F77='-non_shared'
21120 ;;
21121
John Criswell47fdd832003-07-14 16:52:07 +000021122 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021123 lt_prog_compiler_pic_F77='-KPIC'
21124 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021125 case $cc_basename in
21126 f77* | f90* | f95*)
21127 lt_prog_compiler_wl_F77='-Qoption ld ';;
21128 *)
21129 lt_prog_compiler_wl_F77='-Wl,';;
21130 esac
John Criswell47fdd832003-07-14 16:52:07 +000021131 ;;
21132
21133 sunos4*)
21134 lt_prog_compiler_wl_F77='-Qoption ld '
21135 lt_prog_compiler_pic_F77='-PIC'
21136 lt_prog_compiler_static_F77='-Bstatic'
21137 ;;
21138
Reid Spencera773bd52006-08-04 18:18:08 +000021139 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021140 lt_prog_compiler_wl_F77='-Wl,'
21141 lt_prog_compiler_pic_F77='-KPIC'
21142 lt_prog_compiler_static_F77='-Bstatic'
21143 ;;
21144
21145 sysv4*MP*)
21146 if test -d /usr/nec ;then
21147 lt_prog_compiler_pic_F77='-Kconform_pic'
21148 lt_prog_compiler_static_F77='-Bstatic'
21149 fi
21150 ;;
21151
Reid Spencera773bd52006-08-04 18:18:08 +000021152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21153 lt_prog_compiler_wl_F77='-Wl,'
21154 lt_prog_compiler_pic_F77='-KPIC'
21155 lt_prog_compiler_static_F77='-Bstatic'
21156 ;;
21157
21158 unicos*)
21159 lt_prog_compiler_wl_F77='-Wl,'
21160 lt_prog_compiler_can_build_shared_F77=no
21161 ;;
21162
John Criswell47fdd832003-07-14 16:52:07 +000021163 uts4*)
21164 lt_prog_compiler_pic_F77='-pic'
21165 lt_prog_compiler_static_F77='-Bstatic'
21166 ;;
21167
21168 *)
21169 lt_prog_compiler_can_build_shared_F77=no
21170 ;;
21171 esac
21172 fi
21173
Reid Spencera773bd52006-08-04 18:18:08 +000021174{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21175echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021176
21177#
21178# Check to make sure the PIC flag actually works.
21179#
21180if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021181
Reid Spencera773bd52006-08-04 18:18:08 +000021182{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21183echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021184if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186else
21187 lt_prog_compiler_pic_works_F77=no
21188 ac_outfile=conftest.$ac_objext
21189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21190 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21191 # Insert the option either (1) after the last *FLAGS variable, or
21192 # (2) before a word containing "conftest.", or (3) at the end.
21193 # Note that $ac_compile itself does not contain backslashes and begins
21194 # with a dollar sign (not a hyphen), so the echo should work correctly.
21195 # The option is referenced via a variable to avoid confusing sed.
21196 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21199 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000021200 (eval echo "\"\$as_me:21197: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021201 (eval "$lt_compile" 2>conftest.err)
21202 ac_status=$?
21203 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000021204 echo "$as_me:21201: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021205 if (exit $ac_status) && test -s "$ac_outfile"; then
21206 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021207 # So say no if there are warnings other than the usual output.
21208 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021211 lt_prog_compiler_pic_works_F77=yes
21212 fi
21213 fi
21214 $rm conftest*
21215
21216fi
Reid Spencera773bd52006-08-04 18:18:08 +000021217{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21218echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021219
21220if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21221 case $lt_prog_compiler_pic_F77 in
21222 "" | " "*) ;;
21223 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21224 esac
21225else
21226 lt_prog_compiler_pic_F77=
21227 lt_prog_compiler_can_build_shared_F77=no
21228fi
21229
21230fi
Reid Spencera773bd52006-08-04 18:18:08 +000021231case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021232 # For platforms which do not support PIC, -DPIC is meaningless:
21233 *djgpp*)
21234 lt_prog_compiler_pic_F77=
21235 ;;
21236 *)
21237 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21238 ;;
21239esac
21240
Reid Spencera773bd52006-08-04 18:18:08 +000021241#
21242# Check to make sure the static flag actually works.
21243#
21244wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21245{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21246echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21247if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249else
21250 lt_prog_compiler_static_works_F77=no
21251 save_LDFLAGS="$LDFLAGS"
21252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21253 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21255 # The linker can only warn and ignore the option if not recognized
21256 # So say no if there are warnings
21257 if test -s conftest.err; then
21258 # Append any errors to the config.log.
21259 cat conftest.err 1>&5
21260 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21262 if diff conftest.exp conftest.er2 >/dev/null; then
21263 lt_prog_compiler_static_works_F77=yes
21264 fi
21265 else
21266 lt_prog_compiler_static_works_F77=yes
21267 fi
21268 fi
21269 $rm conftest*
21270 LDFLAGS="$save_LDFLAGS"
21271
21272fi
21273{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21274echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21275
21276if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21277 :
21278else
21279 lt_prog_compiler_static_F77=
21280fi
21281
21282
21283{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21284echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021285if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21287else
21288 lt_cv_prog_compiler_c_o_F77=no
21289 $rm -r conftest 2>/dev/null
21290 mkdir conftest
21291 cd conftest
21292 mkdir out
21293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21294
John Criswell47fdd832003-07-14 16:52:07 +000021295 lt_compiler_flag="-o out/conftest2.$ac_objext"
21296 # Insert the option either (1) after the last *FLAGS variable, or
21297 # (2) before a word containing "conftest.", or (3) at the end.
21298 # Note that $ac_compile itself does not contain backslashes and begins
21299 # with a dollar sign (not a hyphen), so the echo should work correctly.
21300 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21303 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000021304 (eval echo "\"\$as_me:21301: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021305 (eval "$lt_compile" 2>out/conftest.err)
21306 ac_status=$?
21307 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000021308 echo "$as_me:21305: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21310 then
21311 # The compiler can only warn and ignore the option if not recognized
21312 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021313 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021316 lt_cv_prog_compiler_c_o_F77=yes
21317 fi
21318 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021319 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021320 $rm conftest*
21321 # SGI C++ compiler will create directory out/ii_files/ for
21322 # template instantiation
21323 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21324 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021325 cd ..
21326 rmdir conftest
21327 $rm conftest*
21328
21329fi
Reid Spencera773bd52006-08-04 18:18:08 +000021330{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21331echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021332
21333
21334hard_links="nottested"
21335if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21336 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021337 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21338echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021339 hard_links=yes
21340 $rm conftest*
21341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21342 touch conftest.a
21343 ln conftest.a conftest.b 2>&5 || hard_links=no
21344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021345 { echo "$as_me:$LINENO: result: $hard_links" >&5
21346echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021347 if test "$hard_links" = no; then
21348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21349echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21350 need_locks=warn
21351 fi
21352else
21353 need_locks=no
21354fi
21355
Reid Spencera773bd52006-08-04 18:18:08 +000021356{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21357echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021358
21359 runpath_var=
21360 allow_undefined_flag_F77=
21361 enable_shared_with_static_runtimes_F77=no
21362 archive_cmds_F77=
21363 archive_expsym_cmds_F77=
21364 old_archive_From_new_cmds_F77=
21365 old_archive_from_expsyms_cmds_F77=
21366 export_dynamic_flag_spec_F77=
21367 whole_archive_flag_spec_F77=
21368 thread_safe_flag_spec_F77=
21369 hardcode_libdir_flag_spec_F77=
21370 hardcode_libdir_flag_spec_ld_F77=
21371 hardcode_libdir_separator_F77=
21372 hardcode_direct_F77=no
21373 hardcode_minus_L_F77=no
21374 hardcode_shlibpath_var_F77=unsupported
21375 link_all_deplibs_F77=unknown
21376 hardcode_automatic_F77=no
21377 module_cmds_F77=
21378 module_expsym_cmds_F77=
21379 always_export_symbols_F77=no
21380 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21381 # include_expsyms should be a list of space-separated symbols to be *always*
21382 # included in the symbol list
21383 include_expsyms_F77=
21384 # exclude_expsyms can be an extended regexp of symbols to exclude
21385 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21386 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21387 # as well as any symbol that contains `d'.
21388 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21389 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21390 # platforms (ab)use it in PIC code, but their linkers get confused if
21391 # the symbol is explicitly referenced. Since portable code cannot
21392 # rely on this symbol name, it's probably fine to never include it in
21393 # preloaded symbol tables.
21394 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021395 # Just being paranoid about ensuring that cc_basename is set.
21396 for cc_temp in $compiler""; do
21397 case $cc_temp in
21398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21400 \-*) ;;
21401 *) break;;
21402 esac
21403done
21404cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021405
21406 case $host_os in
21407 cygwin* | mingw* | pw32*)
21408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21409 # When not using gcc, we currently assume that we are using
21410 # Microsoft Visual C++.
21411 if test "$GCC" != yes; then
21412 with_gnu_ld=no
21413 fi
21414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021415 interix*)
21416 # we just hope/assume this is gcc and not c89 (= MSVC++)
21417 with_gnu_ld=yes
21418 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021419 openbsd*)
21420 with_gnu_ld=no
21421 ;;
21422 esac
21423
21424 ld_shlibs_F77=yes
21425 if test "$with_gnu_ld" = yes; then
21426 # If archive_cmds runs LD, not CC, wlarc should be empty
21427 wlarc='${wl}'
21428
Reid Spencera773bd52006-08-04 18:18:08 +000021429 # Set some defaults for GNU ld with shared library support. These
21430 # are reset later if shared libraries are not supported. Putting them
21431 # here allows them to be overridden if necessary.
21432 runpath_var=LD_RUN_PATH
21433 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21434 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21435 # ancient GNU ld didn't support --whole-archive et. al.
21436 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21437 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21438 else
21439 whole_archive_flag_spec_F77=
21440 fi
21441 supports_anon_versioning=no
21442 case `$LD -v 2>/dev/null` in
21443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21446 *\ 2.11.*) ;; # other 2.11 versions
21447 *) supports_anon_versioning=yes ;;
21448 esac
21449
John Criswell47fdd832003-07-14 16:52:07 +000021450 # See if GNU ld supports shared libraries.
21451 case $host_os in
21452 aix3* | aix4* | aix5*)
21453 # On AIX/PPC, the GNU linker is very broken
21454 if test "$host_cpu" != ia64; then
21455 ld_shlibs_F77=no
21456 cat <<EOF 1>&2
21457
21458*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21459*** to be unable to reliably create shared libraries on AIX.
21460*** Therefore, libtool is disabling shared libraries support. If you
21461*** really care for shared libraries, you may want to modify your PATH
21462*** so that a non-GNU linker is found, and then restart.
21463
21464EOF
21465 fi
21466 ;;
21467
21468 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021469 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 +000021470 hardcode_libdir_flag_spec_F77='-L$libdir'
21471 hardcode_minus_L_F77=yes
21472
21473 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21474 # that the semantics of dynamic libraries on AmigaOS, at least up
21475 # to version 4, is to share data among multiple programs linked
21476 # with the same dynamic library. Since this doesn't match the
21477 # behavior of shared libraries on other platforms, we can't use
21478 # them.
21479 ld_shlibs_F77=no
21480 ;;
21481
21482 beos*)
21483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21484 allow_undefined_flag_F77=unsupported
21485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21486 # support --undefined. This deserves some investigation. FIXME
21487 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488 else
21489 ld_shlibs_F77=no
21490 fi
21491 ;;
21492
21493 cygwin* | mingw* | pw32*)
21494 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21495 # as there is no search path for DLLs.
21496 hardcode_libdir_flag_spec_F77='-L$libdir'
21497 allow_undefined_flag_F77=unsupported
21498 always_export_symbols_F77=no
21499 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021500 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 +000021501
21502 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021503 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 +000021504 # If the export-symbols file already is a .def file (1st line
21505 # is EXPORTS), use it as is; otherwise, prepend...
21506 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21507 cp $export_symbols $output_objdir/$soname.def;
21508 else
21509 echo EXPORTS > $output_objdir/$soname.def;
21510 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021511 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021512 $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 +000021513 else
Reid Spencera773bd52006-08-04 18:18:08 +000021514 ld_shlibs_F77=no
21515 fi
21516 ;;
21517
21518 interix3*)
21519 hardcode_direct_F77=no
21520 hardcode_shlibpath_var_F77=no
21521 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21522 export_dynamic_flag_spec_F77='${wl}-E'
21523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21524 # Instead, shared libraries are loaded at an image base (0x10000000 by
21525 # default) and relocated if they conflict, which is a slow very memory
21526 # consuming and fragmenting process. To avoid this, we pick a random,
21527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21529 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'
21530 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'
21531 ;;
21532
21533 linux*)
21534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21535 tmp_addflag=
21536 case $cc_basename,$host_cpu in
21537 pgcc*) # Portland Group C compiler
21538 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'
21539 tmp_addflag=' $pic_flag'
21540 ;;
21541 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21542 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'
21543 tmp_addflag=' $pic_flag -Mnomain' ;;
21544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21545 tmp_addflag=' -i_dynamic' ;;
21546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21547 tmp_addflag=' -i_dynamic -nofor_main' ;;
21548 ifc* | ifort*) # Intel Fortran compiler
21549 tmp_addflag=' -nofor_main' ;;
21550 esac
21551 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21552
21553 if test $supports_anon_versioning = yes; then
21554 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21556 $echo "local: *; };" >> $output_objdir/$libname.ver~
21557 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21558 fi
21559 else
21560 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021561 fi
21562 ;;
21563
21564 netbsd*)
21565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21566 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21567 wlarc=
21568 else
21569 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21570 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21571 fi
21572 ;;
21573
Reid Spencera773bd52006-08-04 18:18:08 +000021574 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021575 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21576 ld_shlibs_F77=no
21577 cat <<EOF 1>&2
21578
21579*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21580*** create shared libraries on Solaris systems. Therefore, libtool
21581*** is disabling shared libraries support. We urge you to upgrade GNU
21582*** binutils to release 2.9.1 or newer. Another option is to modify
21583*** your PATH or compiler configuration so that the native linker is
21584*** used, and then restart.
21585
21586EOF
21587 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21588 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21590 else
21591 ld_shlibs_F77=no
21592 fi
21593 ;;
21594
Reid Spencera773bd52006-08-04 18:18:08 +000021595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21596 case `$LD -v 2>&1` in
21597 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21598 ld_shlibs_F77=no
21599 cat <<_LT_EOF 1>&2
21600
21601*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21602*** reliably create shared libraries on SCO systems. Therefore, libtool
21603*** is disabling shared libraries support. We urge you to upgrade GNU
21604*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21605*** your PATH or compiler configuration so that the native linker is
21606*** used, and then restart.
21607
21608_LT_EOF
21609 ;;
21610 *)
21611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21612 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21613 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21614 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21615 else
21616 ld_shlibs_F77=no
21617 fi
21618 ;;
21619 esac
21620 ;;
21621
John Criswell47fdd832003-07-14 16:52:07 +000021622 sunos4*)
21623 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21624 wlarc=
21625 hardcode_direct_F77=yes
21626 hardcode_shlibpath_var_F77=no
21627 ;;
21628
21629 *)
21630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21631 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21632 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21633 else
21634 ld_shlibs_F77=no
21635 fi
21636 ;;
21637 esac
21638
Reid Spencera773bd52006-08-04 18:18:08 +000021639 if test "$ld_shlibs_F77" = no; then
21640 runpath_var=
21641 hardcode_libdir_flag_spec_F77=
21642 export_dynamic_flag_spec_F77=
21643 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021644 fi
21645 else
21646 # PORTME fill in a description of your system's linker (not GNU ld)
21647 case $host_os in
21648 aix3*)
21649 allow_undefined_flag_F77=unsupported
21650 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021651 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 +000021652 # Note: this linker hardcodes the directories in LIBPATH if there
21653 # are no directories specified by -L.
21654 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021655 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021656 # Neither direct hardcoding nor static linking is supported with a
21657 # broken collect2.
21658 hardcode_direct_F77=unsupported
21659 fi
21660 ;;
21661
21662 aix4* | aix5*)
21663 if test "$host_cpu" = ia64; then
21664 # On IA64, the linker does run time linking by default, so we don't
21665 # have to do anything special.
21666 aix_use_runtimelinking=no
21667 exp_sym_flag='-Bexport'
21668 no_entry_flag=""
21669 else
21670 # If we're using GNU nm, then we don't want the "-C" option.
21671 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21672 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21673 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'
21674 else
21675 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'
21676 fi
21677 aix_use_runtimelinking=no
21678
21679 # Test if we are trying to use run time linking or normal
21680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21681 # need to do runtime linking.
21682 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21683 for ld_flag in $LDFLAGS; do
21684 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21685 aix_use_runtimelinking=yes
21686 break
21687 fi
21688 done
Reid Spencera773bd52006-08-04 18:18:08 +000021689 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021690 esac
21691
21692 exp_sym_flag='-bexport'
21693 no_entry_flag='-bnoentry'
21694 fi
21695
21696 # When large executables or shared objects are built, AIX ld can
21697 # have problems creating the table of contents. If linking a library
21698 # or program results in "error TOC overflow" add -mminimal-toc to
21699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21701
21702 archive_cmds_F77=''
21703 hardcode_direct_F77=yes
21704 hardcode_libdir_separator_F77=':'
21705 link_all_deplibs_F77=yes
21706
21707 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021708 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021709 # We only want to do this on AIX 4.2 and lower, the check
21710 # below for broken collect2 doesn't work under 4.3+
21711 collect2name=`${CC} -print-prog-name=collect2`
21712 if test -f "$collect2name" && \
21713 strings "$collect2name" | grep resolve_lib_name >/dev/null
21714 then
21715 # We have reworked collect2
21716 hardcode_direct_F77=yes
21717 else
21718 # We have old collect2
21719 hardcode_direct_F77=unsupported
21720 # It fails to find uninstalled libraries when the uninstalled
21721 # path is not listed in the libpath. Setting hardcode_minus_L
21722 # to unsupported forces relinking
21723 hardcode_minus_L_F77=yes
21724 hardcode_libdir_flag_spec_F77='-L$libdir'
21725 hardcode_libdir_separator_F77=
21726 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021727 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021728 esac
21729 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021730 if test "$aix_use_runtimelinking" = yes; then
21731 shared_flag="$shared_flag "'${wl}-G'
21732 fi
John Criswell47fdd832003-07-14 16:52:07 +000021733 else
21734 # not using gcc
21735 if test "$host_cpu" = ia64; then
21736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21737 # chokes on -Wl,-G. The following line is correct:
21738 shared_flag='-G'
21739 else
Reid Spencera773bd52006-08-04 18:18:08 +000021740 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021741 shared_flag='${wl}-G'
21742 else
21743 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021744 fi
John Criswell47fdd832003-07-14 16:52:07 +000021745 fi
21746 fi
21747
21748 # It seems that -bexpall does not export symbols beginning with
21749 # underscore (_), so it is better to generate a list of symbols to export.
21750 always_export_symbols_F77=yes
21751 if test "$aix_use_runtimelinking" = yes; then
21752 # Warning - without using the other runtime loading flags (-brtl),
21753 # -berok will link without error, but may produce a broken library.
21754 allow_undefined_flag_F77='-berok'
21755 # Determine the default libpath from the value encoded in an empty executable.
21756 cat >conftest.$ac_ext <<_ACEOF
21757 program main
21758
21759 end
21760_ACEOF
21761rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021762if { (ac_try="$ac_link"
21763case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21766esac
21767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021770 grep -v '^ *+' conftest.er1 >conftest.err
21771 rm -f conftest.er1
21772 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021775 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21776 { (case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21779esac
21780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021786 { (case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789esac
21790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795
21796aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21797}'`
21798# Check for a 64-bit object if we didn't find anything.
21799if 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; }
21800}'`; fi
21801else
21802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021803sed 's/^/| /' conftest.$ac_ext >&5
21804
Reid Spencera773bd52006-08-04 18:18:08 +000021805
John Criswell47fdd832003-07-14 16:52:07 +000021806fi
Reid Spencera773bd52006-08-04 18:18:08 +000021807
21808rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021810if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21811
21812 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021813 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 +000021814 else
21815 if test "$host_cpu" = ia64; then
21816 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21817 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021818 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 +000021819 else
21820 # Determine the default libpath from the value encoded in an empty executable.
21821 cat >conftest.$ac_ext <<_ACEOF
21822 program main
21823
21824 end
21825_ACEOF
21826rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021827if { (ac_try="$ac_link"
21828case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831esac
21832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021834 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021840 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21841 { (case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21844esac
21845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; } &&
21850 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021851 { (case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21854esac
21855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860
21861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21862}'`
21863# Check for a 64-bit object if we didn't find anything.
21864if 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; }
21865}'`; fi
21866else
21867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021868sed 's/^/| /' conftest.$ac_ext >&5
21869
Reid Spencera773bd52006-08-04 18:18:08 +000021870
John Criswell47fdd832003-07-14 16:52:07 +000021871fi
Reid Spencera773bd52006-08-04 18:18:08 +000021872
21873rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021874 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21876
21877 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21878 # Warning - without using the other run time loading flags,
21879 # -berok will link without error, but may produce a broken library.
21880 no_undefined_flag_F77=' ${wl}-bernotok'
21881 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021882 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021883 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021884 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021885 # This is similar to how AIX traditionally builds its shared libraries.
21886 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 +000021887 fi
21888 fi
21889 ;;
21890
21891 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021892 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 +000021893 hardcode_libdir_flag_spec_F77='-L$libdir'
21894 hardcode_minus_L_F77=yes
21895 # see comment about different semantics on the GNU ld section
21896 ld_shlibs_F77=no
21897 ;;
21898
Reid Spencer2706f8c2004-09-19 23:53:36 +000021899 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021900 export_dynamic_flag_spec_F77=-rdynamic
21901 ;;
21902
21903 cygwin* | mingw* | pw32*)
21904 # When not using gcc, we currently assume that we are using
21905 # Microsoft Visual C++.
21906 # hardcode_libdir_flag_spec is actually meaningless, as there is
21907 # no search path for DLLs.
21908 hardcode_libdir_flag_spec_F77=' '
21909 allow_undefined_flag_F77=unsupported
21910 # Tell ltmain to make .lib files, not .a files.
21911 libext=lib
21912 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021913 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021914 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021915 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 +000021916 # The linker will automatically build a .lib file if we build a DLL.
21917 old_archive_From_new_cmds_F77='true'
21918 # FIXME: Should let the user specify the lib program.
21919 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021920 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021921 enable_shared_with_static_runtimes_F77=yes
21922 ;;
21923
21924 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021925 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021926 rhapsody* | darwin1.[012])
21927 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21928 ;;
21929 *) # Darwin 1.3 on
21930 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21931 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21932 else
21933 case ${MACOSX_DEPLOYMENT_TARGET} in
21934 10.[012])
21935 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21936 ;;
21937 10.*)
21938 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21939 ;;
21940 esac
21941 fi
21942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021943 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021944 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021945 hardcode_direct_F77=no
21946 hardcode_automatic_F77=yes
21947 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021948 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021949 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021950 if test "$GCC" = yes ; then
21951 output_verbose_link_cmd='echo'
21952 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21953 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021954 # 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 +000021955 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}'
21956 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 +000021957 else
Reid Spencera773bd52006-08-04 18:18:08 +000021958 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021959 xlc*)
21960 output_verbose_link_cmd='echo'
21961 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21962 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021963 # 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 +000021964 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}'
21965 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 +000021966 ;;
21967 *)
21968 ld_shlibs_F77=no
21969 ;;
21970 esac
John Criswell47fdd832003-07-14 16:52:07 +000021971 fi
21972 ;;
21973
21974 dgux*)
21975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21976 hardcode_libdir_flag_spec_F77='-L$libdir'
21977 hardcode_shlibpath_var_F77=no
21978 ;;
21979
21980 freebsd1*)
21981 ld_shlibs_F77=no
21982 ;;
21983
21984 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21985 # support. Future versions do this automatically, but an explicit c++rt0.o
21986 # does not break anything, and helps significantly (at the cost of a little
21987 # extra space).
21988 freebsd2.2*)
21989 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21990 hardcode_libdir_flag_spec_F77='-R$libdir'
21991 hardcode_direct_F77=yes
21992 hardcode_shlibpath_var_F77=no
21993 ;;
21994
21995 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21996 freebsd2*)
21997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21998 hardcode_direct_F77=yes
21999 hardcode_minus_L_F77=yes
22000 hardcode_shlibpath_var_F77=no
22001 ;;
22002
22003 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022004 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022005 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22006 hardcode_libdir_flag_spec_F77='-R$libdir'
22007 hardcode_direct_F77=yes
22008 hardcode_shlibpath_var_F77=no
22009 ;;
22010
22011 hpux9*)
22012 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022013 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 +000022014 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022015 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 +000022016 fi
22017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22018 hardcode_libdir_separator_F77=:
22019 hardcode_direct_F77=yes
22020
22021 # hardcode_minus_L: Not really in the search PATH,
22022 # but as the default location of the library.
22023 hardcode_minus_L_F77=yes
22024 export_dynamic_flag_spec_F77='${wl}-E'
22025 ;;
22026
Reid Spencera773bd52006-08-04 18:18:08 +000022027 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022028 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022029 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22030 else
22031 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22032 fi
22033 if test "$with_gnu_ld" = no; then
22034 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22035 hardcode_libdir_separator_F77=:
22036
22037 hardcode_direct_F77=yes
22038 export_dynamic_flag_spec_F77='${wl}-E'
22039
22040 # hardcode_minus_L: Not really in the search PATH,
22041 # but as the default location of the library.
22042 hardcode_minus_L_F77=yes
22043 fi
22044 ;;
22045
22046 hpux11*)
22047 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22048 case $host_cpu in
22049 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022050 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22051 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022052 ia64*)
22053 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22054 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022055 *)
22056 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22057 ;;
22058 esac
22059 else
Reid Spencera773bd52006-08-04 18:18:08 +000022060 case $host_cpu in
22061 hppa*64*)
22062 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22063 ;;
22064 ia64*)
22065 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022066 ;;
22067 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022068 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 +000022069 ;;
22070 esac
22071 fi
22072 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022073 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22074 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022075
Reid Spencera773bd52006-08-04 18:18:08 +000022076 case $host_cpu in
22077 hppa*64*|ia64*)
22078 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22079 hardcode_direct_F77=no
22080 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022081 ;;
22082 *)
John Criswell47fdd832003-07-14 16:52:07 +000022083 hardcode_direct_F77=yes
22084 export_dynamic_flag_spec_F77='${wl}-E'
22085
22086 # hardcode_minus_L: Not really in the search PATH,
22087 # but as the default location of the library.
22088 hardcode_minus_L_F77=yes
22089 ;;
22090 esac
22091 fi
22092 ;;
22093
22094 irix5* | irix6* | nonstopux*)
22095 if test "$GCC" = yes; then
22096 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'
22097 else
22098 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'
22099 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22100 fi
22101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22102 hardcode_libdir_separator_F77=:
22103 link_all_deplibs_F77=yes
22104 ;;
22105
22106 netbsd*)
22107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22108 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22109 else
22110 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22111 fi
22112 hardcode_libdir_flag_spec_F77='-R$libdir'
22113 hardcode_direct_F77=yes
22114 hardcode_shlibpath_var_F77=no
22115 ;;
22116
22117 newsos6)
22118 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_direct_F77=yes
22120 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22121 hardcode_libdir_separator_F77=:
22122 hardcode_shlibpath_var_F77=no
22123 ;;
22124
22125 openbsd*)
22126 hardcode_direct_F77=yes
22127 hardcode_shlibpath_var_F77=no
22128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22129 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022130 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 +000022131 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22132 export_dynamic_flag_spec_F77='${wl}-E'
22133 else
22134 case $host_os in
22135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22136 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22137 hardcode_libdir_flag_spec_F77='-R$libdir'
22138 ;;
22139 *)
22140 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22141 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22142 ;;
22143 esac
22144 fi
22145 ;;
22146
22147 os2*)
22148 hardcode_libdir_flag_spec_F77='-L$libdir'
22149 hardcode_minus_L_F77=yes
22150 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022151 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 +000022152 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22153 ;;
22154
22155 osf3*)
22156 if test "$GCC" = yes; then
22157 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22158 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'
22159 else
22160 allow_undefined_flag_F77=' -expect_unresolved \*'
22161 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'
22162 fi
22163 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22164 hardcode_libdir_separator_F77=:
22165 ;;
22166
22167 osf4* | osf5*) # as osf3* with the addition of -msym flag
22168 if test "$GCC" = yes; then
22169 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22170 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'
22171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22172 else
22173 allow_undefined_flag_F77=' -expect_unresolved \*'
22174 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 +000022175 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 +000022176 $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 +000022177
John Criswell47fdd832003-07-14 16:52:07 +000022178 # Both c and cxx compiler support -rpath directly
22179 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22180 fi
22181 hardcode_libdir_separator_F77=:
22182 ;;
22183
John Criswell47fdd832003-07-14 16:52:07 +000022184 solaris*)
22185 no_undefined_flag_F77=' -z text'
22186 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022187 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022188 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022189 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22190 $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 +000022191 else
Reid Spencera773bd52006-08-04 18:18:08 +000022192 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022193 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022194 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22195 $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 +000022196 fi
22197 hardcode_libdir_flag_spec_F77='-R$libdir'
22198 hardcode_shlibpath_var_F77=no
22199 case $host_os in
22200 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022201 *)
22202 # The compiler driver will combine linker options so we
22203 # cannot just pass the convience library names through
22204 # without $wl, iff we do not link with $LD.
22205 # Luckily, gcc supports the same syntax we need for Sun Studio.
22206 # Supported since Solaris 2.6 (maybe 2.5.1?)
22207 case $wlarc in
22208 '')
22209 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22210 *)
22211 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' ;;
22212 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022213 esac
22214 link_all_deplibs_F77=yes
22215 ;;
22216
22217 sunos4*)
22218 if test "x$host_vendor" = xsequent; then
22219 # Use $CC to link under sequent, because it throws in some extra .o
22220 # files that make .init and .fini sections work.
22221 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22222 else
22223 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22224 fi
22225 hardcode_libdir_flag_spec_F77='-L$libdir'
22226 hardcode_direct_F77=yes
22227 hardcode_minus_L_F77=yes
22228 hardcode_shlibpath_var_F77=no
22229 ;;
22230
22231 sysv4)
22232 case $host_vendor in
22233 sni)
22234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22235 hardcode_direct_F77=yes # is this really true???
22236 ;;
22237 siemens)
22238 ## LD is ld it makes a PLAMLIB
22239 ## CC just makes a GrossModule.
22240 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22241 reload_cmds_F77='$CC -r -o $output$reload_objs'
22242 hardcode_direct_F77=no
22243 ;;
22244 motorola)
22245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22246 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22247 ;;
22248 esac
22249 runpath_var='LD_RUN_PATH'
22250 hardcode_shlibpath_var_F77=no
22251 ;;
22252
22253 sysv4.3*)
22254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22255 hardcode_shlibpath_var_F77=no
22256 export_dynamic_flag_spec_F77='-Bexport'
22257 ;;
22258
22259 sysv4*MP*)
22260 if test -d /usr/nec; then
22261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22262 hardcode_shlibpath_var_F77=no
22263 runpath_var=LD_RUN_PATH
22264 hardcode_runpath_var=yes
22265 ld_shlibs_F77=yes
22266 fi
22267 ;;
22268
Reid Spencera773bd52006-08-04 18:18:08 +000022269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22270 no_undefined_flag_F77='${wl}-z,text'
22271 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022272 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022273 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022274
John Criswell47fdd832003-07-14 16:52:07 +000022275 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022276 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 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 +000022278 else
Reid Spencera773bd52006-08-04 18:18:08 +000022279 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22280 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 +000022281 fi
John Criswell47fdd832003-07-14 16:52:07 +000022282 ;;
22283
Reid Spencera773bd52006-08-04 18:18:08 +000022284 sysv5* | sco3.2v5* | sco5v6*)
22285 # Note: We can NOT use -z defs as we might desire, because we do not
22286 # link with -lc, and that would cause any symbols used from libc to
22287 # always be unresolved, which means just about no library would
22288 # ever link correctly. If we're not using GNU ld we use -z text
22289 # though, which does catch some bad symbols but isn't as heavy-handed
22290 # as -z defs.
22291 no_undefined_flag_F77='${wl}-z,text'
22292 allow_undefined_flag_F77='${wl}-z,nodefs'
22293 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022294 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022295 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22296 hardcode_libdir_separator_F77=':'
22297 link_all_deplibs_F77=yes
22298 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022299 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022300
22301 if test "$GCC" = yes; then
22302 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22304 else
22305 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22306 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22307 fi
John Criswell47fdd832003-07-14 16:52:07 +000022308 ;;
22309
22310 uts4*)
22311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22312 hardcode_libdir_flag_spec_F77='-L$libdir'
22313 hardcode_shlibpath_var_F77=no
22314 ;;
22315
22316 *)
22317 ld_shlibs_F77=no
22318 ;;
22319 esac
22320 fi
22321
Reid Spencera773bd52006-08-04 18:18:08 +000022322{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22323echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022324test "$ld_shlibs_F77" = no && can_build_shared=no
22325
John Criswell47fdd832003-07-14 16:52:07 +000022326#
22327# Do we need to explicitly link libc?
22328#
22329case "x$archive_cmds_need_lc_F77" in
22330x|xyes)
22331 # Assume -lc should be added
22332 archive_cmds_need_lc_F77=yes
22333
22334 if test "$enable_shared" = yes && test "$GCC" = yes; then
22335 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022336 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022337 # FIXME: we may have to deal with multi-command sequences.
22338 ;;
22339 '$CC '*)
22340 # Test whether the compiler implicitly links with -lc since on some
22341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22342 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022343 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22344echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022345 $rm conftest*
22346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22347
22348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22349 (eval $ac_compile) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } 2>conftest.err; then
22353 soname=conftest
22354 lib=conftest
22355 libobjs=conftest.$ac_objext
22356 deplibs=
22357 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022358 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022359 compiler_flags=-v
22360 linker_flags=-v
22361 verstring=
22362 output_objdir=.
22363 libname=conftest
22364 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22365 allow_undefined_flag_F77=
22366 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22367 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }
22371 then
22372 archive_cmds_need_lc_F77=no
22373 else
22374 archive_cmds_need_lc_F77=yes
22375 fi
22376 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22377 else
22378 cat conftest.err 1>&5
22379 fi
22380 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022381 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22382echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022383 ;;
22384 esac
22385 fi
22386 ;;
22387esac
22388
Reid Spencera773bd52006-08-04 18:18:08 +000022389{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22390echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022391library_names_spec=
22392libname_spec='lib$name'
22393soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022394shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022395postinstall_cmds=
22396postuninstall_cmds=
22397finish_cmds=
22398finish_eval=
22399shlibpath_var=
22400shlibpath_overrides_runpath=unknown
22401version_type=none
22402dynamic_linker="$host_os ld.so"
22403sys_lib_dlsearch_path_spec="/lib /usr/lib"
22404if test "$GCC" = yes; then
22405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22406 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22407 # if the path contains ";" then we assume it to be the separator
22408 # otherwise default to the standard path separator (i.e. ":") - it is
22409 # assumed that no part of a normal pathname contains ";" but that should
22410 # okay in the real world where ";" in dirpaths is itself problematic.
22411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22412 else
22413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22414 fi
22415else
22416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22417fi
22418need_lib_prefix=unknown
22419hardcode_into_libs=no
22420
22421# when you set need_version to no, make sure it does not cause -set_version
22422# flags to be left without arguments
22423need_version=unknown
22424
22425case $host_os in
22426aix3*)
22427 version_type=linux
22428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22429 shlibpath_var=LIBPATH
22430
22431 # AIX 3 has no versioning support, so we append a major version to the name.
22432 soname_spec='${libname}${release}${shared_ext}$major'
22433 ;;
22434
22435aix4* | aix5*)
22436 version_type=linux
22437 need_lib_prefix=no
22438 need_version=no
22439 hardcode_into_libs=yes
22440 if test "$host_cpu" = ia64; then
22441 # AIX 5 supports IA64
22442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22443 shlibpath_var=LD_LIBRARY_PATH
22444 else
22445 # With GCC up to 2.95.x, collect2 would create an import file
22446 # for dependence libraries. The import file would start with
22447 # the line `#! .'. This would cause the generated library to
22448 # depend on `.', always an invalid library. This was fixed in
22449 # development snapshots of GCC prior to 3.0.
22450 case $host_os in
22451 aix4 | aix4.[01] | aix4.[01].*)
22452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22453 echo ' yes '
22454 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22455 :
22456 else
22457 can_build_shared=no
22458 fi
22459 ;;
22460 esac
22461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22462 # soname into executable. Probably we can add versioning support to
22463 # collect2, so additional links can be useful in future.
22464 if test "$aix_use_runtimelinking" = yes; then
22465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22466 # instead of lib<name>.a to let people know that these are not
22467 # typical AIX shared libraries.
22468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22469 else
22470 # We preserve .a as extension for shared libraries through AIX4.2
22471 # and later when we are not doing run time linking.
22472 library_names_spec='${libname}${release}.a $libname.a'
22473 soname_spec='${libname}${release}${shared_ext}$major'
22474 fi
22475 shlibpath_var=LIBPATH
22476 fi
22477 ;;
22478
22479amigaos*)
22480 library_names_spec='$libname.ixlibrary $libname.a'
22481 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022482 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 +000022483 ;;
22484
22485beos*)
22486 library_names_spec='${libname}${shared_ext}'
22487 dynamic_linker="$host_os ld.so"
22488 shlibpath_var=LIBRARY_PATH
22489 ;;
22490
Reid Spencer2706f8c2004-09-19 23:53:36 +000022491bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022492 version_type=linux
22493 need_version=no
22494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22495 soname_spec='${libname}${release}${shared_ext}$major'
22496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22497 shlibpath_var=LD_LIBRARY_PATH
22498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22500 # the default ld.so.conf also contains /usr/contrib/lib and
22501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22502 # libtool to hard-code these into programs
22503 ;;
22504
22505cygwin* | mingw* | pw32*)
22506 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022507 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022508 need_version=no
22509 need_lib_prefix=no
22510
22511 case $GCC,$host_os in
22512 yes,cygwin* | yes,mingw* | yes,pw32*)
22513 library_names_spec='$libname.dll.a'
22514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022515 postinstall_cmds='base_file=`basename \${file}`~
22516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22517 dldir=$destdir/`dirname \$dlpath`~
22518 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022519 $install_prog $dir/$dlname \$dldir/$dlname~
22520 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22522 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022523 $rm \$dlpath'
22524 shlibpath_overrides_runpath=yes
22525
22526 case $host_os in
22527 cygwin*)
22528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22529 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 +000022530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022531 ;;
22532 mingw*)
22533 # MinGW DLLs use traditional 'lib' prefix
22534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22536 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22537 # It is most probably a Windows format PATH printed by
22538 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22539 # path with ; separators, and with drive letters. We can handle the
22540 # drive letters (cygwin fileutils understands them), so leave them,
22541 # especially as we might pass files found there to a mingw objdump,
22542 # which wouldn't understand a cygwinified path. Ahh.
22543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22544 else
22545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22546 fi
22547 ;;
22548 pw32*)
22549 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022550 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 +000022551 ;;
22552 esac
22553 ;;
22554
22555 *)
22556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22557 ;;
22558 esac
22559 dynamic_linker='Win32 ld.exe'
22560 # FIXME: first we should search . and the directory the executable is in
22561 shlibpath_var=PATH
22562 ;;
22563
22564darwin* | rhapsody*)
22565 dynamic_linker="$host_os dyld"
22566 version_type=darwin
22567 need_lib_prefix=no
22568 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022570 soname_spec='${libname}${release}${major}$shared_ext'
22571 shlibpath_overrides_runpath=yes
22572 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022573 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022574 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022575 if test "$GCC" = yes; then
22576 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"`
22577 else
22578 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022579 fi
22580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22581 ;;
22582
22583dgux*)
22584 version_type=linux
22585 need_lib_prefix=no
22586 need_version=no
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 shlibpath_var=LD_LIBRARY_PATH
22590 ;;
22591
22592freebsd1*)
22593 dynamic_linker=no
22594 ;;
22595
Reid Spencer2706f8c2004-09-19 23:53:36 +000022596kfreebsd*-gnu)
22597 version_type=linux
22598 need_lib_prefix=no
22599 need_version=no
22600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22601 soname_spec='${libname}${release}${shared_ext}$major'
22602 shlibpath_var=LD_LIBRARY_PATH
22603 shlibpath_overrides_runpath=no
22604 hardcode_into_libs=yes
22605 dynamic_linker='GNU ld.so'
22606 ;;
22607
Reid Spencera773bd52006-08-04 18:18:08 +000022608freebsd* | dragonfly*)
22609 # DragonFly does not have aout. When/if they implement a new
22610 # versioning mechanism, adjust this.
22611 if test -x /usr/bin/objformat; then
22612 objformat=`/usr/bin/objformat`
22613 else
22614 case $host_os in
22615 freebsd[123]*) objformat=aout ;;
22616 *) objformat=elf ;;
22617 esac
22618 fi
John Criswell47fdd832003-07-14 16:52:07 +000022619 version_type=freebsd-$objformat
22620 case $version_type in
22621 freebsd-elf*)
22622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22623 need_version=no
22624 need_lib_prefix=no
22625 ;;
22626 freebsd-*)
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22628 need_version=yes
22629 ;;
22630 esac
22631 shlibpath_var=LD_LIBRARY_PATH
22632 case $host_os in
22633 freebsd2*)
22634 shlibpath_overrides_runpath=yes
22635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022636 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022637 shlibpath_overrides_runpath=yes
22638 hardcode_into_libs=yes
22639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022640 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22641 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022642 shlibpath_overrides_runpath=no
22643 hardcode_into_libs=yes
22644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022645 freebsd*) # from 4.6 on
22646 shlibpath_overrides_runpath=yes
22647 hardcode_into_libs=yes
22648 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022649 esac
22650 ;;
22651
22652gnu*)
22653 version_type=linux
22654 need_lib_prefix=no
22655 need_version=no
22656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22657 soname_spec='${libname}${release}${shared_ext}$major'
22658 shlibpath_var=LD_LIBRARY_PATH
22659 hardcode_into_libs=yes
22660 ;;
22661
22662hpux9* | hpux10* | hpux11*)
22663 # Give a soname corresponding to the major version so that dld.sl refuses to
22664 # link against other versions.
22665 version_type=sunos
22666 need_lib_prefix=no
22667 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022668 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022669 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022670 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022671 hardcode_into_libs=yes
22672 dynamic_linker="$host_os dld.so"
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22676 soname_spec='${libname}${release}${shared_ext}$major'
22677 if test "X$HPUX_IA64_MODE" = X32; then
22678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22679 else
22680 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22681 fi
22682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22683 ;;
22684 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022686 hardcode_into_libs=yes
22687 dynamic_linker="$host_os dld.sl"
22688 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691 soname_spec='${libname}${release}${shared_ext}$major'
22692 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22694 ;;
22695 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022696 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022697 dynamic_linker="$host_os dld.sl"
22698 shlibpath_var=SHLIB_PATH
22699 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701 soname_spec='${libname}${release}${shared_ext}$major'
22702 ;;
22703 esac
22704 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22705 postinstall_cmds='chmod 555 $lib'
22706 ;;
22707
Reid Spencera773bd52006-08-04 18:18:08 +000022708interix3*)
22709 version_type=linux
22710 need_lib_prefix=no
22711 need_version=no
22712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22713 soname_spec='${libname}${release}${shared_ext}$major'
22714 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22715 shlibpath_var=LD_LIBRARY_PATH
22716 shlibpath_overrides_runpath=no
22717 hardcode_into_libs=yes
22718 ;;
22719
John Criswell47fdd832003-07-14 16:52:07 +000022720irix5* | irix6* | nonstopux*)
22721 case $host_os in
22722 nonstopux*) version_type=nonstopux ;;
22723 *)
22724 if test "$lt_cv_prog_gnu_ld" = yes; then
22725 version_type=linux
22726 else
22727 version_type=irix
22728 fi ;;
22729 esac
22730 need_lib_prefix=no
22731 need_version=no
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22734 case $host_os in
22735 irix5* | nonstopux*)
22736 libsuff= shlibsuff=
22737 ;;
22738 *)
22739 case $LD in # libtool.m4 will add one of these switches to LD
22740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22741 libsuff= shlibsuff= libmagic=32-bit;;
22742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22743 libsuff=32 shlibsuff=N32 libmagic=N32;;
22744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22745 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22746 *) libsuff= shlibsuff= libmagic=never-match;;
22747 esac
22748 ;;
22749 esac
22750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22751 shlibpath_overrides_runpath=no
22752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22754 hardcode_into_libs=yes
22755 ;;
22756
22757# No shared lib support for Linux oldld, aout, or coff.
22758linux*oldld* | linux*aout* | linux*coff*)
22759 dynamic_linker=no
22760 ;;
22761
22762# This must be Linux ELF.
22763linux*)
22764 version_type=linux
22765 need_lib_prefix=no
22766 need_version=no
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768 soname_spec='${libname}${release}${shared_ext}$major'
22769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22770 shlibpath_var=LD_LIBRARY_PATH
22771 shlibpath_overrides_runpath=no
22772 # This implies no fast_install, which is unacceptable.
22773 # Some rework will be needed to allow for fast_install
22774 # before this can be enabled.
22775 hardcode_into_libs=yes
22776
Reid Spencer2706f8c2004-09-19 23:53:36 +000022777 # Append ld.so.conf contents to the search path
22778 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022779 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 +000022780 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22781 fi
22782
John Criswell47fdd832003-07-14 16:52:07 +000022783 # We used to test for /lib/ld.so.1 and disable shared libraries on
22784 # powerpc, because MkLinux only supported shared libraries with the
22785 # GNU dynamic linker. Since this was broken with cross compilers,
22786 # most powerpc-linux boxes support dynamic linking these days and
22787 # people can always --disable-shared, the test was removed, and we
22788 # assume the GNU/Linux dynamic linker is in use.
22789 dynamic_linker='GNU/Linux ld.so'
22790 ;;
22791
Reid Spencer2706f8c2004-09-19 23:53:36 +000022792knetbsd*-gnu)
22793 version_type=linux
22794 need_lib_prefix=no
22795 need_version=no
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22797 soname_spec='${libname}${release}${shared_ext}$major'
22798 shlibpath_var=LD_LIBRARY_PATH
22799 shlibpath_overrides_runpath=no
22800 hardcode_into_libs=yes
22801 dynamic_linker='GNU ld.so'
22802 ;;
22803
John Criswell47fdd832003-07-14 16:52:07 +000022804netbsd*)
22805 version_type=sunos
22806 need_lib_prefix=no
22807 need_version=no
22808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22811 dynamic_linker='NetBSD (a.out) ld.so'
22812 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022814 soname_spec='${libname}${release}${shared_ext}$major'
22815 dynamic_linker='NetBSD ld.elf_so'
22816 fi
22817 shlibpath_var=LD_LIBRARY_PATH
22818 shlibpath_overrides_runpath=yes
22819 hardcode_into_libs=yes
22820 ;;
22821
22822newsos6)
22823 version_type=linux
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 shlibpath_var=LD_LIBRARY_PATH
22826 shlibpath_overrides_runpath=yes
22827 ;;
22828
Reid Spencer2706f8c2004-09-19 23:53:36 +000022829nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022830 version_type=linux
22831 need_lib_prefix=no
22832 need_version=no
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834 soname_spec='${libname}${release}${shared_ext}$major'
22835 shlibpath_var=LD_LIBRARY_PATH
22836 shlibpath_overrides_runpath=yes
22837 ;;
22838
22839openbsd*)
22840 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022841 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022842 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022843 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22844 case $host_os in
22845 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22846 *) need_version=no ;;
22847 esac
John Criswell47fdd832003-07-14 16:52:07 +000022848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22852 case $host_os in
22853 openbsd2.[89] | openbsd2.[89].*)
22854 shlibpath_overrides_runpath=no
22855 ;;
22856 *)
22857 shlibpath_overrides_runpath=yes
22858 ;;
22859 esac
22860 else
22861 shlibpath_overrides_runpath=yes
22862 fi
22863 ;;
22864
22865os2*)
22866 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022867 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022868 need_lib_prefix=no
22869 library_names_spec='$libname${shared_ext} $libname.a'
22870 dynamic_linker='OS/2 ld.exe'
22871 shlibpath_var=LIBPATH
22872 ;;
22873
22874osf3* | osf4* | osf5*)
22875 version_type=osf
22876 need_lib_prefix=no
22877 need_version=no
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880 shlibpath_var=LD_LIBRARY_PATH
22881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22882 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22883 ;;
22884
John Criswell47fdd832003-07-14 16:52:07 +000022885solaris*)
22886 version_type=linux
22887 need_lib_prefix=no
22888 need_version=no
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22890 soname_spec='${libname}${release}${shared_ext}$major'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 shlibpath_overrides_runpath=yes
22893 hardcode_into_libs=yes
22894 # ldd complains unless libraries are executable
22895 postinstall_cmds='chmod +x $lib'
22896 ;;
22897
22898sunos4*)
22899 version_type=sunos
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22901 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22902 shlibpath_var=LD_LIBRARY_PATH
22903 shlibpath_overrides_runpath=yes
22904 if test "$with_gnu_ld" = yes; then
22905 need_lib_prefix=no
22906 fi
22907 need_version=yes
22908 ;;
22909
Reid Spencera773bd52006-08-04 18:18:08 +000022910sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022911 version_type=linux
22912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22913 soname_spec='${libname}${release}${shared_ext}$major'
22914 shlibpath_var=LD_LIBRARY_PATH
22915 case $host_vendor in
22916 sni)
22917 shlibpath_overrides_runpath=no
22918 need_lib_prefix=no
22919 export_dynamic_flag_spec='${wl}-Blargedynsym'
22920 runpath_var=LD_RUN_PATH
22921 ;;
22922 siemens)
22923 need_lib_prefix=no
22924 ;;
22925 motorola)
22926 need_lib_prefix=no
22927 need_version=no
22928 shlibpath_overrides_runpath=no
22929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22930 ;;
22931 esac
22932 ;;
22933
22934sysv4*MP*)
22935 if test -d /usr/nec ;then
22936 version_type=linux
22937 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22938 soname_spec='$libname${shared_ext}.$major'
22939 shlibpath_var=LD_LIBRARY_PATH
22940 fi
22941 ;;
22942
Reid Spencera773bd52006-08-04 18:18:08 +000022943sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22944 version_type=freebsd-elf
22945 need_lib_prefix=no
22946 need_version=no
22947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22948 soname_spec='${libname}${release}${shared_ext}$major'
22949 shlibpath_var=LD_LIBRARY_PATH
22950 hardcode_into_libs=yes
22951 if test "$with_gnu_ld" = yes; then
22952 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22953 shlibpath_overrides_runpath=no
22954 else
22955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22956 shlibpath_overrides_runpath=yes
22957 case $host_os in
22958 sco3.2v5*)
22959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22960 ;;
22961 esac
22962 fi
22963 sys_lib_dlsearch_path_spec='/usr/lib'
22964 ;;
22965
John Criswell47fdd832003-07-14 16:52:07 +000022966uts4*)
22967 version_type=linux
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec='${libname}${release}${shared_ext}$major'
22970 shlibpath_var=LD_LIBRARY_PATH
22971 ;;
22972
22973*)
22974 dynamic_linker=no
22975 ;;
22976esac
Reid Spencera773bd52006-08-04 18:18:08 +000022977{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22978echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022979test "$dynamic_linker" = no && can_build_shared=no
22980
Reid Spencera773bd52006-08-04 18:18:08 +000022981variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22982if test "$GCC" = yes; then
22983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22984fi
22985
22986{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22987echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022988hardcode_action_F77=
22989if test -n "$hardcode_libdir_flag_spec_F77" || \
22990 test -n "$runpath_var_F77" || \
22991 test "X$hardcode_automatic_F77" = "Xyes" ; then
22992
22993 # We can hardcode non-existant directories.
22994 if test "$hardcode_direct_F77" != no &&
22995 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22996 # have to relink, otherwise we might link with an installed library
22997 # when we should be linking with a yet-to-be-installed one
22998 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22999 test "$hardcode_minus_L_F77" != no; then
23000 # Linking always hardcodes the temporary library directory.
23001 hardcode_action_F77=relink
23002 else
23003 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23004 hardcode_action_F77=immediate
23005 fi
23006else
23007 # We cannot hardcode anything, or else we can only hardcode existing
23008 # directories.
23009 hardcode_action_F77=unsupported
23010fi
Reid Spencera773bd52006-08-04 18:18:08 +000023011{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23012echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013
23014if test "$hardcode_action_F77" = relink; then
23015 # Fast installation is not supported
23016 enable_fast_install=no
23017elif test "$shlibpath_overrides_runpath" = yes ||
23018 test "$enable_shared" = no; then
23019 # Fast installation is not necessary
23020 enable_fast_install=needless
23021fi
23022
John Criswell47fdd832003-07-14 16:52:07 +000023023
23024# The else clause should only fire when bootstrapping the
23025# libtool distribution, otherwise you forgot to ship ltmain.sh
23026# with your package, and you will get complaints that there are
23027# no rules to generate ltmain.sh.
23028if test -f "$ltmain"; then
23029 # See if we are running on zsh, and set the options which allow our commands through
23030 # without removal of \ escapes.
23031 if test -n "${ZSH_VERSION+set}" ; then
23032 setopt NO_GLOB_SUBST
23033 fi
23034 # Now quote all the things that may contain metacharacters while being
23035 # careful not to overquote the AC_SUBSTed values. We take copies of the
23036 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023037 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 +000023038 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023039 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23040 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23041 deplibs_check_method reload_flag reload_cmds need_locks \
23042 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23043 lt_cv_sys_global_symbol_to_c_name_address \
23044 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23045 old_postinstall_cmds old_postuninstall_cmds \
23046 compiler_F77 \
23047 CC_F77 \
23048 LD_F77 \
23049 lt_prog_compiler_wl_F77 \
23050 lt_prog_compiler_pic_F77 \
23051 lt_prog_compiler_static_F77 \
23052 lt_prog_compiler_no_builtin_flag_F77 \
23053 export_dynamic_flag_spec_F77 \
23054 thread_safe_flag_spec_F77 \
23055 whole_archive_flag_spec_F77 \
23056 enable_shared_with_static_runtimes_F77 \
23057 old_archive_cmds_F77 \
23058 old_archive_from_new_cmds_F77 \
23059 predep_objects_F77 \
23060 postdep_objects_F77 \
23061 predeps_F77 \
23062 postdeps_F77 \
23063 compiler_lib_search_path_F77 \
23064 archive_cmds_F77 \
23065 archive_expsym_cmds_F77 \
23066 postinstall_cmds_F77 \
23067 postuninstall_cmds_F77 \
23068 old_archive_from_expsyms_cmds_F77 \
23069 allow_undefined_flag_F77 \
23070 no_undefined_flag_F77 \
23071 export_symbols_cmds_F77 \
23072 hardcode_libdir_flag_spec_F77 \
23073 hardcode_libdir_flag_spec_ld_F77 \
23074 hardcode_libdir_separator_F77 \
23075 hardcode_automatic_F77 \
23076 module_cmds_F77 \
23077 module_expsym_cmds_F77 \
23078 lt_cv_prog_compiler_c_o_F77 \
23079 exclude_expsyms_F77 \
23080 include_expsyms_F77; do
23081
23082 case $var in
23083 old_archive_cmds_F77 | \
23084 old_archive_from_new_cmds_F77 | \
23085 archive_cmds_F77 | \
23086 archive_expsym_cmds_F77 | \
23087 module_cmds_F77 | \
23088 module_expsym_cmds_F77 | \
23089 old_archive_from_expsyms_cmds_F77 | \
23090 export_symbols_cmds_F77 | \
23091 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23092 postinstall_cmds | postuninstall_cmds | \
23093 old_postinstall_cmds | old_postuninstall_cmds | \
23094 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23095 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023096 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 +000023097 ;;
23098 *)
23099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23100 ;;
23101 esac
23102 done
23103
23104 case $lt_echo in
23105 *'\$0 --fallback-echo"')
23106 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23107 ;;
23108 esac
23109
23110cfgfile="$ofile"
23111
23112 cat <<__EOF__ >> "$cfgfile"
23113# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23114
23115# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23116
23117# Shell to use when invoking shell scripts.
23118SHELL=$lt_SHELL
23119
23120# Whether or not to build shared libraries.
23121build_libtool_libs=$enable_shared
23122
23123# Whether or not to build static libraries.
23124build_old_libs=$enable_static
23125
23126# Whether or not to add -lc for building shared libraries.
23127build_libtool_need_lc=$archive_cmds_need_lc_F77
23128
23129# Whether or not to disallow shared libs when runtime libs are static
23130allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23131
23132# Whether or not to optimize for fast installation.
23133fast_install=$enable_fast_install
23134
23135# The host system.
23136host_alias=$host_alias
23137host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023138host_os=$host_os
23139
23140# The build system.
23141build_alias=$build_alias
23142build=$build
23143build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023144
23145# An echo program that does not interpret backslashes.
23146echo=$lt_echo
23147
23148# The archiver.
23149AR=$lt_AR
23150AR_FLAGS=$lt_AR_FLAGS
23151
23152# A C compiler.
23153LTCC=$lt_LTCC
23154
Reid Spencera773bd52006-08-04 18:18:08 +000023155# LTCC compiler flags.
23156LTCFLAGS=$lt_LTCFLAGS
23157
John Criswell47fdd832003-07-14 16:52:07 +000023158# A language-specific compiler.
23159CC=$lt_compiler_F77
23160
23161# Is the compiler the GNU C compiler?
23162with_gcc=$GCC_F77
23163
23164# An ERE matcher.
23165EGREP=$lt_EGREP
23166
23167# The linker used to build libraries.
23168LD=$lt_LD_F77
23169
23170# Whether we need hard or soft links.
23171LN_S=$lt_LN_S
23172
23173# A BSD-compatible nm program.
23174NM=$lt_NM
23175
23176# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023178
23179# Used to examine libraries when file_magic_cmd begins "file"
23180MAGIC_CMD=$MAGIC_CMD
23181
23182# Used on cygwin: DLL creation program.
23183DLLTOOL="$DLLTOOL"
23184
23185# Used on cygwin: object dumper.
23186OBJDUMP="$OBJDUMP"
23187
23188# Used on cygwin: assembler.
23189AS="$AS"
23190
23191# The name of the directory that contains temporary libtool files.
23192objdir=$objdir
23193
23194# How to create reloadable object files.
23195reload_flag=$lt_reload_flag
23196reload_cmds=$lt_reload_cmds
23197
23198# How to pass a linker flag through the compiler.
23199wl=$lt_lt_prog_compiler_wl_F77
23200
23201# Object file suffix (normally "o").
23202objext="$ac_objext"
23203
23204# Old archive suffix (normally "a").
23205libext="$libext"
23206
23207# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023208shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023209
23210# Executable file suffix (normally "").
23211exeext="$exeext"
23212
23213# Additional compiler flags for building library objects.
23214pic_flag=$lt_lt_prog_compiler_pic_F77
23215pic_mode=$pic_mode
23216
23217# What is the maximum length of a command?
23218max_cmd_len=$lt_cv_sys_max_cmd_len
23219
23220# Does compiler simultaneously support -c and -o options?
23221compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23222
Reid Spencera773bd52006-08-04 18:18:08 +000023223# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023224need_locks=$lt_need_locks
23225
23226# Do we need the lib prefix for modules?
23227need_lib_prefix=$need_lib_prefix
23228
23229# Do we need a version for libraries?
23230need_version=$need_version
23231
23232# Whether dlopen is supported.
23233dlopen_support=$enable_dlopen
23234
23235# Whether dlopen of programs is supported.
23236dlopen_self=$enable_dlopen_self
23237
23238# Whether dlopen of statically linked programs is supported.
23239dlopen_self_static=$enable_dlopen_self_static
23240
23241# Compiler flag to prevent dynamic linking.
23242link_static_flag=$lt_lt_prog_compiler_static_F77
23243
23244# Compiler flag to turn off builtin functions.
23245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23246
23247# Compiler flag to allow reflexive dlopens.
23248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23249
23250# Compiler flag to generate shared objects directly from archives.
23251whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23252
23253# Compiler flag to generate thread-safe objects.
23254thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23255
23256# Library versioning type.
23257version_type=$version_type
23258
23259# Format of library name prefix.
23260libname_spec=$lt_libname_spec
23261
23262# List of archive names. First name is the real one, the rest are links.
23263# The last name is the one that the linker finds with -lNAME.
23264library_names_spec=$lt_library_names_spec
23265
23266# The coded name of the library, if different from the real name.
23267soname_spec=$lt_soname_spec
23268
23269# Commands used to build and install an old-style archive.
23270RANLIB=$lt_RANLIB
23271old_archive_cmds=$lt_old_archive_cmds_F77
23272old_postinstall_cmds=$lt_old_postinstall_cmds
23273old_postuninstall_cmds=$lt_old_postuninstall_cmds
23274
23275# Create an old-style archive from a shared archive.
23276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23277
23278# Create a temporary old-style archive to link instead of a shared archive.
23279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23280
23281# Commands used to build and install a shared archive.
23282archive_cmds=$lt_archive_cmds_F77
23283archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23284postinstall_cmds=$lt_postinstall_cmds
23285postuninstall_cmds=$lt_postuninstall_cmds
23286
23287# Commands used to build a loadable module (assumed same as above if empty)
23288module_cmds=$lt_module_cmds_F77
23289module_expsym_cmds=$lt_module_expsym_cmds_F77
23290
23291# Commands to strip libraries.
23292old_striplib=$lt_old_striplib
23293striplib=$lt_striplib
23294
23295# Dependencies to place before the objects being linked to create a
23296# shared library.
23297predep_objects=$lt_predep_objects_F77
23298
23299# Dependencies to place after the objects being linked to create a
23300# shared library.
23301postdep_objects=$lt_postdep_objects_F77
23302
23303# Dependencies to place before the objects being linked to create a
23304# shared library.
23305predeps=$lt_predeps_F77
23306
23307# Dependencies to place after the objects being linked to create a
23308# shared library.
23309postdeps=$lt_postdeps_F77
23310
23311# The library search path used internally by the compiler when linking
23312# a shared library.
23313compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23314
23315# Method to check whether dependent libraries are shared objects.
23316deplibs_check_method=$lt_deplibs_check_method
23317
23318# Command to use when deplibs_check_method == file_magic.
23319file_magic_cmd=$lt_file_magic_cmd
23320
23321# Flag that allows shared libraries with undefined symbols to be built.
23322allow_undefined_flag=$lt_allow_undefined_flag_F77
23323
23324# Flag that forces no undefined symbols.
23325no_undefined_flag=$lt_no_undefined_flag_F77
23326
23327# Commands used to finish a libtool library installation in a directory.
23328finish_cmds=$lt_finish_cmds
23329
23330# Same as above, but a single script fragment to be evaled but not shown.
23331finish_eval=$lt_finish_eval
23332
23333# Take the output of nm and produce a listing of raw symbols and C names.
23334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23335
23336# Transform the output of nm in a proper C declaration
23337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23338
23339# Transform the output of nm in a C name address pair
23340global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23341
23342# This is the shared library runtime path variable.
23343runpath_var=$runpath_var
23344
23345# This is the shared library path variable.
23346shlibpath_var=$shlibpath_var
23347
23348# Is shlibpath searched before the hard-coded library search path?
23349shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23350
23351# How to hardcode a shared library path into an executable.
23352hardcode_action=$hardcode_action_F77
23353
23354# Whether we should hardcode library paths into libraries.
23355hardcode_into_libs=$hardcode_into_libs
23356
23357# Flag to hardcode \$libdir into a binary during linking.
23358# This must work even if \$libdir does not exist.
23359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23360
23361# If ld is used when linking, flag to hardcode \$libdir into
23362# a binary during linking. This must work even if \$libdir does
23363# not exist.
23364hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23365
23366# Whether we need a single -rpath flag with a separated argument.
23367hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23368
23369# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23370# resulting binary.
23371hardcode_direct=$hardcode_direct_F77
23372
23373# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23374# resulting binary.
23375hardcode_minus_L=$hardcode_minus_L_F77
23376
23377# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23378# the resulting binary.
23379hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23380
23381# Set to yes if building a shared library automatically hardcodes DIR into the library
23382# and all subsequent libraries and executables linked against it.
23383hardcode_automatic=$hardcode_automatic_F77
23384
23385# Variables whose values should be saved in libtool wrapper scripts and
23386# restored at relink time.
23387variables_saved_for_relink="$variables_saved_for_relink"
23388
23389# Whether libtool must link a program against all its dependency libraries.
23390link_all_deplibs=$link_all_deplibs_F77
23391
23392# Compile-time system search path for libraries
23393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23394
23395# Run-time system search path for libraries
23396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23397
23398# Fix the shell variable \$srcfile for the compiler.
23399fix_srcfile_path="$fix_srcfile_path_F77"
23400
23401# Set to yes if exported symbols are required.
23402always_export_symbols=$always_export_symbols_F77
23403
23404# The commands to list exported symbols.
23405export_symbols_cmds=$lt_export_symbols_cmds_F77
23406
23407# The commands to extract the exported symbol list from a shared archive.
23408extract_expsyms_cmds=$lt_extract_expsyms_cmds
23409
23410# Symbols that should not be listed in the preloaded symbols.
23411exclude_expsyms=$lt_exclude_expsyms_F77
23412
23413# Symbols that must always be exported.
23414include_expsyms=$lt_include_expsyms_F77
23415
23416# ### END LIBTOOL TAG CONFIG: $tagname
23417
23418__EOF__
23419
23420
23421else
23422 # If there is no Makefile yet, we rely on a make rule to execute
23423 # `config.status --recheck' to rerun these tests and create the
23424 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23426 if test -f "$ltmain_in"; then
23427 test -f Makefile && make "$ltmain"
23428 fi
John Criswell47fdd832003-07-14 16:52:07 +000023429fi
23430
23431
23432ac_ext=c
23433ac_cpp='$CPP $CPPFLAGS'
23434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436ac_compiler_gnu=$ac_cv_c_compiler_gnu
23437
23438CC="$lt_save_CC"
23439
23440 else
23441 tagname=""
23442 fi
23443 ;;
23444
23445 GCJ)
23446 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023447 ac_ext=c
23448ac_cpp='$CPP $CPPFLAGS'
23449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23451ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023452
23453
23454# Source file extension for Java test sources.
23455ac_ext=java
23456
23457# Object file extension for compiled Java test sources.
23458objext=o
23459objext_GCJ=$objext
23460
23461# Code to be used in simple compile tests
23462lt_simple_compile_test_code="class foo {}\n"
23463
23464# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023465lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023466
23467# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23468
23469# If no C compiler was specified, use CC.
23470LTCC=${LTCC-"$CC"}
23471
Reid Spencera773bd52006-08-04 18:18:08 +000023472# If no C compiler flags were specified, use CFLAGS.
23473LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23474
John Criswell47fdd832003-07-14 16:52:07 +000023475# Allow CC to be a program name with arguments.
23476compiler=$CC
23477
23478
Reid Spencera773bd52006-08-04 18:18:08 +000023479# save warnings/boilerplate of simple test code
23480ac_outfile=conftest.$ac_objext
23481printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23482eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23483_lt_compiler_boilerplate=`cat conftest.err`
23484$rm conftest*
23485
23486ac_outfile=conftest.$ac_objext
23487printf "$lt_simple_link_test_code" >conftest.$ac_ext
23488eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23489_lt_linker_boilerplate=`cat conftest.err`
23490$rm conftest*
23491
23492
John Criswell47fdd832003-07-14 16:52:07 +000023493# Allow CC to be a program name with arguments.
23494lt_save_CC="$CC"
23495CC=${GCJ-"gcj"}
23496compiler=$CC
23497compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023498for cc_temp in $compiler""; do
23499 case $cc_temp in
23500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23502 \-*) ;;
23503 *) break;;
23504 esac
23505done
23506cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23507
John Criswell47fdd832003-07-14 16:52:07 +000023508
23509# GCJ did not exist at the time GCC didn't implicitly link libc in.
23510archive_cmds_need_lc_GCJ=no
23511
Reid Spencera773bd52006-08-04 18:18:08 +000023512old_archive_cmds_GCJ=$old_archive_cmds
23513
John Criswell47fdd832003-07-14 16:52:07 +000023514
23515lt_prog_compiler_no_builtin_flag_GCJ=
23516
23517if test "$GCC" = yes; then
23518 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23519
Reid Spencer2706f8c2004-09-19 23:53:36 +000023520
Reid Spencera773bd52006-08-04 18:18:08 +000023521{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23522echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023523if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23525else
23526 lt_cv_prog_compiler_rtti_exceptions=no
23527 ac_outfile=conftest.$ac_objext
23528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23529 lt_compiler_flag="-fno-rtti -fno-exceptions"
23530 # Insert the option either (1) after the last *FLAGS variable, or
23531 # (2) before a word containing "conftest.", or (3) at the end.
23532 # Note that $ac_compile itself does not contain backslashes and begins
23533 # with a dollar sign (not a hyphen), so the echo should work correctly.
23534 # The option is referenced via a variable to avoid confusing sed.
23535 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23538 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000023539 (eval echo "\"\$as_me:23536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023540 (eval "$lt_compile" 2>conftest.err)
23541 ac_status=$?
23542 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000023543 echo "$as_me:23540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023544 if (exit $ac_status) && test -s "$ac_outfile"; then
23545 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023546 # So say no if there are warnings other than the usual output.
23547 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23549 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023550 lt_cv_prog_compiler_rtti_exceptions=yes
23551 fi
23552 fi
23553 $rm conftest*
23554
23555fi
Reid Spencera773bd52006-08-04 18:18:08 +000023556{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23557echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023558
23559if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23560 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23561else
23562 :
23563fi
23564
23565fi
23566
23567lt_prog_compiler_wl_GCJ=
23568lt_prog_compiler_pic_GCJ=
23569lt_prog_compiler_static_GCJ=
23570
Reid Spencera773bd52006-08-04 18:18:08 +000023571{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23572echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023573
23574 if test "$GCC" = yes; then
23575 lt_prog_compiler_wl_GCJ='-Wl,'
23576 lt_prog_compiler_static_GCJ='-static'
23577
23578 case $host_os in
23579 aix*)
23580 # All AIX code is PIC.
23581 if test "$host_cpu" = ia64; then
23582 # AIX 5 now supports IA64 processor
23583 lt_prog_compiler_static_GCJ='-Bstatic'
23584 fi
23585 ;;
23586
23587 amigaos*)
23588 # FIXME: we need at least 68020 code to build shared libraries, but
23589 # adding the `-m68020' flag to GCC prevents building anything better,
23590 # like `-m68040'.
23591 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23592 ;;
23593
23594 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23595 # PIC is the default for these OSes.
23596 ;;
23597
23598 mingw* | pw32* | os2*)
23599 # This hack is so that the source file can tell whether it is being
23600 # built for inclusion in a dll (and should export symbols for example).
23601 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23602 ;;
23603
23604 darwin* | rhapsody*)
23605 # PIC is the default on this platform
23606 # Common symbols not allowed in MH_DYLIB files
23607 lt_prog_compiler_pic_GCJ='-fno-common'
23608 ;;
23609
Reid Spencera773bd52006-08-04 18:18:08 +000023610 interix3*)
23611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23612 # Instead, we relocate shared libraries at runtime.
23613 ;;
23614
John Criswell47fdd832003-07-14 16:52:07 +000023615 msdosdjgpp*)
23616 # Just because we use GCC doesn't mean we suddenly get shared libraries
23617 # on systems that don't support them.
23618 lt_prog_compiler_can_build_shared_GCJ=no
23619 enable_shared=no
23620 ;;
23621
23622 sysv4*MP*)
23623 if test -d /usr/nec; then
23624 lt_prog_compiler_pic_GCJ=-Kconform_pic
23625 fi
23626 ;;
23627
23628 hpux*)
23629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23630 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023631 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023632 hppa*64*|ia64*)
23633 # +Z the default
23634 ;;
23635 *)
23636 lt_prog_compiler_pic_GCJ='-fPIC'
23637 ;;
23638 esac
23639 ;;
23640
23641 *)
23642 lt_prog_compiler_pic_GCJ='-fPIC'
23643 ;;
23644 esac
23645 else
23646 # PORTME Check for flag to pass linker flags through the system compiler.
23647 case $host_os in
23648 aix*)
23649 lt_prog_compiler_wl_GCJ='-Wl,'
23650 if test "$host_cpu" = ia64; then
23651 # AIX 5 now supports IA64 processor
23652 lt_prog_compiler_static_GCJ='-Bstatic'
23653 else
23654 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23655 fi
23656 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023657 darwin*)
23658 # PIC is the default on this platform
23659 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023660 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023661 xlc*)
23662 lt_prog_compiler_pic_GCJ='-qnocommon'
23663 lt_prog_compiler_wl_GCJ='-Wl,'
23664 ;;
23665 esac
23666 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023667
23668 mingw* | pw32* | os2*)
23669 # This hack is so that the source file can tell whether it is being
23670 # built for inclusion in a dll (and should export symbols for example).
23671 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23672 ;;
23673
23674 hpux9* | hpux10* | hpux11*)
23675 lt_prog_compiler_wl_GCJ='-Wl,'
23676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23677 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023678 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023679 hppa*64*|ia64*)
23680 # +Z the default
23681 ;;
23682 *)
23683 lt_prog_compiler_pic_GCJ='+Z'
23684 ;;
23685 esac
23686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23687 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23688 ;;
23689
23690 irix5* | irix6* | nonstopux*)
23691 lt_prog_compiler_wl_GCJ='-Wl,'
23692 # PIC (with -KPIC) is the default.
23693 lt_prog_compiler_static_GCJ='-non_shared'
23694 ;;
23695
23696 newsos6)
23697 lt_prog_compiler_pic_GCJ='-KPIC'
23698 lt_prog_compiler_static_GCJ='-Bstatic'
23699 ;;
23700
23701 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023702 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023703 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023704 lt_prog_compiler_wl_GCJ='-Wl,'
23705 lt_prog_compiler_pic_GCJ='-KPIC'
23706 lt_prog_compiler_static_GCJ='-static'
23707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023708 pgcc* | pgf77* | pgf90* | pgf95*)
23709 # Portland Group compilers (*not* the Pentium gcc compiler,
23710 # which looks to be a dead project)
23711 lt_prog_compiler_wl_GCJ='-Wl,'
23712 lt_prog_compiler_pic_GCJ='-fpic'
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23714 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023715 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023716 lt_prog_compiler_wl_GCJ='-Wl,'
23717 # All Alpha code is PIC.
23718 lt_prog_compiler_static_GCJ='-non_shared'
23719 ;;
23720 esac
23721 ;;
23722
23723 osf3* | osf4* | osf5*)
23724 lt_prog_compiler_wl_GCJ='-Wl,'
23725 # All OSF/1 code is PIC.
23726 lt_prog_compiler_static_GCJ='-non_shared'
23727 ;;
23728
John Criswell47fdd832003-07-14 16:52:07 +000023729 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023730 lt_prog_compiler_pic_GCJ='-KPIC'
23731 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023732 case $cc_basename in
23733 f77* | f90* | f95*)
23734 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23735 *)
23736 lt_prog_compiler_wl_GCJ='-Wl,';;
23737 esac
John Criswell47fdd832003-07-14 16:52:07 +000023738 ;;
23739
23740 sunos4*)
23741 lt_prog_compiler_wl_GCJ='-Qoption ld '
23742 lt_prog_compiler_pic_GCJ='-PIC'
23743 lt_prog_compiler_static_GCJ='-Bstatic'
23744 ;;
23745
Reid Spencera773bd52006-08-04 18:18:08 +000023746 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023747 lt_prog_compiler_wl_GCJ='-Wl,'
23748 lt_prog_compiler_pic_GCJ='-KPIC'
23749 lt_prog_compiler_static_GCJ='-Bstatic'
23750 ;;
23751
23752 sysv4*MP*)
23753 if test -d /usr/nec ;then
23754 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23755 lt_prog_compiler_static_GCJ='-Bstatic'
23756 fi
23757 ;;
23758
Reid Spencera773bd52006-08-04 18:18:08 +000023759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23760 lt_prog_compiler_wl_GCJ='-Wl,'
23761 lt_prog_compiler_pic_GCJ='-KPIC'
23762 lt_prog_compiler_static_GCJ='-Bstatic'
23763 ;;
23764
23765 unicos*)
23766 lt_prog_compiler_wl_GCJ='-Wl,'
23767 lt_prog_compiler_can_build_shared_GCJ=no
23768 ;;
23769
John Criswell47fdd832003-07-14 16:52:07 +000023770 uts4*)
23771 lt_prog_compiler_pic_GCJ='-pic'
23772 lt_prog_compiler_static_GCJ='-Bstatic'
23773 ;;
23774
23775 *)
23776 lt_prog_compiler_can_build_shared_GCJ=no
23777 ;;
23778 esac
23779 fi
23780
Reid Spencera773bd52006-08-04 18:18:08 +000023781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23782echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023783
23784#
23785# Check to make sure the PIC flag actually works.
23786#
23787if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023788
Reid Spencera773bd52006-08-04 18:18:08 +000023789{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23790echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023791if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23793else
23794 lt_prog_compiler_pic_works_GCJ=no
23795 ac_outfile=conftest.$ac_objext
23796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23797 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23798 # Insert the option either (1) after the last *FLAGS variable, or
23799 # (2) before a word containing "conftest.", or (3) at the end.
23800 # Note that $ac_compile itself does not contain backslashes and begins
23801 # with a dollar sign (not a hyphen), so the echo should work correctly.
23802 # The option is referenced via a variable to avoid confusing sed.
23803 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23806 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000023807 (eval echo "\"\$as_me:23804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023808 (eval "$lt_compile" 2>conftest.err)
23809 ac_status=$?
23810 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000023811 echo "$as_me:23808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023812 if (exit $ac_status) && test -s "$ac_outfile"; then
23813 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023814 # So say no if there are warnings other than the usual output.
23815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023818 lt_prog_compiler_pic_works_GCJ=yes
23819 fi
23820 fi
23821 $rm conftest*
23822
23823fi
Reid Spencera773bd52006-08-04 18:18:08 +000023824{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23825echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023826
23827if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23828 case $lt_prog_compiler_pic_GCJ in
23829 "" | " "*) ;;
23830 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23831 esac
23832else
23833 lt_prog_compiler_pic_GCJ=
23834 lt_prog_compiler_can_build_shared_GCJ=no
23835fi
23836
23837fi
Reid Spencera773bd52006-08-04 18:18:08 +000023838case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023839 # For platforms which do not support PIC, -DPIC is meaningless:
23840 *djgpp*)
23841 lt_prog_compiler_pic_GCJ=
23842 ;;
23843 *)
23844 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23845 ;;
23846esac
23847
Reid Spencera773bd52006-08-04 18:18:08 +000023848#
23849# Check to make sure the static flag actually works.
23850#
23851wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23852{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23853echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23854if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856else
23857 lt_prog_compiler_static_works_GCJ=no
23858 save_LDFLAGS="$LDFLAGS"
23859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23860 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23862 # The linker can only warn and ignore the option if not recognized
23863 # So say no if there are warnings
23864 if test -s conftest.err; then
23865 # Append any errors to the config.log.
23866 cat conftest.err 1>&5
23867 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23869 if diff conftest.exp conftest.er2 >/dev/null; then
23870 lt_prog_compiler_static_works_GCJ=yes
23871 fi
23872 else
23873 lt_prog_compiler_static_works_GCJ=yes
23874 fi
23875 fi
23876 $rm conftest*
23877 LDFLAGS="$save_LDFLAGS"
23878
23879fi
23880{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23881echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23882
23883if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23884 :
23885else
23886 lt_prog_compiler_static_GCJ=
23887fi
23888
23889
23890{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23891echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023892if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23894else
23895 lt_cv_prog_compiler_c_o_GCJ=no
23896 $rm -r conftest 2>/dev/null
23897 mkdir conftest
23898 cd conftest
23899 mkdir out
23900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23901
John Criswell47fdd832003-07-14 16:52:07 +000023902 lt_compiler_flag="-o out/conftest2.$ac_objext"
23903 # Insert the option either (1) after the last *FLAGS variable, or
23904 # (2) before a word containing "conftest.", or (3) at the end.
23905 # Note that $ac_compile itself does not contain backslashes and begins
23906 # with a dollar sign (not a hyphen), so the echo should work correctly.
23907 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23910 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000023911 (eval echo "\"\$as_me:23908: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023912 (eval "$lt_compile" 2>out/conftest.err)
23913 ac_status=$?
23914 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000023915 echo "$as_me:23912: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23917 then
23918 # The compiler can only warn and ignore the option if not recognized
23919 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023920 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023923 lt_cv_prog_compiler_c_o_GCJ=yes
23924 fi
23925 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023926 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023927 $rm conftest*
23928 # SGI C++ compiler will create directory out/ii_files/ for
23929 # template instantiation
23930 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23931 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023932 cd ..
23933 rmdir conftest
23934 $rm conftest*
23935
23936fi
Reid Spencera773bd52006-08-04 18:18:08 +000023937{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23938echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023939
23940
23941hard_links="nottested"
23942if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23943 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023944 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23945echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023946 hard_links=yes
23947 $rm conftest*
23948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23949 touch conftest.a
23950 ln conftest.a conftest.b 2>&5 || hard_links=no
23951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023952 { echo "$as_me:$LINENO: result: $hard_links" >&5
23953echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023954 if test "$hard_links" = no; then
23955 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23956echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23957 need_locks=warn
23958 fi
23959else
23960 need_locks=no
23961fi
23962
Reid Spencera773bd52006-08-04 18:18:08 +000023963{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23964echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023965
23966 runpath_var=
23967 allow_undefined_flag_GCJ=
23968 enable_shared_with_static_runtimes_GCJ=no
23969 archive_cmds_GCJ=
23970 archive_expsym_cmds_GCJ=
23971 old_archive_From_new_cmds_GCJ=
23972 old_archive_from_expsyms_cmds_GCJ=
23973 export_dynamic_flag_spec_GCJ=
23974 whole_archive_flag_spec_GCJ=
23975 thread_safe_flag_spec_GCJ=
23976 hardcode_libdir_flag_spec_GCJ=
23977 hardcode_libdir_flag_spec_ld_GCJ=
23978 hardcode_libdir_separator_GCJ=
23979 hardcode_direct_GCJ=no
23980 hardcode_minus_L_GCJ=no
23981 hardcode_shlibpath_var_GCJ=unsupported
23982 link_all_deplibs_GCJ=unknown
23983 hardcode_automatic_GCJ=no
23984 module_cmds_GCJ=
23985 module_expsym_cmds_GCJ=
23986 always_export_symbols_GCJ=no
23987 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23988 # include_expsyms should be a list of space-separated symbols to be *always*
23989 # included in the symbol list
23990 include_expsyms_GCJ=
23991 # exclude_expsyms can be an extended regexp of symbols to exclude
23992 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23993 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23994 # as well as any symbol that contains `d'.
23995 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23997 # platforms (ab)use it in PIC code, but their linkers get confused if
23998 # the symbol is explicitly referenced. Since portable code cannot
23999 # rely on this symbol name, it's probably fine to never include it in
24000 # preloaded symbol tables.
24001 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024002 # Just being paranoid about ensuring that cc_basename is set.
24003 for cc_temp in $compiler""; do
24004 case $cc_temp in
24005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24007 \-*) ;;
24008 *) break;;
24009 esac
24010done
24011cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024012
24013 case $host_os in
24014 cygwin* | mingw* | pw32*)
24015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24016 # When not using gcc, we currently assume that we are using
24017 # Microsoft Visual C++.
24018 if test "$GCC" != yes; then
24019 with_gnu_ld=no
24020 fi
24021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024022 interix*)
24023 # we just hope/assume this is gcc and not c89 (= MSVC++)
24024 with_gnu_ld=yes
24025 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024026 openbsd*)
24027 with_gnu_ld=no
24028 ;;
24029 esac
24030
24031 ld_shlibs_GCJ=yes
24032 if test "$with_gnu_ld" = yes; then
24033 # If archive_cmds runs LD, not CC, wlarc should be empty
24034 wlarc='${wl}'
24035
Reid Spencera773bd52006-08-04 18:18:08 +000024036 # Set some defaults for GNU ld with shared library support. These
24037 # are reset later if shared libraries are not supported. Putting them
24038 # here allows them to be overridden if necessary.
24039 runpath_var=LD_RUN_PATH
24040 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24041 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24042 # ancient GNU ld didn't support --whole-archive et. al.
24043 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24044 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24045 else
24046 whole_archive_flag_spec_GCJ=
24047 fi
24048 supports_anon_versioning=no
24049 case `$LD -v 2>/dev/null` in
24050 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24051 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24052 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24053 *\ 2.11.*) ;; # other 2.11 versions
24054 *) supports_anon_versioning=yes ;;
24055 esac
24056
John Criswell47fdd832003-07-14 16:52:07 +000024057 # See if GNU ld supports shared libraries.
24058 case $host_os in
24059 aix3* | aix4* | aix5*)
24060 # On AIX/PPC, the GNU linker is very broken
24061 if test "$host_cpu" != ia64; then
24062 ld_shlibs_GCJ=no
24063 cat <<EOF 1>&2
24064
24065*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24066*** to be unable to reliably create shared libraries on AIX.
24067*** Therefore, libtool is disabling shared libraries support. If you
24068*** really care for shared libraries, you may want to modify your PATH
24069*** so that a non-GNU linker is found, and then restart.
24070
24071EOF
24072 fi
24073 ;;
24074
24075 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024076 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 +000024077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24078 hardcode_minus_L_GCJ=yes
24079
24080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24081 # that the semantics of dynamic libraries on AmigaOS, at least up
24082 # to version 4, is to share data among multiple programs linked
24083 # with the same dynamic library. Since this doesn't match the
24084 # behavior of shared libraries on other platforms, we can't use
24085 # them.
24086 ld_shlibs_GCJ=no
24087 ;;
24088
24089 beos*)
24090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24091 allow_undefined_flag_GCJ=unsupported
24092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24093 # support --undefined. This deserves some investigation. FIXME
24094 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24095 else
24096 ld_shlibs_GCJ=no
24097 fi
24098 ;;
24099
24100 cygwin* | mingw* | pw32*)
24101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24102 # as there is no search path for DLLs.
24103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24104 allow_undefined_flag_GCJ=unsupported
24105 always_export_symbols_GCJ=no
24106 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024107 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 +000024108
24109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024110 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 +000024111 # If the export-symbols file already is a .def file (1st line
24112 # is EXPORTS), use it as is; otherwise, prepend...
24113 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24114 cp $export_symbols $output_objdir/$soname.def;
24115 else
24116 echo EXPORTS > $output_objdir/$soname.def;
24117 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024118 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024119 $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 +000024120 else
Reid Spencera773bd52006-08-04 18:18:08 +000024121 ld_shlibs_GCJ=no
24122 fi
24123 ;;
24124
24125 interix3*)
24126 hardcode_direct_GCJ=no
24127 hardcode_shlibpath_var_GCJ=no
24128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24129 export_dynamic_flag_spec_GCJ='${wl}-E'
24130 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24131 # Instead, shared libraries are loaded at an image base (0x10000000 by
24132 # default) and relocated if they conflict, which is a slow very memory
24133 # consuming and fragmenting process. To avoid this, we pick a random,
24134 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24135 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24136 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'
24137 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'
24138 ;;
24139
24140 linux*)
24141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24142 tmp_addflag=
24143 case $cc_basename,$host_cpu in
24144 pgcc*) # Portland Group C compiler
24145 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'
24146 tmp_addflag=' $pic_flag'
24147 ;;
24148 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24149 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'
24150 tmp_addflag=' $pic_flag -Mnomain' ;;
24151 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24152 tmp_addflag=' -i_dynamic' ;;
24153 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24154 tmp_addflag=' -i_dynamic -nofor_main' ;;
24155 ifc* | ifort*) # Intel Fortran compiler
24156 tmp_addflag=' -nofor_main' ;;
24157 esac
24158 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24159
24160 if test $supports_anon_versioning = yes; then
24161 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24163 $echo "local: *; };" >> $output_objdir/$libname.ver~
24164 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24165 fi
24166 else
24167 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024168 fi
24169 ;;
24170
24171 netbsd*)
24172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24173 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24174 wlarc=
24175 else
24176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24178 fi
24179 ;;
24180
Reid Spencera773bd52006-08-04 18:18:08 +000024181 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024182 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24183 ld_shlibs_GCJ=no
24184 cat <<EOF 1>&2
24185
24186*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24187*** create shared libraries on Solaris systems. Therefore, libtool
24188*** is disabling shared libraries support. We urge you to upgrade GNU
24189*** binutils to release 2.9.1 or newer. Another option is to modify
24190*** your PATH or compiler configuration so that the native linker is
24191*** used, and then restart.
24192
24193EOF
24194 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24196 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24197 else
24198 ld_shlibs_GCJ=no
24199 fi
24200 ;;
24201
Reid Spencera773bd52006-08-04 18:18:08 +000024202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24203 case `$LD -v 2>&1` in
24204 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24205 ld_shlibs_GCJ=no
24206 cat <<_LT_EOF 1>&2
24207
24208*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24209*** reliably create shared libraries on SCO systems. Therefore, libtool
24210*** is disabling shared libraries support. We urge you to upgrade GNU
24211*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24212*** your PATH or compiler configuration so that the native linker is
24213*** used, and then restart.
24214
24215_LT_EOF
24216 ;;
24217 *)
24218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24219 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24222 else
24223 ld_shlibs_GCJ=no
24224 fi
24225 ;;
24226 esac
24227 ;;
24228
John Criswell47fdd832003-07-14 16:52:07 +000024229 sunos4*)
24230 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24231 wlarc=
24232 hardcode_direct_GCJ=yes
24233 hardcode_shlibpath_var_GCJ=no
24234 ;;
24235
24236 *)
24237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24239 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24240 else
24241 ld_shlibs_GCJ=no
24242 fi
24243 ;;
24244 esac
24245
Reid Spencera773bd52006-08-04 18:18:08 +000024246 if test "$ld_shlibs_GCJ" = no; then
24247 runpath_var=
24248 hardcode_libdir_flag_spec_GCJ=
24249 export_dynamic_flag_spec_GCJ=
24250 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024251 fi
24252 else
24253 # PORTME fill in a description of your system's linker (not GNU ld)
24254 case $host_os in
24255 aix3*)
24256 allow_undefined_flag_GCJ=unsupported
24257 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024258 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 +000024259 # Note: this linker hardcodes the directories in LIBPATH if there
24260 # are no directories specified by -L.
24261 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024263 # Neither direct hardcoding nor static linking is supported with a
24264 # broken collect2.
24265 hardcode_direct_GCJ=unsupported
24266 fi
24267 ;;
24268
24269 aix4* | aix5*)
24270 if test "$host_cpu" = ia64; then
24271 # On IA64, the linker does run time linking by default, so we don't
24272 # have to do anything special.
24273 aix_use_runtimelinking=no
24274 exp_sym_flag='-Bexport'
24275 no_entry_flag=""
24276 else
24277 # If we're using GNU nm, then we don't want the "-C" option.
24278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24279 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24280 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'
24281 else
24282 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'
24283 fi
24284 aix_use_runtimelinking=no
24285
24286 # Test if we are trying to use run time linking or normal
24287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24288 # need to do runtime linking.
24289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24290 for ld_flag in $LDFLAGS; do
24291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24292 aix_use_runtimelinking=yes
24293 break
24294 fi
24295 done
Reid Spencera773bd52006-08-04 18:18:08 +000024296 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024297 esac
24298
24299 exp_sym_flag='-bexport'
24300 no_entry_flag='-bnoentry'
24301 fi
24302
24303 # When large executables or shared objects are built, AIX ld can
24304 # have problems creating the table of contents. If linking a library
24305 # or program results in "error TOC overflow" add -mminimal-toc to
24306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24308
24309 archive_cmds_GCJ=''
24310 hardcode_direct_GCJ=yes
24311 hardcode_libdir_separator_GCJ=':'
24312 link_all_deplibs_GCJ=yes
24313
24314 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024315 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024316 # We only want to do this on AIX 4.2 and lower, the check
24317 # below for broken collect2 doesn't work under 4.3+
24318 collect2name=`${CC} -print-prog-name=collect2`
24319 if test -f "$collect2name" && \
24320 strings "$collect2name" | grep resolve_lib_name >/dev/null
24321 then
24322 # We have reworked collect2
24323 hardcode_direct_GCJ=yes
24324 else
24325 # We have old collect2
24326 hardcode_direct_GCJ=unsupported
24327 # It fails to find uninstalled libraries when the uninstalled
24328 # path is not listed in the libpath. Setting hardcode_minus_L
24329 # to unsupported forces relinking
24330 hardcode_minus_L_GCJ=yes
24331 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24332 hardcode_libdir_separator_GCJ=
24333 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024335 esac
24336 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024337 if test "$aix_use_runtimelinking" = yes; then
24338 shared_flag="$shared_flag "'${wl}-G'
24339 fi
John Criswell47fdd832003-07-14 16:52:07 +000024340 else
24341 # not using gcc
24342 if test "$host_cpu" = ia64; then
24343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24344 # chokes on -Wl,-G. The following line is correct:
24345 shared_flag='-G'
24346 else
Reid Spencera773bd52006-08-04 18:18:08 +000024347 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024348 shared_flag='${wl}-G'
24349 else
24350 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024351 fi
John Criswell47fdd832003-07-14 16:52:07 +000024352 fi
24353 fi
24354
24355 # It seems that -bexpall does not export symbols beginning with
24356 # underscore (_), so it is better to generate a list of symbols to export.
24357 always_export_symbols_GCJ=yes
24358 if test "$aix_use_runtimelinking" = yes; then
24359 # Warning - without using the other runtime loading flags (-brtl),
24360 # -berok will link without error, but may produce a broken library.
24361 allow_undefined_flag_GCJ='-berok'
24362 # Determine the default libpath from the value encoded in an empty executable.
24363 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024364/* confdefs.h. */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024369
John Criswell47fdd832003-07-14 16:52:07 +000024370int
24371main ()
24372{
24373
24374 ;
24375 return 0;
24376}
24377_ACEOF
24378rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024379if { (ac_try="$ac_link"
24380case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24383esac
24384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024387 grep -v '^ *+' conftest.er1 >conftest.err
24388 rm -f conftest.er1
24389 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24393 { (case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24396esac
24397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24398 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; } &&
24402 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024403 { (case "(($ac_try" in
24404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405 *) ac_try_echo=$ac_try;;
24406esac
24407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412
24413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24414}'`
24415# Check for a 64-bit object if we didn't find anything.
24416if 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; }
24417}'`; fi
24418else
24419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024420sed 's/^/| /' conftest.$ac_ext >&5
24421
Reid Spencera773bd52006-08-04 18:18:08 +000024422
John Criswell47fdd832003-07-14 16:52:07 +000024423fi
Reid Spencera773bd52006-08-04 18:18:08 +000024424
24425rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024426 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24428
24429 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024430 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 +000024431 else
24432 if test "$host_cpu" = ia64; then
24433 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24434 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024435 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 +000024436 else
24437 # Determine the default libpath from the value encoded in an empty executable.
24438 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024439/* confdefs.h. */
24440_ACEOF
24441cat confdefs.h >>conftest.$ac_ext
24442cat >>conftest.$ac_ext <<_ACEOF
24443/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024444
John Criswell47fdd832003-07-14 16:52:07 +000024445int
24446main ()
24447{
24448
24449 ;
24450 return 0;
24451}
24452_ACEOF
24453rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024454if { (ac_try="$ac_link"
24455case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24458esac
24459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24468 { (case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24471esac
24472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024478 { (case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24481esac
24482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024484 ac_status=$?
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; }; then
24487
24488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24489}'`
24490# Check for a 64-bit object if we didn't find anything.
24491if 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; }
24492}'`; fi
24493else
24494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024495sed 's/^/| /' conftest.$ac_ext >&5
24496
Reid Spencera773bd52006-08-04 18:18:08 +000024497
John Criswell47fdd832003-07-14 16:52:07 +000024498fi
Reid Spencera773bd52006-08-04 18:18:08 +000024499
24500rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024501 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24503
24504 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24505 # Warning - without using the other run time loading flags,
24506 # -berok will link without error, but may produce a broken library.
24507 no_undefined_flag_GCJ=' ${wl}-bernotok'
24508 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024509 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024510 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024511 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024512 # This is similar to how AIX traditionally builds its shared libraries.
24513 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 +000024514 fi
24515 fi
24516 ;;
24517
24518 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024519 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 +000024520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24521 hardcode_minus_L_GCJ=yes
24522 # see comment about different semantics on the GNU ld section
24523 ld_shlibs_GCJ=no
24524 ;;
24525
Reid Spencer2706f8c2004-09-19 23:53:36 +000024526 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024527 export_dynamic_flag_spec_GCJ=-rdynamic
24528 ;;
24529
24530 cygwin* | mingw* | pw32*)
24531 # When not using gcc, we currently assume that we are using
24532 # Microsoft Visual C++.
24533 # hardcode_libdir_flag_spec is actually meaningless, as there is
24534 # no search path for DLLs.
24535 hardcode_libdir_flag_spec_GCJ=' '
24536 allow_undefined_flag_GCJ=unsupported
24537 # Tell ltmain to make .lib files, not .a files.
24538 libext=lib
24539 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024540 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024541 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024542 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 +000024543 # The linker will automatically build a .lib file if we build a DLL.
24544 old_archive_From_new_cmds_GCJ='true'
24545 # FIXME: Should let the user specify the lib program.
24546 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024547 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024548 enable_shared_with_static_runtimes_GCJ=yes
24549 ;;
24550
24551 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024552 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024553 rhapsody* | darwin1.[012])
24554 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24555 ;;
24556 *) # Darwin 1.3 on
24557 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24558 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24559 else
24560 case ${MACOSX_DEPLOYMENT_TARGET} in
24561 10.[012])
24562 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24563 ;;
24564 10.*)
24565 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24566 ;;
24567 esac
24568 fi
24569 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024570 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024571 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024572 hardcode_direct_GCJ=no
24573 hardcode_automatic_GCJ=yes
24574 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024575 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024576 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024577 if test "$GCC" = yes ; then
24578 output_verbose_link_cmd='echo'
24579 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24580 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024581 # 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 +000024582 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}'
24583 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 +000024584 else
Reid Spencera773bd52006-08-04 18:18:08 +000024585 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024586 xlc*)
24587 output_verbose_link_cmd='echo'
24588 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24589 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024590 # 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 +000024591 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}'
24592 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 +000024593 ;;
24594 *)
24595 ld_shlibs_GCJ=no
24596 ;;
24597 esac
John Criswell47fdd832003-07-14 16:52:07 +000024598 fi
24599 ;;
24600
24601 dgux*)
24602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24604 hardcode_shlibpath_var_GCJ=no
24605 ;;
24606
24607 freebsd1*)
24608 ld_shlibs_GCJ=no
24609 ;;
24610
24611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24612 # support. Future versions do this automatically, but an explicit c++rt0.o
24613 # does not break anything, and helps significantly (at the cost of a little
24614 # extra space).
24615 freebsd2.2*)
24616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24618 hardcode_direct_GCJ=yes
24619 hardcode_shlibpath_var_GCJ=no
24620 ;;
24621
24622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24623 freebsd2*)
24624 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24625 hardcode_direct_GCJ=yes
24626 hardcode_minus_L_GCJ=yes
24627 hardcode_shlibpath_var_GCJ=no
24628 ;;
24629
24630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024631 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024632 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24633 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24634 hardcode_direct_GCJ=yes
24635 hardcode_shlibpath_var_GCJ=no
24636 ;;
24637
24638 hpux9*)
24639 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024640 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 +000024641 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024642 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 +000024643 fi
24644 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24645 hardcode_libdir_separator_GCJ=:
24646 hardcode_direct_GCJ=yes
24647
24648 # hardcode_minus_L: Not really in the search PATH,
24649 # but as the default location of the library.
24650 hardcode_minus_L_GCJ=yes
24651 export_dynamic_flag_spec_GCJ='${wl}-E'
24652 ;;
24653
Reid Spencera773bd52006-08-04 18:18:08 +000024654 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024655 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024656 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24657 else
24658 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24659 fi
24660 if test "$with_gnu_ld" = no; then
24661 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24662 hardcode_libdir_separator_GCJ=:
24663
24664 hardcode_direct_GCJ=yes
24665 export_dynamic_flag_spec_GCJ='${wl}-E'
24666
24667 # hardcode_minus_L: Not really in the search PATH,
24668 # but as the default location of the library.
24669 hardcode_minus_L_GCJ=yes
24670 fi
24671 ;;
24672
24673 hpux11*)
24674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24675 case $host_cpu in
24676 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024679 ia64*)
24680 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24681 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024682 *)
24683 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24684 ;;
24685 esac
24686 else
Reid Spencera773bd52006-08-04 18:18:08 +000024687 case $host_cpu in
24688 hppa*64*)
24689 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24690 ;;
24691 ia64*)
24692 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024693 ;;
24694 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024695 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 +000024696 ;;
24697 esac
24698 fi
24699 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024700 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24701 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024702
Reid Spencera773bd52006-08-04 18:18:08 +000024703 case $host_cpu in
24704 hppa*64*|ia64*)
24705 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24706 hardcode_direct_GCJ=no
24707 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024708 ;;
24709 *)
John Criswell47fdd832003-07-14 16:52:07 +000024710 hardcode_direct_GCJ=yes
24711 export_dynamic_flag_spec_GCJ='${wl}-E'
24712
24713 # hardcode_minus_L: Not really in the search PATH,
24714 # but as the default location of the library.
24715 hardcode_minus_L_GCJ=yes
24716 ;;
24717 esac
24718 fi
24719 ;;
24720
24721 irix5* | irix6* | nonstopux*)
24722 if test "$GCC" = yes; then
24723 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'
24724 else
24725 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'
24726 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24727 fi
24728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24729 hardcode_libdir_separator_GCJ=:
24730 link_all_deplibs_GCJ=yes
24731 ;;
24732
24733 netbsd*)
24734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24735 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24736 else
24737 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24738 fi
24739 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24740 hardcode_direct_GCJ=yes
24741 hardcode_shlibpath_var_GCJ=no
24742 ;;
24743
24744 newsos6)
24745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24746 hardcode_direct_GCJ=yes
24747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24748 hardcode_libdir_separator_GCJ=:
24749 hardcode_shlibpath_var_GCJ=no
24750 ;;
24751
24752 openbsd*)
24753 hardcode_direct_GCJ=yes
24754 hardcode_shlibpath_var_GCJ=no
24755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24756 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024757 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 +000024758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24759 export_dynamic_flag_spec_GCJ='${wl}-E'
24760 else
24761 case $host_os in
24762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24763 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24764 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24765 ;;
24766 *)
24767 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24769 ;;
24770 esac
24771 fi
24772 ;;
24773
24774 os2*)
24775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24776 hardcode_minus_L_GCJ=yes
24777 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024778 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 +000024779 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24780 ;;
24781
24782 osf3*)
24783 if test "$GCC" = yes; then
24784 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24785 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'
24786 else
24787 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24788 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'
24789 fi
24790 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24791 hardcode_libdir_separator_GCJ=:
24792 ;;
24793
24794 osf4* | osf5*) # as osf3* with the addition of -msym flag
24795 if test "$GCC" = yes; then
24796 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24797 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'
24798 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24799 else
24800 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24801 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 +000024802 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 +000024803 $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 +000024804
John Criswell47fdd832003-07-14 16:52:07 +000024805 # Both c and cxx compiler support -rpath directly
24806 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24807 fi
24808 hardcode_libdir_separator_GCJ=:
24809 ;;
24810
John Criswell47fdd832003-07-14 16:52:07 +000024811 solaris*)
24812 no_undefined_flag_GCJ=' -z text'
24813 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024814 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024815 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024816 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24817 $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 +000024818 else
Reid Spencera773bd52006-08-04 18:18:08 +000024819 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024820 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024821 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24822 $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 +000024823 fi
24824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24825 hardcode_shlibpath_var_GCJ=no
24826 case $host_os in
24827 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024828 *)
24829 # The compiler driver will combine linker options so we
24830 # cannot just pass the convience library names through
24831 # without $wl, iff we do not link with $LD.
24832 # Luckily, gcc supports the same syntax we need for Sun Studio.
24833 # Supported since Solaris 2.6 (maybe 2.5.1?)
24834 case $wlarc in
24835 '')
24836 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24837 *)
24838 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' ;;
24839 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024840 esac
24841 link_all_deplibs_GCJ=yes
24842 ;;
24843
24844 sunos4*)
24845 if test "x$host_vendor" = xsequent; then
24846 # Use $CC to link under sequent, because it throws in some extra .o
24847 # files that make .init and .fini sections work.
24848 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24849 else
24850 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24851 fi
24852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24853 hardcode_direct_GCJ=yes
24854 hardcode_minus_L_GCJ=yes
24855 hardcode_shlibpath_var_GCJ=no
24856 ;;
24857
24858 sysv4)
24859 case $host_vendor in
24860 sni)
24861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24862 hardcode_direct_GCJ=yes # is this really true???
24863 ;;
24864 siemens)
24865 ## LD is ld it makes a PLAMLIB
24866 ## CC just makes a GrossModule.
24867 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24868 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24869 hardcode_direct_GCJ=no
24870 ;;
24871 motorola)
24872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24873 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24874 ;;
24875 esac
24876 runpath_var='LD_RUN_PATH'
24877 hardcode_shlibpath_var_GCJ=no
24878 ;;
24879
24880 sysv4.3*)
24881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24882 hardcode_shlibpath_var_GCJ=no
24883 export_dynamic_flag_spec_GCJ='-Bexport'
24884 ;;
24885
24886 sysv4*MP*)
24887 if test -d /usr/nec; then
24888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24889 hardcode_shlibpath_var_GCJ=no
24890 runpath_var=LD_RUN_PATH
24891 hardcode_runpath_var=yes
24892 ld_shlibs_GCJ=yes
24893 fi
24894 ;;
24895
Reid Spencera773bd52006-08-04 18:18:08 +000024896 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24897 no_undefined_flag_GCJ='${wl}-z,text'
24898 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024899 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024900 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024901
John Criswell47fdd832003-07-14 16:52:07 +000024902 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024903 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 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 +000024905 else
Reid Spencera773bd52006-08-04 18:18:08 +000024906 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24907 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 +000024908 fi
John Criswell47fdd832003-07-14 16:52:07 +000024909 ;;
24910
Reid Spencera773bd52006-08-04 18:18:08 +000024911 sysv5* | sco3.2v5* | sco5v6*)
24912 # Note: We can NOT use -z defs as we might desire, because we do not
24913 # link with -lc, and that would cause any symbols used from libc to
24914 # always be unresolved, which means just about no library would
24915 # ever link correctly. If we're not using GNU ld we use -z text
24916 # though, which does catch some bad symbols but isn't as heavy-handed
24917 # as -z defs.
24918 no_undefined_flag_GCJ='${wl}-z,text'
24919 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24920 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024921 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024922 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24923 hardcode_libdir_separator_GCJ=':'
24924 link_all_deplibs_GCJ=yes
24925 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024926 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024927
24928 if test "$GCC" = yes; then
24929 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24931 else
24932 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24933 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24934 fi
John Criswell47fdd832003-07-14 16:52:07 +000024935 ;;
24936
24937 uts4*)
24938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24940 hardcode_shlibpath_var_GCJ=no
24941 ;;
24942
24943 *)
24944 ld_shlibs_GCJ=no
24945 ;;
24946 esac
24947 fi
24948
Reid Spencera773bd52006-08-04 18:18:08 +000024949{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24950echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024951test "$ld_shlibs_GCJ" = no && can_build_shared=no
24952
John Criswell47fdd832003-07-14 16:52:07 +000024953#
24954# Do we need to explicitly link libc?
24955#
24956case "x$archive_cmds_need_lc_GCJ" in
24957x|xyes)
24958 # Assume -lc should be added
24959 archive_cmds_need_lc_GCJ=yes
24960
24961 if test "$enable_shared" = yes && test "$GCC" = yes; then
24962 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024963 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024964 # FIXME: we may have to deal with multi-command sequences.
24965 ;;
24966 '$CC '*)
24967 # Test whether the compiler implicitly links with -lc since on some
24968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24969 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024970 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24971echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024972 $rm conftest*
24973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24974
24975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24976 (eval $ac_compile) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } 2>conftest.err; then
24980 soname=conftest
24981 lib=conftest
24982 libobjs=conftest.$ac_objext
24983 deplibs=
24984 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024985 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024986 compiler_flags=-v
24987 linker_flags=-v
24988 verstring=
24989 output_objdir=.
24990 libname=conftest
24991 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24992 allow_undefined_flag_GCJ=
24993 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24994 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24995 ac_status=$?
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }
24998 then
24999 archive_cmds_need_lc_GCJ=no
25000 else
25001 archive_cmds_need_lc_GCJ=yes
25002 fi
25003 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25004 else
25005 cat conftest.err 1>&5
25006 fi
25007 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025008 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25009echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025010 ;;
25011 esac
25012 fi
25013 ;;
25014esac
25015
Reid Spencera773bd52006-08-04 18:18:08 +000025016{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25017echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025018library_names_spec=
25019libname_spec='lib$name'
25020soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025021shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025022postinstall_cmds=
25023postuninstall_cmds=
25024finish_cmds=
25025finish_eval=
25026shlibpath_var=
25027shlibpath_overrides_runpath=unknown
25028version_type=none
25029dynamic_linker="$host_os ld.so"
25030sys_lib_dlsearch_path_spec="/lib /usr/lib"
25031if test "$GCC" = yes; then
25032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25033 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25034 # if the path contains ";" then we assume it to be the separator
25035 # otherwise default to the standard path separator (i.e. ":") - it is
25036 # assumed that no part of a normal pathname contains ";" but that should
25037 # okay in the real world where ";" in dirpaths is itself problematic.
25038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25039 else
25040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25041 fi
25042else
25043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25044fi
25045need_lib_prefix=unknown
25046hardcode_into_libs=no
25047
25048# when you set need_version to no, make sure it does not cause -set_version
25049# flags to be left without arguments
25050need_version=unknown
25051
25052case $host_os in
25053aix3*)
25054 version_type=linux
25055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25056 shlibpath_var=LIBPATH
25057
25058 # AIX 3 has no versioning support, so we append a major version to the name.
25059 soname_spec='${libname}${release}${shared_ext}$major'
25060 ;;
25061
25062aix4* | aix5*)
25063 version_type=linux
25064 need_lib_prefix=no
25065 need_version=no
25066 hardcode_into_libs=yes
25067 if test "$host_cpu" = ia64; then
25068 # AIX 5 supports IA64
25069 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25070 shlibpath_var=LD_LIBRARY_PATH
25071 else
25072 # With GCC up to 2.95.x, collect2 would create an import file
25073 # for dependence libraries. The import file would start with
25074 # the line `#! .'. This would cause the generated library to
25075 # depend on `.', always an invalid library. This was fixed in
25076 # development snapshots of GCC prior to 3.0.
25077 case $host_os in
25078 aix4 | aix4.[01] | aix4.[01].*)
25079 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25080 echo ' yes '
25081 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25082 :
25083 else
25084 can_build_shared=no
25085 fi
25086 ;;
25087 esac
25088 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25089 # soname into executable. Probably we can add versioning support to
25090 # collect2, so additional links can be useful in future.
25091 if test "$aix_use_runtimelinking" = yes; then
25092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25093 # instead of lib<name>.a to let people know that these are not
25094 # typical AIX shared libraries.
25095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25096 else
25097 # We preserve .a as extension for shared libraries through AIX4.2
25098 # and later when we are not doing run time linking.
25099 library_names_spec='${libname}${release}.a $libname.a'
25100 soname_spec='${libname}${release}${shared_ext}$major'
25101 fi
25102 shlibpath_var=LIBPATH
25103 fi
25104 ;;
25105
25106amigaos*)
25107 library_names_spec='$libname.ixlibrary $libname.a'
25108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025109 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 +000025110 ;;
25111
25112beos*)
25113 library_names_spec='${libname}${shared_ext}'
25114 dynamic_linker="$host_os ld.so"
25115 shlibpath_var=LIBRARY_PATH
25116 ;;
25117
Reid Spencer2706f8c2004-09-19 23:53:36 +000025118bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025119 version_type=linux
25120 need_version=no
25121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25122 soname_spec='${libname}${release}${shared_ext}$major'
25123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25124 shlibpath_var=LD_LIBRARY_PATH
25125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25127 # the default ld.so.conf also contains /usr/contrib/lib and
25128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25129 # libtool to hard-code these into programs
25130 ;;
25131
25132cygwin* | mingw* | pw32*)
25133 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025134 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025135 need_version=no
25136 need_lib_prefix=no
25137
25138 case $GCC,$host_os in
25139 yes,cygwin* | yes,mingw* | yes,pw32*)
25140 library_names_spec='$libname.dll.a'
25141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025142 postinstall_cmds='base_file=`basename \${file}`~
25143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25144 dldir=$destdir/`dirname \$dlpath`~
25145 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025146 $install_prog $dir/$dlname \$dldir/$dlname~
25147 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25149 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025150 $rm \$dlpath'
25151 shlibpath_overrides_runpath=yes
25152
25153 case $host_os in
25154 cygwin*)
25155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25156 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 +000025157 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025158 ;;
25159 mingw*)
25160 # MinGW DLLs use traditional 'lib' prefix
25161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25163 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25164 # It is most probably a Windows format PATH printed by
25165 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25166 # path with ; separators, and with drive letters. We can handle the
25167 # drive letters (cygwin fileutils understands them), so leave them,
25168 # especially as we might pass files found there to a mingw objdump,
25169 # which wouldn't understand a cygwinified path. Ahh.
25170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25171 else
25172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25173 fi
25174 ;;
25175 pw32*)
25176 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025177 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 +000025178 ;;
25179 esac
25180 ;;
25181
25182 *)
25183 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25184 ;;
25185 esac
25186 dynamic_linker='Win32 ld.exe'
25187 # FIXME: first we should search . and the directory the executable is in
25188 shlibpath_var=PATH
25189 ;;
25190
25191darwin* | rhapsody*)
25192 dynamic_linker="$host_os dyld"
25193 version_type=darwin
25194 need_lib_prefix=no
25195 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025196 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025197 soname_spec='${libname}${release}${major}$shared_ext'
25198 shlibpath_overrides_runpath=yes
25199 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025200 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025201 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025202 if test "$GCC" = yes; then
25203 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"`
25204 else
25205 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025206 fi
25207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25208 ;;
25209
25210dgux*)
25211 version_type=linux
25212 need_lib_prefix=no
25213 need_version=no
25214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25215 soname_spec='${libname}${release}${shared_ext}$major'
25216 shlibpath_var=LD_LIBRARY_PATH
25217 ;;
25218
25219freebsd1*)
25220 dynamic_linker=no
25221 ;;
25222
Reid Spencer2706f8c2004-09-19 23:53:36 +000025223kfreebsd*-gnu)
25224 version_type=linux
25225 need_lib_prefix=no
25226 need_version=no
25227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25228 soname_spec='${libname}${release}${shared_ext}$major'
25229 shlibpath_var=LD_LIBRARY_PATH
25230 shlibpath_overrides_runpath=no
25231 hardcode_into_libs=yes
25232 dynamic_linker='GNU ld.so'
25233 ;;
25234
Reid Spencera773bd52006-08-04 18:18:08 +000025235freebsd* | dragonfly*)
25236 # DragonFly does not have aout. When/if they implement a new
25237 # versioning mechanism, adjust this.
25238 if test -x /usr/bin/objformat; then
25239 objformat=`/usr/bin/objformat`
25240 else
25241 case $host_os in
25242 freebsd[123]*) objformat=aout ;;
25243 *) objformat=elf ;;
25244 esac
25245 fi
John Criswell47fdd832003-07-14 16:52:07 +000025246 version_type=freebsd-$objformat
25247 case $version_type in
25248 freebsd-elf*)
25249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25250 need_version=no
25251 need_lib_prefix=no
25252 ;;
25253 freebsd-*)
25254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25255 need_version=yes
25256 ;;
25257 esac
25258 shlibpath_var=LD_LIBRARY_PATH
25259 case $host_os in
25260 freebsd2*)
25261 shlibpath_overrides_runpath=yes
25262 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025263 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025264 shlibpath_overrides_runpath=yes
25265 hardcode_into_libs=yes
25266 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025267 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25268 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025269 shlibpath_overrides_runpath=no
25270 hardcode_into_libs=yes
25271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025272 freebsd*) # from 4.6 on
25273 shlibpath_overrides_runpath=yes
25274 hardcode_into_libs=yes
25275 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025276 esac
25277 ;;
25278
25279gnu*)
25280 version_type=linux
25281 need_lib_prefix=no
25282 need_version=no
25283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25284 soname_spec='${libname}${release}${shared_ext}$major'
25285 shlibpath_var=LD_LIBRARY_PATH
25286 hardcode_into_libs=yes
25287 ;;
25288
25289hpux9* | hpux10* | hpux11*)
25290 # Give a soname corresponding to the major version so that dld.sl refuses to
25291 # link against other versions.
25292 version_type=sunos
25293 need_lib_prefix=no
25294 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025295 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025296 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025297 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025298 hardcode_into_libs=yes
25299 dynamic_linker="$host_os dld.so"
25300 shlibpath_var=LD_LIBRARY_PATH
25301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25303 soname_spec='${libname}${release}${shared_ext}$major'
25304 if test "X$HPUX_IA64_MODE" = X32; then
25305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25306 else
25307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25308 fi
25309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25310 ;;
25311 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025312 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025313 hardcode_into_libs=yes
25314 dynamic_linker="$host_os dld.sl"
25315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25318 soname_spec='${libname}${release}${shared_ext}$major'
25319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25321 ;;
25322 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025323 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025324 dynamic_linker="$host_os dld.sl"
25325 shlibpath_var=SHLIB_PATH
25326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25328 soname_spec='${libname}${release}${shared_ext}$major'
25329 ;;
25330 esac
25331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25332 postinstall_cmds='chmod 555 $lib'
25333 ;;
25334
Reid Spencera773bd52006-08-04 18:18:08 +000025335interix3*)
25336 version_type=linux
25337 need_lib_prefix=no
25338 need_version=no
25339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25340 soname_spec='${libname}${release}${shared_ext}$major'
25341 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25342 shlibpath_var=LD_LIBRARY_PATH
25343 shlibpath_overrides_runpath=no
25344 hardcode_into_libs=yes
25345 ;;
25346
John Criswell47fdd832003-07-14 16:52:07 +000025347irix5* | irix6* | nonstopux*)
25348 case $host_os in
25349 nonstopux*) version_type=nonstopux ;;
25350 *)
25351 if test "$lt_cv_prog_gnu_ld" = yes; then
25352 version_type=linux
25353 else
25354 version_type=irix
25355 fi ;;
25356 esac
25357 need_lib_prefix=no
25358 need_version=no
25359 soname_spec='${libname}${release}${shared_ext}$major'
25360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25361 case $host_os in
25362 irix5* | nonstopux*)
25363 libsuff= shlibsuff=
25364 ;;
25365 *)
25366 case $LD in # libtool.m4 will add one of these switches to LD
25367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25368 libsuff= shlibsuff= libmagic=32-bit;;
25369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25370 libsuff=32 shlibsuff=N32 libmagic=N32;;
25371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25372 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25373 *) libsuff= shlibsuff= libmagic=never-match;;
25374 esac
25375 ;;
25376 esac
25377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25378 shlibpath_overrides_runpath=no
25379 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25380 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25381 hardcode_into_libs=yes
25382 ;;
25383
25384# No shared lib support for Linux oldld, aout, or coff.
25385linux*oldld* | linux*aout* | linux*coff*)
25386 dynamic_linker=no
25387 ;;
25388
25389# This must be Linux ELF.
25390linux*)
25391 version_type=linux
25392 need_lib_prefix=no
25393 need_version=no
25394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25395 soname_spec='${libname}${release}${shared_ext}$major'
25396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25397 shlibpath_var=LD_LIBRARY_PATH
25398 shlibpath_overrides_runpath=no
25399 # This implies no fast_install, which is unacceptable.
25400 # Some rework will be needed to allow for fast_install
25401 # before this can be enabled.
25402 hardcode_into_libs=yes
25403
Reid Spencer2706f8c2004-09-19 23:53:36 +000025404 # Append ld.so.conf contents to the search path
25405 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025406 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 +000025407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25408 fi
25409
John Criswell47fdd832003-07-14 16:52:07 +000025410 # We used to test for /lib/ld.so.1 and disable shared libraries on
25411 # powerpc, because MkLinux only supported shared libraries with the
25412 # GNU dynamic linker. Since this was broken with cross compilers,
25413 # most powerpc-linux boxes support dynamic linking these days and
25414 # people can always --disable-shared, the test was removed, and we
25415 # assume the GNU/Linux dynamic linker is in use.
25416 dynamic_linker='GNU/Linux ld.so'
25417 ;;
25418
Reid Spencer2706f8c2004-09-19 23:53:36 +000025419knetbsd*-gnu)
25420 version_type=linux
25421 need_lib_prefix=no
25422 need_version=no
25423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25424 soname_spec='${libname}${release}${shared_ext}$major'
25425 shlibpath_var=LD_LIBRARY_PATH
25426 shlibpath_overrides_runpath=no
25427 hardcode_into_libs=yes
25428 dynamic_linker='GNU ld.so'
25429 ;;
25430
John Criswell47fdd832003-07-14 16:52:07 +000025431netbsd*)
25432 version_type=sunos
25433 need_lib_prefix=no
25434 need_version=no
25435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25438 dynamic_linker='NetBSD (a.out) ld.so'
25439 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025441 soname_spec='${libname}${release}${shared_ext}$major'
25442 dynamic_linker='NetBSD ld.elf_so'
25443 fi
25444 shlibpath_var=LD_LIBRARY_PATH
25445 shlibpath_overrides_runpath=yes
25446 hardcode_into_libs=yes
25447 ;;
25448
25449newsos6)
25450 version_type=linux
25451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25452 shlibpath_var=LD_LIBRARY_PATH
25453 shlibpath_overrides_runpath=yes
25454 ;;
25455
Reid Spencer2706f8c2004-09-19 23:53:36 +000025456nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025457 version_type=linux
25458 need_lib_prefix=no
25459 need_version=no
25460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25461 soname_spec='${libname}${release}${shared_ext}$major'
25462 shlibpath_var=LD_LIBRARY_PATH
25463 shlibpath_overrides_runpath=yes
25464 ;;
25465
25466openbsd*)
25467 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025468 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025469 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025470 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25471 case $host_os in
25472 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25473 *) need_version=no ;;
25474 esac
John Criswell47fdd832003-07-14 16:52:07 +000025475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25477 shlibpath_var=LD_LIBRARY_PATH
25478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25479 case $host_os in
25480 openbsd2.[89] | openbsd2.[89].*)
25481 shlibpath_overrides_runpath=no
25482 ;;
25483 *)
25484 shlibpath_overrides_runpath=yes
25485 ;;
25486 esac
25487 else
25488 shlibpath_overrides_runpath=yes
25489 fi
25490 ;;
25491
25492os2*)
25493 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025494 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025495 need_lib_prefix=no
25496 library_names_spec='$libname${shared_ext} $libname.a'
25497 dynamic_linker='OS/2 ld.exe'
25498 shlibpath_var=LIBPATH
25499 ;;
25500
25501osf3* | osf4* | osf5*)
25502 version_type=osf
25503 need_lib_prefix=no
25504 need_version=no
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25507 shlibpath_var=LD_LIBRARY_PATH
25508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25510 ;;
25511
John Criswell47fdd832003-07-14 16:52:07 +000025512solaris*)
25513 version_type=linux
25514 need_lib_prefix=no
25515 need_version=no
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25517 soname_spec='${libname}${release}${shared_ext}$major'
25518 shlibpath_var=LD_LIBRARY_PATH
25519 shlibpath_overrides_runpath=yes
25520 hardcode_into_libs=yes
25521 # ldd complains unless libraries are executable
25522 postinstall_cmds='chmod +x $lib'
25523 ;;
25524
25525sunos4*)
25526 version_type=sunos
25527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25529 shlibpath_var=LD_LIBRARY_PATH
25530 shlibpath_overrides_runpath=yes
25531 if test "$with_gnu_ld" = yes; then
25532 need_lib_prefix=no
25533 fi
25534 need_version=yes
25535 ;;
25536
Reid Spencera773bd52006-08-04 18:18:08 +000025537sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025538 version_type=linux
25539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25540 soname_spec='${libname}${release}${shared_ext}$major'
25541 shlibpath_var=LD_LIBRARY_PATH
25542 case $host_vendor in
25543 sni)
25544 shlibpath_overrides_runpath=no
25545 need_lib_prefix=no
25546 export_dynamic_flag_spec='${wl}-Blargedynsym'
25547 runpath_var=LD_RUN_PATH
25548 ;;
25549 siemens)
25550 need_lib_prefix=no
25551 ;;
25552 motorola)
25553 need_lib_prefix=no
25554 need_version=no
25555 shlibpath_overrides_runpath=no
25556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25557 ;;
25558 esac
25559 ;;
25560
25561sysv4*MP*)
25562 if test -d /usr/nec ;then
25563 version_type=linux
25564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25565 soname_spec='$libname${shared_ext}.$major'
25566 shlibpath_var=LD_LIBRARY_PATH
25567 fi
25568 ;;
25569
Reid Spencera773bd52006-08-04 18:18:08 +000025570sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25571 version_type=freebsd-elf
25572 need_lib_prefix=no
25573 need_version=no
25574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25575 soname_spec='${libname}${release}${shared_ext}$major'
25576 shlibpath_var=LD_LIBRARY_PATH
25577 hardcode_into_libs=yes
25578 if test "$with_gnu_ld" = yes; then
25579 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25580 shlibpath_overrides_runpath=no
25581 else
25582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25583 shlibpath_overrides_runpath=yes
25584 case $host_os in
25585 sco3.2v5*)
25586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25587 ;;
25588 esac
25589 fi
25590 sys_lib_dlsearch_path_spec='/usr/lib'
25591 ;;
25592
John Criswell47fdd832003-07-14 16:52:07 +000025593uts4*)
25594 version_type=linux
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec='${libname}${release}${shared_ext}$major'
25597 shlibpath_var=LD_LIBRARY_PATH
25598 ;;
25599
25600*)
25601 dynamic_linker=no
25602 ;;
25603esac
Reid Spencera773bd52006-08-04 18:18:08 +000025604{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25605echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025606test "$dynamic_linker" = no && can_build_shared=no
25607
Reid Spencera773bd52006-08-04 18:18:08 +000025608variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25609if test "$GCC" = yes; then
25610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25611fi
25612
25613{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25614echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025615hardcode_action_GCJ=
25616if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25617 test -n "$runpath_var_GCJ" || \
25618 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25619
25620 # We can hardcode non-existant directories.
25621 if test "$hardcode_direct_GCJ" != no &&
25622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25623 # have to relink, otherwise we might link with an installed library
25624 # when we should be linking with a yet-to-be-installed one
25625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25626 test "$hardcode_minus_L_GCJ" != no; then
25627 # Linking always hardcodes the temporary library directory.
25628 hardcode_action_GCJ=relink
25629 else
25630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25631 hardcode_action_GCJ=immediate
25632 fi
25633else
25634 # We cannot hardcode anything, or else we can only hardcode existing
25635 # directories.
25636 hardcode_action_GCJ=unsupported
25637fi
Reid Spencera773bd52006-08-04 18:18:08 +000025638{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25639echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025640
25641if test "$hardcode_action_GCJ" = relink; then
25642 # Fast installation is not supported
25643 enable_fast_install=no
25644elif test "$shlibpath_overrides_runpath" = yes ||
25645 test "$enable_shared" = no; then
25646 # Fast installation is not necessary
25647 enable_fast_install=needless
25648fi
25649
John Criswell47fdd832003-07-14 16:52:07 +000025650
25651# The else clause should only fire when bootstrapping the
25652# libtool distribution, otherwise you forgot to ship ltmain.sh
25653# with your package, and you will get complaints that there are
25654# no rules to generate ltmain.sh.
25655if test -f "$ltmain"; then
25656 # See if we are running on zsh, and set the options which allow our commands through
25657 # without removal of \ escapes.
25658 if test -n "${ZSH_VERSION+set}" ; then
25659 setopt NO_GLOB_SUBST
25660 fi
25661 # Now quote all the things that may contain metacharacters while being
25662 # careful not to overquote the AC_SUBSTed values. We take copies of the
25663 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025664 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 +000025665 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025666 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25667 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25668 deplibs_check_method reload_flag reload_cmds need_locks \
25669 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25670 lt_cv_sys_global_symbol_to_c_name_address \
25671 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25672 old_postinstall_cmds old_postuninstall_cmds \
25673 compiler_GCJ \
25674 CC_GCJ \
25675 LD_GCJ \
25676 lt_prog_compiler_wl_GCJ \
25677 lt_prog_compiler_pic_GCJ \
25678 lt_prog_compiler_static_GCJ \
25679 lt_prog_compiler_no_builtin_flag_GCJ \
25680 export_dynamic_flag_spec_GCJ \
25681 thread_safe_flag_spec_GCJ \
25682 whole_archive_flag_spec_GCJ \
25683 enable_shared_with_static_runtimes_GCJ \
25684 old_archive_cmds_GCJ \
25685 old_archive_from_new_cmds_GCJ \
25686 predep_objects_GCJ \
25687 postdep_objects_GCJ \
25688 predeps_GCJ \
25689 postdeps_GCJ \
25690 compiler_lib_search_path_GCJ \
25691 archive_cmds_GCJ \
25692 archive_expsym_cmds_GCJ \
25693 postinstall_cmds_GCJ \
25694 postuninstall_cmds_GCJ \
25695 old_archive_from_expsyms_cmds_GCJ \
25696 allow_undefined_flag_GCJ \
25697 no_undefined_flag_GCJ \
25698 export_symbols_cmds_GCJ \
25699 hardcode_libdir_flag_spec_GCJ \
25700 hardcode_libdir_flag_spec_ld_GCJ \
25701 hardcode_libdir_separator_GCJ \
25702 hardcode_automatic_GCJ \
25703 module_cmds_GCJ \
25704 module_expsym_cmds_GCJ \
25705 lt_cv_prog_compiler_c_o_GCJ \
25706 exclude_expsyms_GCJ \
25707 include_expsyms_GCJ; do
25708
25709 case $var in
25710 old_archive_cmds_GCJ | \
25711 old_archive_from_new_cmds_GCJ | \
25712 archive_cmds_GCJ | \
25713 archive_expsym_cmds_GCJ | \
25714 module_cmds_GCJ | \
25715 module_expsym_cmds_GCJ | \
25716 old_archive_from_expsyms_cmds_GCJ | \
25717 export_symbols_cmds_GCJ | \
25718 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25719 postinstall_cmds | postuninstall_cmds | \
25720 old_postinstall_cmds | old_postuninstall_cmds | \
25721 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25722 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025723 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 +000025724 ;;
25725 *)
25726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25727 ;;
25728 esac
25729 done
25730
25731 case $lt_echo in
25732 *'\$0 --fallback-echo"')
25733 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25734 ;;
25735 esac
25736
25737cfgfile="$ofile"
25738
25739 cat <<__EOF__ >> "$cfgfile"
25740# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25741
25742# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25743
25744# Shell to use when invoking shell scripts.
25745SHELL=$lt_SHELL
25746
25747# Whether or not to build shared libraries.
25748build_libtool_libs=$enable_shared
25749
25750# Whether or not to build static libraries.
25751build_old_libs=$enable_static
25752
25753# Whether or not to add -lc for building shared libraries.
25754build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25755
25756# Whether or not to disallow shared libs when runtime libs are static
25757allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25758
25759# Whether or not to optimize for fast installation.
25760fast_install=$enable_fast_install
25761
25762# The host system.
25763host_alias=$host_alias
25764host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025765host_os=$host_os
25766
25767# The build system.
25768build_alias=$build_alias
25769build=$build
25770build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025771
25772# An echo program that does not interpret backslashes.
25773echo=$lt_echo
25774
25775# The archiver.
25776AR=$lt_AR
25777AR_FLAGS=$lt_AR_FLAGS
25778
25779# A C compiler.
25780LTCC=$lt_LTCC
25781
Reid Spencera773bd52006-08-04 18:18:08 +000025782# LTCC compiler flags.
25783LTCFLAGS=$lt_LTCFLAGS
25784
John Criswell47fdd832003-07-14 16:52:07 +000025785# A language-specific compiler.
25786CC=$lt_compiler_GCJ
25787
25788# Is the compiler the GNU C compiler?
25789with_gcc=$GCC_GCJ
25790
25791# An ERE matcher.
25792EGREP=$lt_EGREP
25793
25794# The linker used to build libraries.
25795LD=$lt_LD_GCJ
25796
25797# Whether we need hard or soft links.
25798LN_S=$lt_LN_S
25799
25800# A BSD-compatible nm program.
25801NM=$lt_NM
25802
25803# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025804STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025805
25806# Used to examine libraries when file_magic_cmd begins "file"
25807MAGIC_CMD=$MAGIC_CMD
25808
25809# Used on cygwin: DLL creation program.
25810DLLTOOL="$DLLTOOL"
25811
25812# Used on cygwin: object dumper.
25813OBJDUMP="$OBJDUMP"
25814
25815# Used on cygwin: assembler.
25816AS="$AS"
25817
25818# The name of the directory that contains temporary libtool files.
25819objdir=$objdir
25820
25821# How to create reloadable object files.
25822reload_flag=$lt_reload_flag
25823reload_cmds=$lt_reload_cmds
25824
25825# How to pass a linker flag through the compiler.
25826wl=$lt_lt_prog_compiler_wl_GCJ
25827
25828# Object file suffix (normally "o").
25829objext="$ac_objext"
25830
25831# Old archive suffix (normally "a").
25832libext="$libext"
25833
25834# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025835shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025836
25837# Executable file suffix (normally "").
25838exeext="$exeext"
25839
25840# Additional compiler flags for building library objects.
25841pic_flag=$lt_lt_prog_compiler_pic_GCJ
25842pic_mode=$pic_mode
25843
25844# What is the maximum length of a command?
25845max_cmd_len=$lt_cv_sys_max_cmd_len
25846
25847# Does compiler simultaneously support -c and -o options?
25848compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25849
Reid Spencera773bd52006-08-04 18:18:08 +000025850# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025851need_locks=$lt_need_locks
25852
25853# Do we need the lib prefix for modules?
25854need_lib_prefix=$need_lib_prefix
25855
25856# Do we need a version for libraries?
25857need_version=$need_version
25858
25859# Whether dlopen is supported.
25860dlopen_support=$enable_dlopen
25861
25862# Whether dlopen of programs is supported.
25863dlopen_self=$enable_dlopen_self
25864
25865# Whether dlopen of statically linked programs is supported.
25866dlopen_self_static=$enable_dlopen_self_static
25867
25868# Compiler flag to prevent dynamic linking.
25869link_static_flag=$lt_lt_prog_compiler_static_GCJ
25870
25871# Compiler flag to turn off builtin functions.
25872no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25873
25874# Compiler flag to allow reflexive dlopens.
25875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25876
25877# Compiler flag to generate shared objects directly from archives.
25878whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25879
25880# Compiler flag to generate thread-safe objects.
25881thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25882
25883# Library versioning type.
25884version_type=$version_type
25885
25886# Format of library name prefix.
25887libname_spec=$lt_libname_spec
25888
25889# List of archive names. First name is the real one, the rest are links.
25890# The last name is the one that the linker finds with -lNAME.
25891library_names_spec=$lt_library_names_spec
25892
25893# The coded name of the library, if different from the real name.
25894soname_spec=$lt_soname_spec
25895
25896# Commands used to build and install an old-style archive.
25897RANLIB=$lt_RANLIB
25898old_archive_cmds=$lt_old_archive_cmds_GCJ
25899old_postinstall_cmds=$lt_old_postinstall_cmds
25900old_postuninstall_cmds=$lt_old_postuninstall_cmds
25901
25902# Create an old-style archive from a shared archive.
25903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25904
25905# Create a temporary old-style archive to link instead of a shared archive.
25906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25907
25908# Commands used to build and install a shared archive.
25909archive_cmds=$lt_archive_cmds_GCJ
25910archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25911postinstall_cmds=$lt_postinstall_cmds
25912postuninstall_cmds=$lt_postuninstall_cmds
25913
25914# Commands used to build a loadable module (assumed same as above if empty)
25915module_cmds=$lt_module_cmds_GCJ
25916module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25917
25918# Commands to strip libraries.
25919old_striplib=$lt_old_striplib
25920striplib=$lt_striplib
25921
25922# Dependencies to place before the objects being linked to create a
25923# shared library.
25924predep_objects=$lt_predep_objects_GCJ
25925
25926# Dependencies to place after the objects being linked to create a
25927# shared library.
25928postdep_objects=$lt_postdep_objects_GCJ
25929
25930# Dependencies to place before the objects being linked to create a
25931# shared library.
25932predeps=$lt_predeps_GCJ
25933
25934# Dependencies to place after the objects being linked to create a
25935# shared library.
25936postdeps=$lt_postdeps_GCJ
25937
25938# The library search path used internally by the compiler when linking
25939# a shared library.
25940compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25941
25942# Method to check whether dependent libraries are shared objects.
25943deplibs_check_method=$lt_deplibs_check_method
25944
25945# Command to use when deplibs_check_method == file_magic.
25946file_magic_cmd=$lt_file_magic_cmd
25947
25948# Flag that allows shared libraries with undefined symbols to be built.
25949allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25950
25951# Flag that forces no undefined symbols.
25952no_undefined_flag=$lt_no_undefined_flag_GCJ
25953
25954# Commands used to finish a libtool library installation in a directory.
25955finish_cmds=$lt_finish_cmds
25956
25957# Same as above, but a single script fragment to be evaled but not shown.
25958finish_eval=$lt_finish_eval
25959
25960# Take the output of nm and produce a listing of raw symbols and C names.
25961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25962
25963# Transform the output of nm in a proper C declaration
25964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25965
25966# Transform the output of nm in a C name address pair
25967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25968
25969# This is the shared library runtime path variable.
25970runpath_var=$runpath_var
25971
25972# This is the shared library path variable.
25973shlibpath_var=$shlibpath_var
25974
25975# Is shlibpath searched before the hard-coded library search path?
25976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25977
25978# How to hardcode a shared library path into an executable.
25979hardcode_action=$hardcode_action_GCJ
25980
25981# Whether we should hardcode library paths into libraries.
25982hardcode_into_libs=$hardcode_into_libs
25983
25984# Flag to hardcode \$libdir into a binary during linking.
25985# This must work even if \$libdir does not exist.
25986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25987
25988# If ld is used when linking, flag to hardcode \$libdir into
25989# a binary during linking. This must work even if \$libdir does
25990# not exist.
25991hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25992
25993# Whether we need a single -rpath flag with a separated argument.
25994hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25995
25996# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25997# resulting binary.
25998hardcode_direct=$hardcode_direct_GCJ
25999
26000# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26001# resulting binary.
26002hardcode_minus_L=$hardcode_minus_L_GCJ
26003
26004# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26005# the resulting binary.
26006hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26007
26008# Set to yes if building a shared library automatically hardcodes DIR into the library
26009# and all subsequent libraries and executables linked against it.
26010hardcode_automatic=$hardcode_automatic_GCJ
26011
26012# Variables whose values should be saved in libtool wrapper scripts and
26013# restored at relink time.
26014variables_saved_for_relink="$variables_saved_for_relink"
26015
26016# Whether libtool must link a program against all its dependency libraries.
26017link_all_deplibs=$link_all_deplibs_GCJ
26018
26019# Compile-time system search path for libraries
26020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26021
26022# Run-time system search path for libraries
26023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26024
26025# Fix the shell variable \$srcfile for the compiler.
26026fix_srcfile_path="$fix_srcfile_path_GCJ"
26027
26028# Set to yes if exported symbols are required.
26029always_export_symbols=$always_export_symbols_GCJ
26030
26031# The commands to list exported symbols.
26032export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26033
26034# The commands to extract the exported symbol list from a shared archive.
26035extract_expsyms_cmds=$lt_extract_expsyms_cmds
26036
26037# Symbols that should not be listed in the preloaded symbols.
26038exclude_expsyms=$lt_exclude_expsyms_GCJ
26039
26040# Symbols that must always be exported.
26041include_expsyms=$lt_include_expsyms_GCJ
26042
26043# ### END LIBTOOL TAG CONFIG: $tagname
26044
26045__EOF__
26046
26047
26048else
26049 # If there is no Makefile yet, we rely on a make rule to execute
26050 # `config.status --recheck' to rerun these tests and create the
26051 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026052 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26053 if test -f "$ltmain_in"; then
26054 test -f Makefile && make "$ltmain"
26055 fi
John Criswell47fdd832003-07-14 16:52:07 +000026056fi
26057
26058
26059ac_ext=c
26060ac_cpp='$CPP $CPPFLAGS'
26061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26063ac_compiler_gnu=$ac_cv_c_compiler_gnu
26064
26065CC="$lt_save_CC"
26066
26067 else
26068 tagname=""
26069 fi
26070 ;;
26071
26072 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026073 ac_ext=c
26074ac_cpp='$CPP $CPPFLAGS'
26075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26077ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026078
26079
26080# Source file extension for RC test sources.
26081ac_ext=rc
26082
26083# Object file extension for compiled RC test sources.
26084objext=o
26085objext_RC=$objext
26086
26087# Code to be used in simple compile tests
26088lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26089
26090# Code to be used in simple link tests
26091lt_simple_link_test_code="$lt_simple_compile_test_code"
26092
26093# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26094
26095# If no C compiler was specified, use CC.
26096LTCC=${LTCC-"$CC"}
26097
Reid Spencera773bd52006-08-04 18:18:08 +000026098# If no C compiler flags were specified, use CFLAGS.
26099LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26100
John Criswell47fdd832003-07-14 16:52:07 +000026101# Allow CC to be a program name with arguments.
26102compiler=$CC
26103
26104
Reid Spencera773bd52006-08-04 18:18:08 +000026105# save warnings/boilerplate of simple test code
26106ac_outfile=conftest.$ac_objext
26107printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26109_lt_compiler_boilerplate=`cat conftest.err`
26110$rm conftest*
26111
26112ac_outfile=conftest.$ac_objext
26113printf "$lt_simple_link_test_code" >conftest.$ac_ext
26114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26115_lt_linker_boilerplate=`cat conftest.err`
26116$rm conftest*
26117
26118
John Criswell47fdd832003-07-14 16:52:07 +000026119# Allow CC to be a program name with arguments.
26120lt_save_CC="$CC"
26121CC=${RC-"windres"}
26122compiler=$CC
26123compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026124for cc_temp in $compiler""; do
26125 case $cc_temp in
26126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26128 \-*) ;;
26129 *) break;;
26130 esac
26131done
26132cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26133
John Criswell47fdd832003-07-14 16:52:07 +000026134lt_cv_prog_compiler_c_o_RC=yes
26135
26136# The else clause should only fire when bootstrapping the
26137# libtool distribution, otherwise you forgot to ship ltmain.sh
26138# with your package, and you will get complaints that there are
26139# no rules to generate ltmain.sh.
26140if test -f "$ltmain"; then
26141 # See if we are running on zsh, and set the options which allow our commands through
26142 # without removal of \ escapes.
26143 if test -n "${ZSH_VERSION+set}" ; then
26144 setopt NO_GLOB_SUBST
26145 fi
26146 # Now quote all the things that may contain metacharacters while being
26147 # careful not to overquote the AC_SUBSTed values. We take copies of the
26148 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026149 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 +000026150 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26153 deplibs_check_method reload_flag reload_cmds need_locks \
26154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26155 lt_cv_sys_global_symbol_to_c_name_address \
26156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26157 old_postinstall_cmds old_postuninstall_cmds \
26158 compiler_RC \
26159 CC_RC \
26160 LD_RC \
26161 lt_prog_compiler_wl_RC \
26162 lt_prog_compiler_pic_RC \
26163 lt_prog_compiler_static_RC \
26164 lt_prog_compiler_no_builtin_flag_RC \
26165 export_dynamic_flag_spec_RC \
26166 thread_safe_flag_spec_RC \
26167 whole_archive_flag_spec_RC \
26168 enable_shared_with_static_runtimes_RC \
26169 old_archive_cmds_RC \
26170 old_archive_from_new_cmds_RC \
26171 predep_objects_RC \
26172 postdep_objects_RC \
26173 predeps_RC \
26174 postdeps_RC \
26175 compiler_lib_search_path_RC \
26176 archive_cmds_RC \
26177 archive_expsym_cmds_RC \
26178 postinstall_cmds_RC \
26179 postuninstall_cmds_RC \
26180 old_archive_from_expsyms_cmds_RC \
26181 allow_undefined_flag_RC \
26182 no_undefined_flag_RC \
26183 export_symbols_cmds_RC \
26184 hardcode_libdir_flag_spec_RC \
26185 hardcode_libdir_flag_spec_ld_RC \
26186 hardcode_libdir_separator_RC \
26187 hardcode_automatic_RC \
26188 module_cmds_RC \
26189 module_expsym_cmds_RC \
26190 lt_cv_prog_compiler_c_o_RC \
26191 exclude_expsyms_RC \
26192 include_expsyms_RC; do
26193
26194 case $var in
26195 old_archive_cmds_RC | \
26196 old_archive_from_new_cmds_RC | \
26197 archive_cmds_RC | \
26198 archive_expsym_cmds_RC | \
26199 module_cmds_RC | \
26200 module_expsym_cmds_RC | \
26201 old_archive_from_expsyms_cmds_RC | \
26202 export_symbols_cmds_RC | \
26203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26204 postinstall_cmds | postuninstall_cmds | \
26205 old_postinstall_cmds | old_postuninstall_cmds | \
26206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26207 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026208 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 +000026209 ;;
26210 *)
26211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26212 ;;
26213 esac
26214 done
26215
26216 case $lt_echo in
26217 *'\$0 --fallback-echo"')
26218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26219 ;;
26220 esac
26221
26222cfgfile="$ofile"
26223
26224 cat <<__EOF__ >> "$cfgfile"
26225# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26226
26227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26228
26229# Shell to use when invoking shell scripts.
26230SHELL=$lt_SHELL
26231
26232# Whether or not to build shared libraries.
26233build_libtool_libs=$enable_shared
26234
26235# Whether or not to build static libraries.
26236build_old_libs=$enable_static
26237
26238# Whether or not to add -lc for building shared libraries.
26239build_libtool_need_lc=$archive_cmds_need_lc_RC
26240
26241# Whether or not to disallow shared libs when runtime libs are static
26242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26243
26244# Whether or not to optimize for fast installation.
26245fast_install=$enable_fast_install
26246
26247# The host system.
26248host_alias=$host_alias
26249host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026250host_os=$host_os
26251
26252# The build system.
26253build_alias=$build_alias
26254build=$build
26255build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026256
26257# An echo program that does not interpret backslashes.
26258echo=$lt_echo
26259
26260# The archiver.
26261AR=$lt_AR
26262AR_FLAGS=$lt_AR_FLAGS
26263
26264# A C compiler.
26265LTCC=$lt_LTCC
26266
Reid Spencera773bd52006-08-04 18:18:08 +000026267# LTCC compiler flags.
26268LTCFLAGS=$lt_LTCFLAGS
26269
John Criswell47fdd832003-07-14 16:52:07 +000026270# A language-specific compiler.
26271CC=$lt_compiler_RC
26272
26273# Is the compiler the GNU C compiler?
26274with_gcc=$GCC_RC
26275
26276# An ERE matcher.
26277EGREP=$lt_EGREP
26278
26279# The linker used to build libraries.
26280LD=$lt_LD_RC
26281
26282# Whether we need hard or soft links.
26283LN_S=$lt_LN_S
26284
26285# A BSD-compatible nm program.
26286NM=$lt_NM
26287
26288# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026289STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026290
26291# Used to examine libraries when file_magic_cmd begins "file"
26292MAGIC_CMD=$MAGIC_CMD
26293
26294# Used on cygwin: DLL creation program.
26295DLLTOOL="$DLLTOOL"
26296
26297# Used on cygwin: object dumper.
26298OBJDUMP="$OBJDUMP"
26299
26300# Used on cygwin: assembler.
26301AS="$AS"
26302
26303# The name of the directory that contains temporary libtool files.
26304objdir=$objdir
26305
26306# How to create reloadable object files.
26307reload_flag=$lt_reload_flag
26308reload_cmds=$lt_reload_cmds
26309
26310# How to pass a linker flag through the compiler.
26311wl=$lt_lt_prog_compiler_wl_RC
26312
26313# Object file suffix (normally "o").
26314objext="$ac_objext"
26315
26316# Old archive suffix (normally "a").
26317libext="$libext"
26318
26319# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026320shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026321
26322# Executable file suffix (normally "").
26323exeext="$exeext"
26324
26325# Additional compiler flags for building library objects.
26326pic_flag=$lt_lt_prog_compiler_pic_RC
26327pic_mode=$pic_mode
26328
26329# What is the maximum length of a command?
26330max_cmd_len=$lt_cv_sys_max_cmd_len
26331
26332# Does compiler simultaneously support -c and -o options?
26333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26334
Reid Spencera773bd52006-08-04 18:18:08 +000026335# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026336need_locks=$lt_need_locks
26337
26338# Do we need the lib prefix for modules?
26339need_lib_prefix=$need_lib_prefix
26340
26341# Do we need a version for libraries?
26342need_version=$need_version
26343
26344# Whether dlopen is supported.
26345dlopen_support=$enable_dlopen
26346
26347# Whether dlopen of programs is supported.
26348dlopen_self=$enable_dlopen_self
26349
26350# Whether dlopen of statically linked programs is supported.
26351dlopen_self_static=$enable_dlopen_self_static
26352
26353# Compiler flag to prevent dynamic linking.
26354link_static_flag=$lt_lt_prog_compiler_static_RC
26355
26356# Compiler flag to turn off builtin functions.
26357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26358
26359# Compiler flag to allow reflexive dlopens.
26360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26361
26362# Compiler flag to generate shared objects directly from archives.
26363whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26364
26365# Compiler flag to generate thread-safe objects.
26366thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26367
26368# Library versioning type.
26369version_type=$version_type
26370
26371# Format of library name prefix.
26372libname_spec=$lt_libname_spec
26373
26374# List of archive names. First name is the real one, the rest are links.
26375# The last name is the one that the linker finds with -lNAME.
26376library_names_spec=$lt_library_names_spec
26377
26378# The coded name of the library, if different from the real name.
26379soname_spec=$lt_soname_spec
26380
26381# Commands used to build and install an old-style archive.
26382RANLIB=$lt_RANLIB
26383old_archive_cmds=$lt_old_archive_cmds_RC
26384old_postinstall_cmds=$lt_old_postinstall_cmds
26385old_postuninstall_cmds=$lt_old_postuninstall_cmds
26386
26387# Create an old-style archive from a shared archive.
26388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26389
26390# Create a temporary old-style archive to link instead of a shared archive.
26391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26392
26393# Commands used to build and install a shared archive.
26394archive_cmds=$lt_archive_cmds_RC
26395archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26396postinstall_cmds=$lt_postinstall_cmds
26397postuninstall_cmds=$lt_postuninstall_cmds
26398
26399# Commands used to build a loadable module (assumed same as above if empty)
26400module_cmds=$lt_module_cmds_RC
26401module_expsym_cmds=$lt_module_expsym_cmds_RC
26402
26403# Commands to strip libraries.
26404old_striplib=$lt_old_striplib
26405striplib=$lt_striplib
26406
26407# Dependencies to place before the objects being linked to create a
26408# shared library.
26409predep_objects=$lt_predep_objects_RC
26410
26411# Dependencies to place after the objects being linked to create a
26412# shared library.
26413postdep_objects=$lt_postdep_objects_RC
26414
26415# Dependencies to place before the objects being linked to create a
26416# shared library.
26417predeps=$lt_predeps_RC
26418
26419# Dependencies to place after the objects being linked to create a
26420# shared library.
26421postdeps=$lt_postdeps_RC
26422
26423# The library search path used internally by the compiler when linking
26424# a shared library.
26425compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26426
26427# Method to check whether dependent libraries are shared objects.
26428deplibs_check_method=$lt_deplibs_check_method
26429
26430# Command to use when deplibs_check_method == file_magic.
26431file_magic_cmd=$lt_file_magic_cmd
26432
26433# Flag that allows shared libraries with undefined symbols to be built.
26434allow_undefined_flag=$lt_allow_undefined_flag_RC
26435
26436# Flag that forces no undefined symbols.
26437no_undefined_flag=$lt_no_undefined_flag_RC
26438
26439# Commands used to finish a libtool library installation in a directory.
26440finish_cmds=$lt_finish_cmds
26441
26442# Same as above, but a single script fragment to be evaled but not shown.
26443finish_eval=$lt_finish_eval
26444
26445# Take the output of nm and produce a listing of raw symbols and C names.
26446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26447
26448# Transform the output of nm in a proper C declaration
26449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26450
26451# Transform the output of nm in a C name address pair
26452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26453
26454# This is the shared library runtime path variable.
26455runpath_var=$runpath_var
26456
26457# This is the shared library path variable.
26458shlibpath_var=$shlibpath_var
26459
26460# Is shlibpath searched before the hard-coded library search path?
26461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26462
26463# How to hardcode a shared library path into an executable.
26464hardcode_action=$hardcode_action_RC
26465
26466# Whether we should hardcode library paths into libraries.
26467hardcode_into_libs=$hardcode_into_libs
26468
26469# Flag to hardcode \$libdir into a binary during linking.
26470# This must work even if \$libdir does not exist.
26471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26472
26473# If ld is used when linking, flag to hardcode \$libdir into
26474# a binary during linking. This must work even if \$libdir does
26475# not exist.
26476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26477
26478# Whether we need a single -rpath flag with a separated argument.
26479hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26480
26481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26482# resulting binary.
26483hardcode_direct=$hardcode_direct_RC
26484
26485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26486# resulting binary.
26487hardcode_minus_L=$hardcode_minus_L_RC
26488
26489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26490# the resulting binary.
26491hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26492
26493# Set to yes if building a shared library automatically hardcodes DIR into the library
26494# and all subsequent libraries and executables linked against it.
26495hardcode_automatic=$hardcode_automatic_RC
26496
26497# Variables whose values should be saved in libtool wrapper scripts and
26498# restored at relink time.
26499variables_saved_for_relink="$variables_saved_for_relink"
26500
26501# Whether libtool must link a program against all its dependency libraries.
26502link_all_deplibs=$link_all_deplibs_RC
26503
26504# Compile-time system search path for libraries
26505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26506
26507# Run-time system search path for libraries
26508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26509
26510# Fix the shell variable \$srcfile for the compiler.
26511fix_srcfile_path="$fix_srcfile_path_RC"
26512
26513# Set to yes if exported symbols are required.
26514always_export_symbols=$always_export_symbols_RC
26515
26516# The commands to list exported symbols.
26517export_symbols_cmds=$lt_export_symbols_cmds_RC
26518
26519# The commands to extract the exported symbol list from a shared archive.
26520extract_expsyms_cmds=$lt_extract_expsyms_cmds
26521
26522# Symbols that should not be listed in the preloaded symbols.
26523exclude_expsyms=$lt_exclude_expsyms_RC
26524
26525# Symbols that must always be exported.
26526include_expsyms=$lt_include_expsyms_RC
26527
26528# ### END LIBTOOL TAG CONFIG: $tagname
26529
26530__EOF__
26531
26532
26533else
26534 # If there is no Makefile yet, we rely on a make rule to execute
26535 # `config.status --recheck' to rerun these tests and create the
26536 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26538 if test -f "$ltmain_in"; then
26539 test -f Makefile && make "$ltmain"
26540 fi
John Criswell47fdd832003-07-14 16:52:07 +000026541fi
26542
26543
26544ac_ext=c
26545ac_cpp='$CPP $CPPFLAGS'
26546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26548ac_compiler_gnu=$ac_cv_c_compiler_gnu
26549
26550CC="$lt_save_CC"
26551
26552 ;;
26553
26554 *)
26555 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26556echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26557 { (exit 1); exit 1; }; }
26558 ;;
26559 esac
26560
26561 # Append the new tag name to the list of available tags.
26562 if test -n "$tagname" ; then
26563 available_tags="$available_tags $tagname"
26564 fi
26565 fi
26566 done
26567 IFS="$lt_save_ifs"
26568
26569 # Now substitute the updated list of available tags.
26570 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26571 mv "${ofile}T" "$ofile"
26572 chmod +x "$ofile"
26573 else
26574 rm -f "${ofile}T"
26575 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26576echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26577 { (exit 1); exit 1; }; }
26578 fi
26579fi
John Criswell7a73b802003-06-30 21:59:07 +000026580
26581
26582
26583# This can be used to rebuild libtool when needed
26584LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26585
26586# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026587LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026588
26589# Prevent multiple expansion
26590
26591
26592
John Criswell47fdd832003-07-14 16:52:07 +000026593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026610
Reid Spencer582a23c2004-12-29 07:07:57 +000026611if test "$lt_cv_dlopen_self" = "yes" ; then
26612
26613cat >>confdefs.h <<\_ACEOF
26614#define CAN_DLOPEN_SELF 1
26615_ACEOF
26616
26617fi
26618
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026619etags_version=`$ETAGS --version 2>&1`
26620case "$etags_version" in
26621 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26622 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26623 *) ETAGSFLAGS="" ;;
26624esac
26625ETAGSFLAGS=$ETAGSFLAGS
26626
26627
Reid Spencer7931a782004-12-27 06:15:02 +000026628if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026629 LLVMGCC="llvm-gcc${EXEEXT}"
26630 LLVMGXX="llvm-g++${EXEEXT}"
26631 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26632set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026635if test "${ac_cv_path_LLVMGCC+set}" = set; then
26636 echo $ECHO_N "(cached) $ECHO_C" >&6
26637else
26638 case $LLVMGCC in
26639 [\\/]* | ?:[\\/]*)
26640 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26641 ;;
26642 *)
26643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644for as_dir in $PATH
26645do
26646 IFS=$as_save_IFS
26647 test -z "$as_dir" && as_dir=.
26648 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026649 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 +000026650 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26652 break 2
26653 fi
26654done
26655done
Reid Spencera773bd52006-08-04 18:18:08 +000026656IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026657
Reid Spencer59473af2004-12-25 07:31:29 +000026658 ;;
26659esac
26660fi
26661LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026662if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026663 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26664echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026665else
Reid Spencera773bd52006-08-04 18:18:08 +000026666 { echo "$as_me:$LINENO: result: no" >&5
26667echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026668fi
26669
Reid Spencera773bd52006-08-04 18:18:08 +000026670
Reid Spencerc84492c2005-06-02 22:34:49 +000026671 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26672set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026675if test "${ac_cv_path_LLVMGXX+set}" = set; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26677else
26678 case $LLVMGXX in
26679 [\\/]* | ?:[\\/]*)
26680 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26681 ;;
26682 *)
26683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26684for as_dir in $PATH
26685do
26686 IFS=$as_save_IFS
26687 test -z "$as_dir" && as_dir=.
26688 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026689 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 +000026690 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26692 break 2
26693 fi
26694done
26695done
Reid Spencera773bd52006-08-04 18:18:08 +000026696IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026697
Reid Spencer59473af2004-12-25 07:31:29 +000026698 ;;
26699esac
26700fi
26701LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026702if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026703 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26704echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026705else
Reid Spencera773bd52006-08-04 18:18:08 +000026706 { echo "$as_me:$LINENO: result: no" >&5
26707echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026708fi
26709
Reid Spencera773bd52006-08-04 18:18:08 +000026710
Reid Spencer59473af2004-12-25 07:31:29 +000026711else
Reid Spencerc84492c2005-06-02 22:34:49 +000026712 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26713 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026714 LLVMGCC=$LLVMGCC
26715
26716 LLVMGXX=$LLVMGXX
26717
26718fi
26719
Reid Spencera773bd52006-08-04 18:18:08 +000026720{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26721echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026722
Reid Spencer86901802004-12-08 23:07:27 +000026723ICC=no
26724IXX=no
26725case $CC in
26726 icc*|icpc*)
26727 ICC=yes
26728 IXX=yes
26729 ;;
26730 *)
26731 ;;
26732esac
26733
Duraid Madina937c60a2006-02-15 07:57:42 +000026734if test "$GCC" != "yes" && test "$ICC" != "yes"
26735then
26736 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26737echo "$as_me: error: gcc|icc required but not found" >&2;}
26738 { (exit 1); exit 1; }; }
26739fi
26740
26741if test "$GXX" != "yes" && test "$IXX" != "yes"
26742then
26743 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26744echo "$as_me: error: g++|icc required but not found" >&2;}
26745 { (exit 1); exit 1; }; }
26746fi
26747
Reid Spencer86901802004-12-08 23:07:27 +000026748if test "$GCC" = "yes"
26749then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026750 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026751 if test "$gccmajor" -lt "3"
26752 then
26753 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026754echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26755 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026756 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026757fi
26758
26759if test -z "$llvm_cv_gnu_make_command"
26760then
26761 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26762echo "$as_me: error: GNU Make required but not found" >&2;}
26763 { (exit 1); exit 1; }; }
26764fi
26765
Reid Spencera773bd52006-08-04 18:18:08 +000026766{ echo "$as_me:$LINENO: result: ok" >&5
26767echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026768
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026769
John Criswell7a73b802003-06-30 21:59:07 +000026770
Reid Spencera773bd52006-08-04 18:18:08 +000026771{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26772echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026773if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26774 echo $ECHO_N "(cached) $ECHO_C" >&6
26775else
26776 ac_check_lib_save_LIBS=$LIBS
26777LIBS="-lelf $LIBS"
26778cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026779/* confdefs.h. */
26780_ACEOF
26781cat confdefs.h >>conftest.$ac_ext
26782cat >>conftest.$ac_ext <<_ACEOF
26783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026784
Reid Spencera773bd52006-08-04 18:18:08 +000026785/* Override any GCC internal prototype to avoid an error.
26786 Use char because int might match the return type of a GCC
26787 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026788#ifdef __cplusplus
26789extern "C"
26790#endif
John Criswell7a73b802003-06-30 21:59:07 +000026791char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026792int
26793main ()
26794{
Reid Spencera773bd52006-08-04 18:18:08 +000026795return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026796 ;
26797 return 0;
26798}
26799_ACEOF
26800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026801if { (ac_try="$ac_link"
26802case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26805esac
26806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026809 grep -v '^ *+' conftest.er1 >conftest.err
26810 rm -f conftest.er1
26811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26815 { (case "(($ac_try" in
26816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817 *) ac_try_echo=$ac_try;;
26818esac
26819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026825 { (case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26828esac
26829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_cv_lib_elf_elf_begin=yes
26835else
26836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026837sed 's/^/| /' conftest.$ac_ext >&5
26838
Reid Spencera773bd52006-08-04 18:18:08 +000026839 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026840fi
Reid Spencera773bd52006-08-04 18:18:08 +000026841
26842rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026843 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026844LIBS=$ac_check_lib_save_LIBS
26845fi
Reid Spencera773bd52006-08-04 18:18:08 +000026846{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26847echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026848if test $ac_cv_lib_elf_elf_begin = yes; then
26849 cat >>confdefs.h <<_ACEOF
26850#define HAVE_LIBELF 1
26851_ACEOF
26852
26853 LIBS="-lelf $LIBS"
26854
26855fi
26856
26857
Reid Spencera773bd52006-08-04 18:18:08 +000026858{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26859echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026860if test "${ac_cv_lib_m_sin+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862else
26863 ac_check_lib_save_LIBS=$LIBS
26864LIBS="-lm $LIBS"
26865cat >conftest.$ac_ext <<_ACEOF
26866/* confdefs.h. */
26867_ACEOF
26868cat confdefs.h >>conftest.$ac_ext
26869cat >>conftest.$ac_ext <<_ACEOF
26870/* end confdefs.h. */
26871
Reid Spencera773bd52006-08-04 18:18:08 +000026872/* Override any GCC internal prototype to avoid an error.
26873 Use char because int might match the return type of a GCC
26874 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026875#ifdef __cplusplus
26876extern "C"
26877#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026878char sin ();
26879int
26880main ()
26881{
Reid Spencera773bd52006-08-04 18:18:08 +000026882return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026883 ;
26884 return 0;
26885}
26886_ACEOF
26887rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026888if { (ac_try="$ac_link"
26889case "(($ac_try" in
26890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26892esac
26893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026895 ac_status=$?
26896 grep -v '^ *+' conftest.er1 >conftest.err
26897 rm -f conftest.er1
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26902 { (case "(($ac_try" in
26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904 *) ac_try_echo=$ac_try;;
26905esac
26906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026908 ac_status=$?
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); }; } &&
26911 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026912 { (case "(($ac_try" in
26913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26914 *) ac_try_echo=$ac_try;;
26915esac
26916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 ac_cv_lib_m_sin=yes
26922else
26923 echo "$as_me: failed program was:" >&5
26924sed 's/^/| /' conftest.$ac_ext >&5
26925
Reid Spencera773bd52006-08-04 18:18:08 +000026926 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026927fi
Reid Spencera773bd52006-08-04 18:18:08 +000026928
26929rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026930 conftest$ac_exeext conftest.$ac_ext
26931LIBS=$ac_check_lib_save_LIBS
26932fi
Reid Spencera773bd52006-08-04 18:18:08 +000026933{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26934echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026935if test $ac_cv_lib_m_sin = yes; then
26936 cat >>confdefs.h <<_ACEOF
26937#define HAVE_LIBM 1
26938_ACEOF
26939
26940 LIBS="-lm $LIBS"
26941
26942fi
26943
Jeff Cohen28783c32007-01-12 18:22:38 +000026944if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026945
Reid Spencera773bd52006-08-04 18:18:08 +000026946{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26947echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026948if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026949 echo $ECHO_N "(cached) $ECHO_C" >&6
26950else
26951 ac_check_lib_save_LIBS=$LIBS
26952LIBS="-limagehlp $LIBS"
26953cat >conftest.$ac_ext <<_ACEOF
26954/* confdefs.h. */
26955_ACEOF
26956cat confdefs.h >>conftest.$ac_ext
26957cat >>conftest.$ac_ext <<_ACEOF
26958/* end confdefs.h. */
26959
Reid Spencer48fdf912006-06-01 19:03:21 +000026960
Reid Spencer484fc8e2006-06-01 16:55:59 +000026961int
26962main ()
26963{
Reid Spencera773bd52006-08-04 18:18:08 +000026964return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026965 ;
26966 return 0;
26967}
26968_ACEOF
26969rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026970if { (ac_try="$ac_link"
26971case "(($ac_try" in
26972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973 *) ac_try_echo=$ac_try;;
26974esac
26975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026977 ac_status=$?
26978 grep -v '^ *+' conftest.er1 >conftest.err
26979 rm -f conftest.er1
26980 cat conftest.err >&5
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26984 { (case "(($ac_try" in
26985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986 *) ac_try_echo=$ac_try;;
26987esac
26988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26989 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026994 { (case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26997esac
26998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027003 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027004else
27005 echo "$as_me: failed program was:" >&5
27006sed 's/^/| /' conftest.$ac_ext >&5
27007
Reid Spencera773bd52006-08-04 18:18:08 +000027008 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027009fi
Reid Spencera773bd52006-08-04 18:18:08 +000027010
27011rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027012 conftest$ac_exeext conftest.$ac_ext
27013LIBS=$ac_check_lib_save_LIBS
27014fi
Reid Spencera773bd52006-08-04 18:18:08 +000027015{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27016echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027017if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027018 cat >>confdefs.h <<_ACEOF
27019#define HAVE_LIBIMAGEHLP 1
27020_ACEOF
27021
27022 LIBS="-limagehlp $LIBS"
27023
27024fi
27025
27026
Reid Spencera773bd52006-08-04 18:18:08 +000027027{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27028echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027029if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027030 echo $ECHO_N "(cached) $ECHO_C" >&6
27031else
27032 ac_check_lib_save_LIBS=$LIBS
27033LIBS="-lpsapi $LIBS"
27034cat >conftest.$ac_ext <<_ACEOF
27035/* confdefs.h. */
27036_ACEOF
27037cat confdefs.h >>conftest.$ac_ext
27038cat >>conftest.$ac_ext <<_ACEOF
27039/* end confdefs.h. */
27040
Reid Spencer48fdf912006-06-01 19:03:21 +000027041
Reid Spencer484fc8e2006-06-01 16:55:59 +000027042int
27043main ()
27044{
Reid Spencera773bd52006-08-04 18:18:08 +000027045return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027046 ;
27047 return 0;
27048}
27049_ACEOF
27050rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027051if { (ac_try="$ac_link"
27052case "(($ac_try" in
27053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054 *) ac_try_echo=$ac_try;;
27055esac
27056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027058 ac_status=$?
27059 grep -v '^ *+' conftest.er1 >conftest.err
27060 rm -f conftest.er1
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27065 { (case "(($ac_try" in
27066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067 *) ac_try_echo=$ac_try;;
27068esac
27069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027071 ac_status=$?
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027075 { (case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27078esac
27079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027081 ac_status=$?
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027084 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027085else
27086 echo "$as_me: failed program was:" >&5
27087sed 's/^/| /' conftest.$ac_ext >&5
27088
Reid Spencera773bd52006-08-04 18:18:08 +000027089 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027090fi
Reid Spencera773bd52006-08-04 18:18:08 +000027091
27092rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027093 conftest$ac_exeext conftest.$ac_ext
27094LIBS=$ac_check_lib_save_LIBS
27095fi
Reid Spencera773bd52006-08-04 18:18:08 +000027096{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27097echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027098if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027099 cat >>confdefs.h <<_ACEOF
27100#define HAVE_LIBPSAPI 1
27101_ACEOF
27102
27103 LIBS="-lpsapi $LIBS"
27104
27105fi
27106
27107fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027108
Reid Spencera773bd52006-08-04 18:18:08 +000027109{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27110echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027111if test "${ac_cv_search_lt_dlopen+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27113else
27114 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027115cat >conftest.$ac_ext <<_ACEOF
27116/* confdefs.h. */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h. */
27121
Reid Spencera773bd52006-08-04 18:18:08 +000027122/* Override any GCC internal prototype to avoid an error.
27123 Use char because int might match the return type of a GCC
27124 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027125#ifdef __cplusplus
27126extern "C"
27127#endif
Reid Spencer17795972004-11-18 09:47:37 +000027128char lt_dlopen ();
27129int
27130main ()
27131{
Reid Spencera773bd52006-08-04 18:18:08 +000027132return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027133 ;
27134 return 0;
27135}
27136_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027137for ac_lib in '' ltdl; do
27138 if test -z "$ac_lib"; then
27139 ac_res="none required"
27140 else
27141 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027143 fi
27144 rm -f conftest.$ac_objext conftest$ac_exeext
27145if { (ac_try="$ac_link"
27146case "(($ac_try" in
27147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148 *) ac_try_echo=$ac_try;;
27149esac
27150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027152 ac_status=$?
27153 grep -v '^ *+' conftest.er1 >conftest.err
27154 rm -f conftest.er1
27155 cat conftest.err >&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27159 { (case "(($ac_try" in
27160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161 *) ac_try_echo=$ac_try;;
27162esac
27163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027165 ac_status=$?
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); }; } &&
27168 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027169 { (case "(($ac_try" in
27170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27171 *) ac_try_echo=$ac_try;;
27172esac
27173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27174 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027178 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027179else
27180 echo "$as_me: failed program was:" >&5
27181sed 's/^/| /' conftest.$ac_ext >&5
27182
Reid Spencera773bd52006-08-04 18:18:08 +000027183
Reid Spencer17795972004-11-18 09:47:37 +000027184fi
Reid Spencera773bd52006-08-04 18:18:08 +000027185
27186rm -f core conftest.err conftest.$ac_objext \
27187 conftest$ac_exeext
27188 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27189 break
Reid Spencer17795972004-11-18 09:47:37 +000027190fi
Reid Spencera773bd52006-08-04 18:18:08 +000027191done
27192if test "${ac_cv_search_lt_dlopen+set}" = set; then
27193 :
27194else
27195 ac_cv_search_lt_dlopen=no
27196fi
27197rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027198LIBS=$ac_func_search_save_LIBS
27199fi
Reid Spencera773bd52006-08-04 18:18:08 +000027200{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27201echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27202ac_res=$ac_cv_search_lt_dlopen
27203if test "$ac_res" != no; then
27204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027205
27206cat >>confdefs.h <<\_ACEOF
27207#define HAVE_LT_DLOPEN 1
27208_ACEOF
27209
27210else
27211 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27212 not be available" >&5
27213echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27214 not be available" >&2;}
27215fi
27216
27217
Reid Spencera773bd52006-08-04 18:18:08 +000027218{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27219echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027220if test "${ac_cv_search_dlopen+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27222else
27223 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027224cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027225/* confdefs.h. */
27226_ACEOF
27227cat confdefs.h >>conftest.$ac_ext
27228cat >>conftest.$ac_ext <<_ACEOF
27229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027230
Reid Spencera773bd52006-08-04 18:18:08 +000027231/* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027234#ifdef __cplusplus
27235extern "C"
27236#endif
John Criswell7a73b802003-06-30 21:59:07 +000027237char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027238int
27239main ()
27240{
Reid Spencera773bd52006-08-04 18:18:08 +000027241return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027242 ;
27243 return 0;
27244}
27245_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027246for ac_lib in '' dl; do
27247 if test -z "$ac_lib"; then
27248 ac_res="none required"
27249 else
27250 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027252 fi
27253 rm -f conftest.$ac_objext conftest$ac_exeext
27254if { (ac_try="$ac_link"
27255case "(($ac_try" in
27256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257 *) ac_try_echo=$ac_try;;
27258esac
27259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027261 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268 { (case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27271esac
27272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027274 ac_status=$?
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; } &&
27277 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27281esac
27282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027287 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027288else
27289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027290sed 's/^/| /' conftest.$ac_ext >&5
27291
Reid Spencera773bd52006-08-04 18:18:08 +000027292
John Criswell7a73b802003-06-30 21:59:07 +000027293fi
Reid Spencera773bd52006-08-04 18:18:08 +000027294
27295rm -f core conftest.err conftest.$ac_objext \
27296 conftest$ac_exeext
27297 if test "${ac_cv_search_dlopen+set}" = set; then
27298 break
John Criswell7a73b802003-06-30 21:59:07 +000027299fi
Reid Spencera773bd52006-08-04 18:18:08 +000027300done
27301if test "${ac_cv_search_dlopen+set}" = set; then
27302 :
27303else
27304 ac_cv_search_dlopen=no
27305fi
27306rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027307LIBS=$ac_func_search_save_LIBS
27308fi
Reid Spencera773bd52006-08-04 18:18:08 +000027309{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27310echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27311ac_res=$ac_cv_search_dlopen
27312if test "$ac_res" != no; then
27313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027314
27315cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027316#define HAVE_DLOPEN 1
27317_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027318
27319else
Brian Gaekec45be042003-10-07 06:01:34 +000027320 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27321echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027322fi
27323
27324
Reid Spencera773bd52006-08-04 18:18:08 +000027325{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27326echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027327if test "${ac_cv_search_mallinfo+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27329else
27330 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027331cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027332/* confdefs.h. */
27333_ACEOF
27334cat confdefs.h >>conftest.$ac_ext
27335cat >>conftest.$ac_ext <<_ACEOF
27336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027337
Reid Spencera773bd52006-08-04 18:18:08 +000027338/* Override any GCC internal prototype to avoid an error.
27339 Use char because int might match the return type of a GCC
27340 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027341#ifdef __cplusplus
27342extern "C"
27343#endif
John Criswell7a73b802003-06-30 21:59:07 +000027344char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027345int
27346main ()
27347{
Reid Spencera773bd52006-08-04 18:18:08 +000027348return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027349 ;
27350 return 0;
27351}
27352_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027353for ac_lib in '' malloc; do
27354 if test -z "$ac_lib"; then
27355 ac_res="none required"
27356 else
27357 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027359 fi
27360 rm -f conftest.$ac_objext conftest$ac_exeext
27361if { (ac_try="$ac_link"
27362case "(($ac_try" in
27363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364 *) ac_try_echo=$ac_try;;
27365esac
27366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027369 grep -v '^ *+' conftest.er1 >conftest.err
27370 rm -f conftest.er1
27371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27375 { (case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27378esac
27379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027381 ac_status=$?
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; } &&
27384 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027385 { (case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27388esac
27389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027394 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027395else
27396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027397sed 's/^/| /' conftest.$ac_ext >&5
27398
Reid Spencera773bd52006-08-04 18:18:08 +000027399
John Criswell7a73b802003-06-30 21:59:07 +000027400fi
Reid Spencera773bd52006-08-04 18:18:08 +000027401
27402rm -f core conftest.err conftest.$ac_objext \
27403 conftest$ac_exeext
27404 if test "${ac_cv_search_mallinfo+set}" = set; then
27405 break
John Criswell7a73b802003-06-30 21:59:07 +000027406fi
Reid Spencera773bd52006-08-04 18:18:08 +000027407done
27408if test "${ac_cv_search_mallinfo+set}" = set; then
27409 :
27410else
27411 ac_cv_search_mallinfo=no
27412fi
27413rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027414LIBS=$ac_func_search_save_LIBS
27415fi
Reid Spencera773bd52006-08-04 18:18:08 +000027416{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27417echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27418ac_res=$ac_cv_search_mallinfo
27419if test "$ac_res" != no; then
27420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027421
27422cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027423#define HAVE_MALLINFO 1
27424_ACEOF
27425
27426fi
27427
27428
Reid Spencer0a262ba2005-08-24 10:07:20 +000027429if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027430
Reid Spencera773bd52006-08-04 18:18:08 +000027431{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27432echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027433if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27434 echo $ECHO_N "(cached) $ECHO_C" >&6
27435else
27436 ac_check_lib_save_LIBS=$LIBS
27437LIBS="-lpthread $LIBS"
27438cat >conftest.$ac_ext <<_ACEOF
27439/* confdefs.h. */
27440_ACEOF
27441cat confdefs.h >>conftest.$ac_ext
27442cat >>conftest.$ac_ext <<_ACEOF
27443/* end confdefs.h. */
27444
Reid Spencera773bd52006-08-04 18:18:08 +000027445/* Override any GCC internal prototype to avoid an error.
27446 Use char because int might match the return type of a GCC
27447 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027448#ifdef __cplusplus
27449extern "C"
27450#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027451char pthread_mutex_init ();
27452int
27453main ()
27454{
Reid Spencera773bd52006-08-04 18:18:08 +000027455return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027456 ;
27457 return 0;
27458}
27459_ACEOF
27460rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027461if { (ac_try="$ac_link"
27462case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27465esac
27466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027468 ac_status=$?
27469 grep -v '^ *+' conftest.er1 >conftest.err
27470 rm -f conftest.er1
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27475 { (case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27478esac
27479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; } &&
27484 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027485 { (case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27488esac
27489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027491 ac_status=$?
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; }; then
27494 ac_cv_lib_pthread_pthread_mutex_init=yes
27495else
27496 echo "$as_me: failed program was:" >&5
27497sed 's/^/| /' conftest.$ac_ext >&5
27498
Reid Spencera773bd52006-08-04 18:18:08 +000027499 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027500fi
Reid Spencera773bd52006-08-04 18:18:08 +000027501
27502rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027503 conftest$ac_exeext conftest.$ac_ext
27504LIBS=$ac_check_lib_save_LIBS
27505fi
Reid Spencera773bd52006-08-04 18:18:08 +000027506{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27507echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027508if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27509 cat >>confdefs.h <<_ACEOF
27510#define HAVE_LIBPTHREAD 1
27511_ACEOF
27512
27513 LIBS="-lpthread $LIBS"
27514
27515fi
27516
Reid Spencera773bd52006-08-04 18:18:08 +000027517 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27518echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027519if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27521else
27522 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027523cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027524/* confdefs.h. */
27525_ACEOF
27526cat confdefs.h >>conftest.$ac_ext
27527cat >>conftest.$ac_ext <<_ACEOF
27528/* end confdefs.h. */
27529
Reid Spencera773bd52006-08-04 18:18:08 +000027530/* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027533#ifdef __cplusplus
27534extern "C"
27535#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027536char pthread_mutex_lock ();
27537int
27538main ()
27539{
Reid Spencera773bd52006-08-04 18:18:08 +000027540return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027541 ;
27542 return 0;
27543}
27544_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027545for ac_lib in '' pthread; do
27546 if test -z "$ac_lib"; then
27547 ac_res="none required"
27548 else
27549 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027551 fi
27552 rm -f conftest.$ac_objext conftest$ac_exeext
27553if { (ac_try="$ac_link"
27554case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557esac
27558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27570esac
27571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27580esac
27581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027586 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027587else
27588 echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
Reid Spencera773bd52006-08-04 18:18:08 +000027591
Brian Gaeke5f268f72003-12-05 19:29:01 +000027592fi
Reid Spencera773bd52006-08-04 18:18:08 +000027593
27594rm -f core conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext
27596 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27597 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027598fi
Reid Spencera773bd52006-08-04 18:18:08 +000027599done
27600if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27601 :
27602else
27603 ac_cv_search_pthread_mutex_lock=no
27604fi
27605rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027606LIBS=$ac_func_search_save_LIBS
27607fi
Reid Spencera773bd52006-08-04 18:18:08 +000027608{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27609echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27610ac_res=$ac_cv_search_pthread_mutex_lock
27611if test "$ac_res" != no; then
27612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027613
John Criswell40468462004-09-24 21:19:06 +000027614cat >>confdefs.h <<\_ACEOF
27615#define HAVE_PTHREAD_MUTEX_LOCK 1
27616_ACEOF
27617
27618fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027619
Reid Spencer0a262ba2005-08-24 10:07:20 +000027620fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027621
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027622
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027623# Check whether --with-udis86 was given.
27624if test "${with_udis86+set}" = set; then
27625 withval=$with_udis86;
27626 USE_UDIS86=1
27627
27628 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027629 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027630 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27631 esac
27632
27633{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27634echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27635if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27637else
27638 ac_check_lib_save_LIBS=$LIBS
27639LIBS="-ludis86 $LIBS"
27640cat >conftest.$ac_ext <<_ACEOF
27641/* confdefs.h. */
27642_ACEOF
27643cat confdefs.h >>conftest.$ac_ext
27644cat >>conftest.$ac_ext <<_ACEOF
27645/* end confdefs.h. */
27646
27647/* Override any GCC internal prototype to avoid an error.
27648 Use char because int might match the return type of a GCC
27649 builtin and then its argument prototype would still apply. */
27650#ifdef __cplusplus
27651extern "C"
27652#endif
27653char ud_init ();
27654int
27655main ()
27656{
27657return ud_init ();
27658 ;
27659 return 0;
27660}
27661_ACEOF
27662rm -f conftest.$ac_objext conftest$ac_exeext
27663if { (ac_try="$ac_link"
27664case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_link") 2>conftest.er1
27670 ac_status=$?
27671 grep -v '^ *+' conftest.er1 >conftest.err
27672 rm -f conftest.er1
27673 cat conftest.err >&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); } &&
27676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680esac
27681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; } &&
27686 { ac_try='test -s conftest$ac_exeext'
27687 { (case "(($ac_try" in
27688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689 *) ac_try_echo=$ac_try;;
27690esac
27691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692 (eval "$ac_try") 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; }; then
27696 ac_cv_lib_udis86_ud_init=yes
27697else
27698 echo "$as_me: failed program was:" >&5
27699sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 ac_cv_lib_udis86_ud_init=no
27702fi
27703
27704rm -f core conftest.err conftest.$ac_objext \
27705 conftest$ac_exeext conftest.$ac_ext
27706LIBS=$ac_check_lib_save_LIBS
27707fi
27708{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27709echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27710if test $ac_cv_lib_udis86_ud_init = yes; then
27711 cat >>confdefs.h <<_ACEOF
27712#define HAVE_LIBUDIS86 1
27713_ACEOF
27714
27715 LIBS="-ludis86 $LIBS"
27716
27717else
27718
27719 echo "Error! You need to have libudis86 around."
27720 exit -1
27721
27722fi
27723
27724
27725else
27726 USE_UDIS86=0
27727
27728fi
27729
27730
27731cat >>confdefs.h <<_ACEOF
27732#define USE_UDIS86 $USE_UDIS86
27733_ACEOF
27734
27735
27736
Reid Spencer59473af2004-12-25 07:31:29 +000027737
27738
27739
27740
27741
27742ac_header_dirent=no
27743for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27744 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027745{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27746echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027748 echo $ECHO_N "(cached) $ECHO_C" >&6
27749else
27750 cat >conftest.$ac_ext <<_ACEOF
27751/* confdefs.h. */
27752_ACEOF
27753cat confdefs.h >>conftest.$ac_ext
27754cat >>conftest.$ac_ext <<_ACEOF
27755/* end confdefs.h. */
27756#include <sys/types.h>
27757#include <$ac_hdr>
27758
27759int
27760main ()
27761{
27762if ((DIR *) 0)
27763return 0;
27764 ;
27765 return 0;
27766}
27767_ACEOF
27768rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027769if { (ac_try="$ac_compile"
27770case "(($ac_try" in
27771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27773esac
27774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027776 ac_status=$?
27777 grep -v '^ *+' conftest.er1 >conftest.err
27778 rm -f conftest.er1
27779 cat conftest.err >&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786esac
27787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; } &&
27792 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027793 { (case "(($ac_try" in
27794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795 *) ac_try_echo=$ac_try;;
27796esac
27797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27798 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027799 ac_status=$?
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27802 eval "$as_ac_Header=yes"
27803else
27804 echo "$as_me: failed program was:" >&5
27805sed 's/^/| /' conftest.$ac_ext >&5
27806
Reid Spencera773bd52006-08-04 18:18:08 +000027807 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027808fi
Reid Spencera773bd52006-08-04 18:18:08 +000027809
27810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027811fi
Reid Spencera773bd52006-08-04 18:18:08 +000027812ac_res=`eval echo '${'$as_ac_Header'}'`
27813 { echo "$as_me:$LINENO: result: $ac_res" >&5
27814echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027815if test `eval echo '${'$as_ac_Header'}'` = yes; then
27816 cat >>confdefs.h <<_ACEOF
27817#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27818_ACEOF
27819
27820ac_header_dirent=$ac_hdr; break
27821fi
27822
27823done
27824# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27825if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027826 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27827echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027828if test "${ac_cv_search_opendir+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27830else
27831 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027832cat >conftest.$ac_ext <<_ACEOF
27833/* confdefs.h. */
27834_ACEOF
27835cat confdefs.h >>conftest.$ac_ext
27836cat >>conftest.$ac_ext <<_ACEOF
27837/* end confdefs.h. */
27838
Reid Spencera773bd52006-08-04 18:18:08 +000027839/* Override any GCC internal prototype to avoid an error.
27840 Use char because int might match the return type of a GCC
27841 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027842#ifdef __cplusplus
27843extern "C"
27844#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027845char opendir ();
27846int
27847main ()
27848{
Reid Spencera773bd52006-08-04 18:18:08 +000027849return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027850 ;
27851 return 0;
27852}
27853_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027854for ac_lib in '' dir; do
27855 if test -z "$ac_lib"; then
27856 ac_res="none required"
27857 else
27858 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027860 fi
27861 rm -f conftest.$ac_objext conftest$ac_exeext
27862if { (ac_try="$ac_link"
27863case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27866esac
27867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027869 ac_status=$?
27870 grep -v '^ *+' conftest.er1 >conftest.err
27871 rm -f conftest.er1
27872 cat conftest.err >&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27876 { (case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27879esac
27880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; } &&
27885 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27889esac
27890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027895 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027896else
27897 echo "$as_me: failed program was:" >&5
27898sed 's/^/| /' conftest.$ac_ext >&5
27899
Reid Spencera773bd52006-08-04 18:18:08 +000027900
Reid Spencer59473af2004-12-25 07:31:29 +000027901fi
Reid Spencera773bd52006-08-04 18:18:08 +000027902
27903rm -f core conftest.err conftest.$ac_objext \
27904 conftest$ac_exeext
27905 if test "${ac_cv_search_opendir+set}" = set; then
27906 break
Reid Spencer59473af2004-12-25 07:31:29 +000027907fi
Reid Spencera773bd52006-08-04 18:18:08 +000027908done
27909if test "${ac_cv_search_opendir+set}" = set; then
27910 :
27911else
27912 ac_cv_search_opendir=no
27913fi
27914rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027915LIBS=$ac_func_search_save_LIBS
27916fi
Reid Spencera773bd52006-08-04 18:18:08 +000027917{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27918echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27919ac_res=$ac_cv_search_opendir
27920if test "$ac_res" != no; then
27921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027922
27923fi
27924
27925else
Reid Spencera773bd52006-08-04 18:18:08 +000027926 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27927echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027928if test "${ac_cv_search_opendir+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
27930else
27931 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027932cat >conftest.$ac_ext <<_ACEOF
27933/* confdefs.h. */
27934_ACEOF
27935cat confdefs.h >>conftest.$ac_ext
27936cat >>conftest.$ac_ext <<_ACEOF
27937/* end confdefs.h. */
27938
Reid Spencera773bd52006-08-04 18:18:08 +000027939/* Override any GCC internal prototype to avoid an error.
27940 Use char because int might match the return type of a GCC
27941 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027942#ifdef __cplusplus
27943extern "C"
27944#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027945char opendir ();
27946int
27947main ()
27948{
Reid Spencera773bd52006-08-04 18:18:08 +000027949return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027950 ;
27951 return 0;
27952}
27953_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027954for ac_lib in '' x; do
27955 if test -z "$ac_lib"; then
27956 ac_res="none required"
27957 else
27958 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027960 fi
27961 rm -f conftest.$ac_objext conftest$ac_exeext
27962if { (ac_try="$ac_link"
27963case "(($ac_try" in
27964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965 *) ac_try_echo=$ac_try;;
27966esac
27967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27968 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027969 ac_status=$?
27970 grep -v '^ *+' conftest.er1 >conftest.err
27971 rm -f conftest.er1
27972 cat conftest.err >&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27976 { (case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27979esac
27980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027982 ac_status=$?
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; } &&
27985 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27989esac
27990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027995 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027996else
27997 echo "$as_me: failed program was:" >&5
27998sed 's/^/| /' conftest.$ac_ext >&5
27999
Reid Spencera773bd52006-08-04 18:18:08 +000028000
Reid Spencer59473af2004-12-25 07:31:29 +000028001fi
Reid Spencera773bd52006-08-04 18:18:08 +000028002
28003rm -f core conftest.err conftest.$ac_objext \
28004 conftest$ac_exeext
28005 if test "${ac_cv_search_opendir+set}" = set; then
28006 break
Reid Spencer59473af2004-12-25 07:31:29 +000028007fi
Reid Spencera773bd52006-08-04 18:18:08 +000028008done
28009if test "${ac_cv_search_opendir+set}" = set; then
28010 :
28011else
28012 ac_cv_search_opendir=no
28013fi
28014rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028015LIBS=$ac_func_search_save_LIBS
28016fi
Reid Spencera773bd52006-08-04 18:18:08 +000028017{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28018echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28019ac_res=$ac_cv_search_opendir
28020if test "$ac_res" != no; then
28021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028022
28023fi
28024
28025fi
28026
Reid Spencera773bd52006-08-04 18:18:08 +000028027{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28028echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028029if test "${ac_cv_header_mmap_anon+set}" = set; then
28030 echo $ECHO_N "(cached) $ECHO_C" >&6
28031else
28032 ac_ext=c
28033ac_cpp='$CPP $CPPFLAGS'
28034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28036ac_compiler_gnu=$ac_cv_c_compiler_gnu
28037
28038 cat >conftest.$ac_ext <<_ACEOF
28039/* confdefs.h. */
28040_ACEOF
28041cat confdefs.h >>conftest.$ac_ext
28042cat >>conftest.$ac_ext <<_ACEOF
28043/* end confdefs.h. */
28044#include <sys/mman.h>
28045#include <unistd.h>
28046#include <fcntl.h>
28047int
28048main ()
28049{
28050mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28051 ;
28052 return 0;
28053}
28054_ACEOF
28055rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028056if { (ac_try="$ac_compile"
28057case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28060esac
28061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028063 ac_status=$?
28064 grep -v '^ *+' conftest.er1 >conftest.err
28065 rm -f conftest.er1
28066 cat conftest.err >&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070 { (case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28073esac
28074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028080 { (case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28083esac
28084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
28089 ac_cv_header_mmap_anon=yes
28090else
28091 echo "$as_me: failed program was:" >&5
28092sed 's/^/| /' conftest.$ac_ext >&5
28093
Reid Spencera773bd52006-08-04 18:18:08 +000028094 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028095fi
Reid Spencera773bd52006-08-04 18:18:08 +000028096
28097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028098 ac_ext=c
28099ac_cpp='$CPP $CPPFLAGS'
28100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28102ac_compiler_gnu=$ac_cv_c_compiler_gnu
28103
28104
28105fi
Reid Spencera773bd52006-08-04 18:18:08 +000028106{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28107echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028108if test "$ac_cv_header_mmap_anon" = yes; then
28109
28110cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028111#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028112_ACEOF
28113
28114fi
28115
Reid Spencera773bd52006-08-04 18:18:08 +000028116{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28117echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028118if test "${ac_cv_header_stat_broken+set}" = set; then
28119 echo $ECHO_N "(cached) $ECHO_C" >&6
28120else
28121 cat >conftest.$ac_ext <<_ACEOF
28122/* confdefs.h. */
28123_ACEOF
28124cat confdefs.h >>conftest.$ac_ext
28125cat >>conftest.$ac_ext <<_ACEOF
28126/* end confdefs.h. */
28127#include <sys/types.h>
28128#include <sys/stat.h>
28129
Reid Spencera773bd52006-08-04 18:18:08 +000028130#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028131# if S_ISBLK (S_IFDIR)
28132You lose.
28133# endif
28134#endif
28135
Reid Spencera773bd52006-08-04 18:18:08 +000028136#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028137# if S_ISBLK (S_IFCHR)
28138You lose.
28139# endif
28140#endif
28141
Reid Spencera773bd52006-08-04 18:18:08 +000028142#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028143# if S_ISLNK (S_IFREG)
28144You lose.
28145# endif
28146#endif
28147
Reid Spencera773bd52006-08-04 18:18:08 +000028148#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028149# if S_ISSOCK (S_IFREG)
28150You lose.
28151# endif
28152#endif
28153
28154_ACEOF
28155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28156 $EGREP "You lose" >/dev/null 2>&1; then
28157 ac_cv_header_stat_broken=yes
28158else
28159 ac_cv_header_stat_broken=no
28160fi
28161rm -f conftest*
28162
28163fi
Reid Spencera773bd52006-08-04 18:18:08 +000028164{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28165echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028166if test $ac_cv_header_stat_broken = yes; then
28167
28168cat >>confdefs.h <<\_ACEOF
28169#define STAT_MACROS_BROKEN 1
28170_ACEOF
28171
28172fi
28173
Reid Spencera773bd52006-08-04 18:18:08 +000028174{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28175echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028176if test "${ac_cv_header_stdc+set}" = set; then
28177 echo $ECHO_N "(cached) $ECHO_C" >&6
28178else
28179 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028180/* confdefs.h. */
28181_ACEOF
28182cat confdefs.h >>conftest.$ac_ext
28183cat >>conftest.$ac_ext <<_ACEOF
28184/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028185#include <stdlib.h>
28186#include <stdarg.h>
28187#include <string.h>
28188#include <float.h>
28189
John Criswell0c38eaf2003-09-10 15:17:25 +000028190int
28191main ()
28192{
28193
28194 ;
28195 return 0;
28196}
John Criswell7a73b802003-06-30 21:59:07 +000028197_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028198rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028199if { (ac_try="$ac_compile"
28200case "(($ac_try" in
28201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202 *) ac_try_echo=$ac_try;;
28203esac
28204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028207 grep -v '^ *+' conftest.er1 >conftest.err
28208 rm -f conftest.er1
28209 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028211 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28213 { (case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28216esac
28217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; } &&
28222 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028223 { (case "(($ac_try" in
28224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225 *) ac_try_echo=$ac_try;;
28226esac
28227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28228 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028232 ac_cv_header_stdc=yes
28233else
28234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028235sed 's/^/| /' conftest.$ac_ext >&5
28236
Reid Spencera773bd52006-08-04 18:18:08 +000028237 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028238fi
Reid Spencera773bd52006-08-04 18:18:08 +000028239
28240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028241
28242if test $ac_cv_header_stdc = yes; then
28243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28244 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028245/* confdefs.h. */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028250#include <string.h>
28251
28252_ACEOF
28253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028254 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028255 :
28256else
28257 ac_cv_header_stdc=no
28258fi
28259rm -f conftest*
28260
28261fi
28262
28263if test $ac_cv_header_stdc = yes; then
28264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28265 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028266/* confdefs.h. */
28267_ACEOF
28268cat confdefs.h >>conftest.$ac_ext
28269cat >>conftest.$ac_ext <<_ACEOF
28270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028271#include <stdlib.h>
28272
28273_ACEOF
28274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028275 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028276 :
28277else
28278 ac_cv_header_stdc=no
28279fi
28280rm -f conftest*
28281
28282fi
28283
28284if test $ac_cv_header_stdc = yes; then
28285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28286 if test "$cross_compiling" = yes; then
28287 :
28288else
28289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028290/* confdefs.h. */
28291_ACEOF
28292cat confdefs.h >>conftest.$ac_ext
28293cat >>conftest.$ac_ext <<_ACEOF
28294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028295#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028296#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028297#if ((' ' & 0x0FF) == 0x020)
28298# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28299# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28300#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028301# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028302 (('a' <= (c) && (c) <= 'i') \
28303 || ('j' <= (c) && (c) <= 'r') \
28304 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028305# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28306#endif
28307
28308#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28309int
28310main ()
28311{
28312 int i;
28313 for (i = 0; i < 256; i++)
28314 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028315 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028316 return 2;
28317 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028318}
28319_ACEOF
28320rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028321if { (ac_try="$ac_link"
28322case "(($ac_try" in
28323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28324 *) ac_try_echo=$ac_try;;
28325esac
28326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28327 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028328 ac_status=$?
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028331 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028337 ac_status=$?
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); }; }; then
28340 :
28341else
28342 echo "$as_me: program exited with status $ac_status" >&5
28343echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028344sed 's/^/| /' conftest.$ac_ext >&5
28345
John Criswell7a73b802003-06-30 21:59:07 +000028346( exit $ac_status )
28347ac_cv_header_stdc=no
28348fi
Reid Spencera773bd52006-08-04 18:18:08 +000028349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28350fi
28351
28352
John Criswell7a73b802003-06-30 21:59:07 +000028353fi
28354fi
Reid Spencera773bd52006-08-04 18:18:08 +000028355{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28356echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028357if test $ac_cv_header_stdc = yes; then
28358
28359cat >>confdefs.h <<\_ACEOF
28360#define STDC_HEADERS 1
28361_ACEOF
28362
28363fi
28364
Reid Spencera773bd52006-08-04 18:18:08 +000028365{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28366echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028367if test "${ac_cv_header_sys_wait_h+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28369else
28370 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028371/* confdefs.h. */
28372_ACEOF
28373cat confdefs.h >>conftest.$ac_ext
28374cat >>conftest.$ac_ext <<_ACEOF
28375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028376#include <sys/types.h>
28377#include <sys/wait.h>
28378#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028379# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028380#endif
28381#ifndef WIFEXITED
28382# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28383#endif
28384
John Criswell7a73b802003-06-30 21:59:07 +000028385int
28386main ()
28387{
28388 int s;
28389 wait (&s);
28390 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28391 ;
28392 return 0;
28393}
28394_ACEOF
28395rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028396if { (ac_try="$ac_compile"
28397case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28400esac
28401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028404 grep -v '^ *+' conftest.er1 >conftest.err
28405 rm -f conftest.er1
28406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410 { (case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28413esac
28414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28423esac
28424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_cv_header_sys_wait_h=yes
28430else
28431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028432sed 's/^/| /' conftest.$ac_ext >&5
28433
Reid Spencera773bd52006-08-04 18:18:08 +000028434 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028435fi
Reid Spencera773bd52006-08-04 18:18:08 +000028436
28437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028438fi
Reid Spencera773bd52006-08-04 18:18:08 +000028439{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28440echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028441if test $ac_cv_header_sys_wait_h = yes; then
28442
28443cat >>confdefs.h <<\_ACEOF
28444#define HAVE_SYS_WAIT_H 1
28445_ACEOF
28446
28447fi
28448
Reid Spencera773bd52006-08-04 18:18:08 +000028449{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28450echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028451if test "${ac_cv_header_time+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28453else
28454 cat >conftest.$ac_ext <<_ACEOF
28455/* confdefs.h. */
28456_ACEOF
28457cat confdefs.h >>conftest.$ac_ext
28458cat >>conftest.$ac_ext <<_ACEOF
28459/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028460#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028461#include <sys/time.h>
28462#include <time.h>
28463
28464int
28465main ()
28466{
28467if ((struct tm *) 0)
28468return 0;
28469 ;
28470 return 0;
28471}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028472_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028473rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028474if { (ac_try="$ac_compile"
28475case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028481 ac_status=$?
28482 grep -v '^ *+' conftest.er1 >conftest.err
28483 rm -f conftest.er1
28484 cat conftest.err >&5
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028486 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28488 { (case "(($ac_try" in
28489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490 *) ac_try_echo=$ac_try;;
28491esac
28492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028494 ac_status=$?
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; } &&
28497 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028498 { (case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501esac
28502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; }; then
28507 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028508else
28509 echo "$as_me: failed program was:" >&5
28510sed 's/^/| /' conftest.$ac_ext >&5
28511
Reid Spencera773bd52006-08-04 18:18:08 +000028512 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028513fi
Reid Spencera773bd52006-08-04 18:18:08 +000028514
28515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028516fi
Reid Spencera773bd52006-08-04 18:18:08 +000028517{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28518echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028519if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028520
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028521cat >>confdefs.h <<\_ACEOF
28522#define TIME_WITH_SYS_TIME 1
28523_ACEOF
28524
28525fi
28526
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028527
Reid Spencer59473af2004-12-25 07:31:29 +000028528
28529
28530
28531
28532
28533
28534for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28535do
28536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028541 echo $ECHO_N "(cached) $ECHO_C" >&6
28542fi
Reid Spencera773bd52006-08-04 18:18:08 +000028543ac_res=`eval echo '${'$as_ac_Header'}'`
28544 { echo "$as_me:$LINENO: result: $ac_res" >&5
28545echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028546else
28547 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028550cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028551/* confdefs.h. */
28552_ACEOF
28553cat confdefs.h >>conftest.$ac_ext
28554cat >>conftest.$ac_ext <<_ACEOF
28555/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028556$ac_includes_default
28557#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028558_ACEOF
28559rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028560if { (ac_try="$ac_compile"
28561case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28564esac
28565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028567 ac_status=$?
28568 grep -v '^ *+' conftest.er1 >conftest.err
28569 rm -f conftest.er1
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28577esac
28578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028593 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028594else
28595 echo "$as_me: failed program was:" >&5
28596sed 's/^/| /' conftest.$ac_ext >&5
28597
Reid Spencera773bd52006-08-04 18:18:08 +000028598 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028599fi
Reid Spencera773bd52006-08-04 18:18:08 +000028600
28601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28603echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028604
Reid Spencer59473af2004-12-25 07:31:29 +000028605# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028608cat >conftest.$ac_ext <<_ACEOF
28609/* confdefs.h. */
28610_ACEOF
28611cat confdefs.h >>conftest.$ac_ext
28612cat >>conftest.$ac_ext <<_ACEOF
28613/* end confdefs.h. */
28614#include <$ac_header>
28615_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028616if { (ac_try="$ac_cpp conftest.$ac_ext"
28617case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28620esac
28621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028623 ac_status=$?
28624 grep -v '^ *+' conftest.er1 >conftest.err
28625 rm -f conftest.er1
28626 cat conftest.err >&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } >/dev/null; then
28629 if test -s conftest.err; then
28630 ac_cpp_err=$ac_c_preproc_warn_flag
28631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28632 else
28633 ac_cpp_err=
28634 fi
28635else
28636 ac_cpp_err=yes
28637fi
28638if test -z "$ac_cpp_err"; then
28639 ac_header_preproc=yes
28640else
28641 echo "$as_me: failed program was:" >&5
28642sed 's/^/| /' conftest.$ac_ext >&5
28643
28644 ac_header_preproc=no
28645fi
Reid Spencera773bd52006-08-04 18:18:08 +000028646
Reid Spencer59473af2004-12-25 07:31:29 +000028647rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28649echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028650
28651# So? What about this header?
28652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28653 yes:no: )
28654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28658 ac_header_preproc=yes
28659 ;;
28660 no:yes:* )
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028673 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028674## ----------------------------------- ##
28675## Report this to llvmbugs@cs.uiuc.edu ##
28676## ----------------------------------- ##
28677_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028678 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028679 ;;
28680esac
Reid Spencera773bd52006-08-04 18:18:08 +000028681{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028684 echo $ECHO_N "(cached) $ECHO_C" >&6
28685else
28686 eval "$as_ac_Header=\$ac_header_preproc"
28687fi
Reid Spencera773bd52006-08-04 18:18:08 +000028688ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028691
28692fi
Reid Spencer59473af2004-12-25 07:31:29 +000028693if test `eval echo '${'$as_ac_Header'}'` = yes; then
28694 cat >>confdefs.h <<_ACEOF
28695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028696_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028697
28698fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028699
Reid Spencer59473af2004-12-25 07:31:29 +000028700done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028701
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028702
28703
Reid Spencer59473af2004-12-25 07:31:29 +000028704
28705
28706
28707
Reid Spencercdb08a32006-06-05 16:11:07 +000028708for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028709do
28710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028715 echo $ECHO_N "(cached) $ECHO_C" >&6
28716fi
Reid Spencera773bd52006-08-04 18:18:08 +000028717ac_res=`eval echo '${'$as_ac_Header'}'`
28718 { echo "$as_me:$LINENO: result: $ac_res" >&5
28719echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028720else
28721 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028722{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028724cat >conftest.$ac_ext <<_ACEOF
28725/* confdefs.h. */
28726_ACEOF
28727cat confdefs.h >>conftest.$ac_ext
28728cat >>conftest.$ac_ext <<_ACEOF
28729/* end confdefs.h. */
28730$ac_includes_default
28731#include <$ac_header>
28732_ACEOF
28733rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028734if { (ac_try="$ac_compile"
28735case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28738esac
28739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028741 ac_status=$?
28742 grep -v '^ *+' conftest.er1 >conftest.err
28743 rm -f conftest.er1
28744 cat conftest.err >&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28748 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028758 { (case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28761esac
28762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028764 ac_status=$?
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
28767 ac_header_compiler=yes
28768else
28769 echo "$as_me: failed program was:" >&5
28770sed 's/^/| /' conftest.$ac_ext >&5
28771
Reid Spencera773bd52006-08-04 18:18:08 +000028772 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028773fi
Reid Spencera773bd52006-08-04 18:18:08 +000028774
28775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28777echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028778
28779# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028782cat >conftest.$ac_ext <<_ACEOF
28783/* confdefs.h. */
28784_ACEOF
28785cat confdefs.h >>conftest.$ac_ext
28786cat >>conftest.$ac_ext <<_ACEOF
28787/* end confdefs.h. */
28788#include <$ac_header>
28789_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028790if { (ac_try="$ac_cpp conftest.$ac_ext"
28791case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28794esac
28795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028797 ac_status=$?
28798 grep -v '^ *+' conftest.er1 >conftest.err
28799 rm -f conftest.er1
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } >/dev/null; then
28803 if test -s conftest.err; then
28804 ac_cpp_err=$ac_c_preproc_warn_flag
28805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28806 else
28807 ac_cpp_err=
28808 fi
28809else
28810 ac_cpp_err=yes
28811fi
28812if test -z "$ac_cpp_err"; then
28813 ac_header_preproc=yes
28814else
28815 echo "$as_me: failed program was:" >&5
28816sed 's/^/| /' conftest.$ac_ext >&5
28817
28818 ac_header_preproc=no
28819fi
Reid Spencera773bd52006-08-04 18:18:08 +000028820
Reid Spencer59473af2004-12-25 07:31:29 +000028821rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28823echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028824
28825# So? What about this header?
28826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28827 yes:no: )
28828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28832 ac_header_preproc=yes
28833 ;;
28834 no:yes:* )
28835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028847 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028848## ----------------------------------- ##
28849## Report this to llvmbugs@cs.uiuc.edu ##
28850## ----------------------------------- ##
28851_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028852 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028853 ;;
28854esac
Reid Spencera773bd52006-08-04 18:18:08 +000028855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028858 echo $ECHO_N "(cached) $ECHO_C" >&6
28859else
28860 eval "$as_ac_Header=\$ac_header_preproc"
28861fi
Reid Spencera773bd52006-08-04 18:18:08 +000028862ac_res=`eval echo '${'$as_ac_Header'}'`
28863 { echo "$as_me:$LINENO: result: $ac_res" >&5
28864echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028865
28866fi
28867if test `eval echo '${'$as_ac_Header'}'` = yes; then
28868 cat >>confdefs.h <<_ACEOF
28869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28870_ACEOF
28871
28872fi
28873
28874done
28875
28876
28877
28878
28879
28880
Reid Spencercdb08a32006-06-05 16:11:07 +000028881for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028882do
28883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028888 echo $ECHO_N "(cached) $ECHO_C" >&6
28889fi
Reid Spencera773bd52006-08-04 18:18:08 +000028890ac_res=`eval echo '${'$as_ac_Header'}'`
28891 { echo "$as_me:$LINENO: result: $ac_res" >&5
28892echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028893else
28894 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028895{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28896echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028897cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028898/* confdefs.h. */
28899_ACEOF
28900cat confdefs.h >>conftest.$ac_ext
28901cat >>conftest.$ac_ext <<_ACEOF
28902/* end confdefs.h. */
28903$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028904#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028905_ACEOF
28906rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028907if { (ac_try="$ac_compile"
28908case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28911esac
28912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028914 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028915 grep -v '^ *+' conftest.er1 >conftest.err
28916 rm -f conftest.er1
28917 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28921 { (case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28924esac
28925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028927 ac_status=$?
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; } &&
28930 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028931 { (case "(($ac_try" in
28932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28933 *) ac_try_echo=$ac_try;;
28934esac
28935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28936 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028937 ac_status=$?
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; }; then
28940 ac_header_compiler=yes
28941else
28942 echo "$as_me: failed program was:" >&5
28943sed 's/^/| /' conftest.$ac_ext >&5
28944
Reid Spencera773bd52006-08-04 18:18:08 +000028945 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028946fi
Reid Spencera773bd52006-08-04 18:18:08 +000028947
28948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28949{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28950echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028951
28952# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028953{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028955cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028956/* confdefs.h. */
28957_ACEOF
28958cat confdefs.h >>conftest.$ac_ext
28959cat >>conftest.$ac_ext <<_ACEOF
28960/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028961#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028962_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028963if { (ac_try="$ac_cpp conftest.$ac_ext"
28964case "(($ac_try" in
28965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966 *) ac_try_echo=$ac_try;;
28967esac
28968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028970 ac_status=$?
28971 grep -v '^ *+' conftest.er1 >conftest.err
28972 rm -f conftest.er1
28973 cat conftest.err >&5
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); } >/dev/null; then
28976 if test -s conftest.err; then
28977 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028979 else
28980 ac_cpp_err=
28981 fi
28982else
28983 ac_cpp_err=yes
28984fi
28985if test -z "$ac_cpp_err"; then
28986 ac_header_preproc=yes
28987else
28988 echo "$as_me: failed program was:" >&5
28989sed 's/^/| /' conftest.$ac_ext >&5
28990
28991 ac_header_preproc=no
28992fi
Reid Spencera773bd52006-08-04 18:18:08 +000028993
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028994rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028995{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28996echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028997
28998# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29000 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029005 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029006 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029007 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029020 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029021## ----------------------------------- ##
29022## Report this to llvmbugs@cs.uiuc.edu ##
29023## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029024_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029025 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029026 ;;
29027esac
Reid Spencera773bd52006-08-04 18:18:08 +000029028{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029031 echo $ECHO_N "(cached) $ECHO_C" >&6
29032else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029033 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029034fi
Reid Spencera773bd52006-08-04 18:18:08 +000029035ac_res=`eval echo '${'$as_ac_Header'}'`
29036 { echo "$as_me:$LINENO: result: $ac_res" >&5
29037echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029038
29039fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029040if test `eval echo '${'$as_ac_Header'}'` = yes; then
29041 cat >>confdefs.h <<_ACEOF
29042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029043_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029044
29045fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029046
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029047done
29048
John Criswell7ed43ad2004-07-19 16:12:29 +000029049
Reid Spencercdb08a32006-06-05 16:11:07 +000029050
Reid Spencera6d990a2006-09-14 06:17:21 +000029051
29052for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029053do
29054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029059 echo $ECHO_N "(cached) $ECHO_C" >&6
29060fi
Reid Spencera773bd52006-08-04 18:18:08 +000029061ac_res=`eval echo '${'$as_ac_Header'}'`
29062 { echo "$as_me:$LINENO: result: $ac_res" >&5
29063echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029064else
29065 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029068cat >conftest.$ac_ext <<_ACEOF
29069/* confdefs.h. */
29070_ACEOF
29071cat confdefs.h >>conftest.$ac_ext
29072cat >>conftest.$ac_ext <<_ACEOF
29073/* end confdefs.h. */
29074$ac_includes_default
29075#include <$ac_header>
29076_ACEOF
29077rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029078if { (ac_try="$ac_compile"
29079case "(($ac_try" in
29080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081 *) ac_try_echo=$ac_try;;
29082esac
29083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029085 ac_status=$?
29086 grep -v '^ *+' conftest.er1 >conftest.err
29087 rm -f conftest.er1
29088 cat conftest.err >&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29092 { (case "(($ac_try" in
29093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094 *) ac_try_echo=$ac_try;;
29095esac
29096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029102 { (case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29105esac
29106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 ac_header_compiler=yes
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
Reid Spencera773bd52006-08-04 18:18:08 +000029116 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029117fi
Reid Spencera773bd52006-08-04 18:18:08 +000029118
29119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29120{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29121echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029122
29123# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029124{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029126cat >conftest.$ac_ext <<_ACEOF
29127/* confdefs.h. */
29128_ACEOF
29129cat confdefs.h >>conftest.$ac_ext
29130cat >>conftest.$ac_ext <<_ACEOF
29131/* end confdefs.h. */
29132#include <$ac_header>
29133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029134if { (ac_try="$ac_cpp conftest.$ac_ext"
29135case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29138esac
29139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029141 ac_status=$?
29142 grep -v '^ *+' conftest.er1 >conftest.err
29143 rm -f conftest.er1
29144 cat conftest.err >&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); } >/dev/null; then
29147 if test -s conftest.err; then
29148 ac_cpp_err=$ac_c_preproc_warn_flag
29149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29150 else
29151 ac_cpp_err=
29152 fi
29153else
29154 ac_cpp_err=yes
29155fi
29156if test -z "$ac_cpp_err"; then
29157 ac_header_preproc=yes
29158else
29159 echo "$as_me: failed program was:" >&5
29160sed 's/^/| /' conftest.$ac_ext >&5
29161
29162 ac_header_preproc=no
29163fi
Reid Spencera773bd52006-08-04 18:18:08 +000029164
Chris Lattner0b142592005-11-14 06:57:34 +000029165rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029166{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29167echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029168
29169# So? What about this header?
29170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29171 yes:no: )
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29176 ac_header_preproc=yes
29177 ;;
29178 no:yes:* )
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029191 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029192## ----------------------------------- ##
29193## Report this to llvmbugs@cs.uiuc.edu ##
29194## ----------------------------------- ##
29195_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029196 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029197 ;;
29198esac
Reid Spencera773bd52006-08-04 18:18:08 +000029199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029202 echo $ECHO_N "(cached) $ECHO_C" >&6
29203else
29204 eval "$as_ac_Header=\$ac_header_preproc"
29205fi
Reid Spencera773bd52006-08-04 18:18:08 +000029206ac_res=`eval echo '${'$as_ac_Header'}'`
29207 { echo "$as_me:$LINENO: result: $ac_res" >&5
29208echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029209
29210fi
29211if test `eval echo '${'$as_ac_Header'}'` = yes; then
29212 cat >>confdefs.h <<_ACEOF
29213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29214_ACEOF
29215
29216fi
29217
29218done
29219
Reid Spencer0a262ba2005-08-24 10:07:20 +000029220if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029221 if test "${ac_cv_header_pthread_h+set}" = set; then
29222 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29223echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29224if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029225 echo $ECHO_N "(cached) $ECHO_C" >&6
29226fi
Reid Spencer1000b732006-12-01 00:37:14 +000029227{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29228echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029229else
29230 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029231{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29232echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029233cat >conftest.$ac_ext <<_ACEOF
29234/* confdefs.h. */
29235_ACEOF
29236cat confdefs.h >>conftest.$ac_ext
29237cat >>conftest.$ac_ext <<_ACEOF
29238/* end confdefs.h. */
29239$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029240#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029241_ACEOF
29242rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029243if { (ac_try="$ac_compile"
29244case "(($ac_try" in
29245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246 *) ac_try_echo=$ac_try;;
29247esac
29248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029250 ac_status=$?
29251 grep -v '^ *+' conftest.er1 >conftest.err
29252 rm -f conftest.er1
29253 cat conftest.err >&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29257 { (case "(($ac_try" in
29258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29259 *) ac_try_echo=$ac_try;;
29260esac
29261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29262 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029263 ac_status=$?
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; } &&
29266 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029267 { (case "(($ac_try" in
29268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269 *) ac_try_echo=$ac_try;;
29270esac
29271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029273 ac_status=$?
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); }; }; then
29276 ac_header_compiler=yes
29277else
29278 echo "$as_me: failed program was:" >&5
29279sed 's/^/| /' conftest.$ac_ext >&5
29280
Reid Spencera773bd52006-08-04 18:18:08 +000029281 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029282fi
Reid Spencera773bd52006-08-04 18:18:08 +000029283
29284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29286echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029287
29288# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029289{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29290echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029291cat >conftest.$ac_ext <<_ACEOF
29292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029297#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029298_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029299if { (ac_try="$ac_cpp conftest.$ac_ext"
29300case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29303esac
29304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029306 ac_status=$?
29307 grep -v '^ *+' conftest.er1 >conftest.err
29308 rm -f conftest.er1
29309 cat conftest.err >&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); } >/dev/null; then
29312 if test -s conftest.err; then
29313 ac_cpp_err=$ac_c_preproc_warn_flag
29314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29315 else
29316 ac_cpp_err=
29317 fi
29318else
29319 ac_cpp_err=yes
29320fi
29321if test -z "$ac_cpp_err"; then
29322 ac_header_preproc=yes
29323else
29324 echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327 ac_header_preproc=no
29328fi
Reid Spencera773bd52006-08-04 18:18:08 +000029329
Reid Spencer0a262ba2005-08-24 10:07:20 +000029330rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29332echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029333
29334# So? What about this header?
29335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29336 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029337 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29338echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29339 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29340echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029341 ac_header_preproc=yes
29342 ;;
29343 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029344 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29345echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29346 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29347echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29349echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29351echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29353echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29355echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029356 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029357## ----------------------------------- ##
29358## Report this to llvmbugs@cs.uiuc.edu ##
29359## ----------------------------------- ##
29360_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029361 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029362 ;;
29363esac
Reid Spencer1000b732006-12-01 00:37:14 +000029364{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29365echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29366if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368else
Reid Spencer1000b732006-12-01 00:37:14 +000029369 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029370fi
Reid Spencer1000b732006-12-01 00:37:14 +000029371{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29372echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029373
29374fi
Reid Spencer1000b732006-12-01 00:37:14 +000029375if test $ac_cv_header_pthread_h = yes; then
29376 HAVE_PTHREAD=1
29377
29378else
29379 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029380
29381fi
29382
Reid Spencer1000b732006-12-01 00:37:14 +000029383
29384else
29385 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029386
29387fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029388
29389
Reid Spencerb2ed05262006-11-03 18:04:08 +000029390
29391 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29392echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29393if test "${ac_cv_huge_val_sanity+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395else
29396
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029397 ac_ext=cpp
29398ac_cpp='$CXXCPP $CPPFLAGS'
29399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029402
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029403 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029404 if test "$cross_compiling" = yes; then
29405 ac_cv_huge_val_sanity=yes
29406else
29407 cat >conftest.$ac_ext <<_ACEOF
29408/* confdefs.h. */
29409_ACEOF
29410cat confdefs.h >>conftest.$ac_ext
29411cat >>conftest.$ac_ext <<_ACEOF
29412/* end confdefs.h. */
29413#include <math.h>
29414int
29415main ()
29416{
29417double x = HUGE_VAL; return x != x;
29418 ;
29419 return 0;
29420}
29421_ACEOF
29422rm -f conftest$ac_exeext
29423if { (ac_try="$ac_link"
29424case "(($ac_try" in
29425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426 *) ac_try_echo=$ac_try;;
29427esac
29428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429 (eval "$ac_link") 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29433 { (case "(($ac_try" in
29434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435 *) ac_try_echo=$ac_try;;
29436esac
29437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438 (eval "$ac_try") 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; }; then
29442 ac_cv_huge_val_sanity=yes
29443else
29444 echo "$as_me: program exited with status $ac_status" >&5
29445echo "$as_me: failed program was:" >&5
29446sed 's/^/| /' conftest.$ac_ext >&5
29447
29448( exit $ac_status )
29449ac_cv_huge_val_sanity=no
29450fi
29451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29452fi
29453
29454
29455 ac_ext=c
29456ac_cpp='$CPP $CPPFLAGS'
29457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29459ac_compiler_gnu=$ac_cv_c_compiler_gnu
29460
29461
29462fi
29463{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29464echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29465 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29466
29467
Reid Spencera773bd52006-08-04 18:18:08 +000029468{ echo "$as_me:$LINENO: checking for pid_t" >&5
29469echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029470if test "${ac_cv_type_pid_t+set}" = set; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29472else
29473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029474/* confdefs.h. */
29475_ACEOF
29476cat confdefs.h >>conftest.$ac_ext
29477cat >>conftest.$ac_ext <<_ACEOF
29478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029479$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029480typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029481int
29482main ()
29483{
Reid Spencera773bd52006-08-04 18:18:08 +000029484if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029485 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029486if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029487 return 0;
29488 ;
29489 return 0;
29490}
29491_ACEOF
29492rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029493if { (ac_try="$ac_compile"
29494case "(($ac_try" in
29495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496 *) ac_try_echo=$ac_try;;
29497esac
29498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029501 grep -v '^ *+' conftest.er1 >conftest.err
29502 rm -f conftest.er1
29503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29507 { (case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29510esac
29511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029513 ac_status=$?
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; } &&
29516 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029517 { (case "(($ac_try" in
29518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519 *) ac_try_echo=$ac_try;;
29520esac
29521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029523 ac_status=$?
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); }; }; then
29526 ac_cv_type_pid_t=yes
29527else
29528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029529sed 's/^/| /' conftest.$ac_ext >&5
29530
Reid Spencera773bd52006-08-04 18:18:08 +000029531 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029532fi
Reid Spencera773bd52006-08-04 18:18:08 +000029533
29534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029535fi
Reid Spencera773bd52006-08-04 18:18:08 +000029536{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29537echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029538if test $ac_cv_type_pid_t = yes; then
29539 :
29540else
29541
29542cat >>confdefs.h <<_ACEOF
29543#define pid_t int
29544_ACEOF
29545
29546fi
29547
Reid Spencera773bd52006-08-04 18:18:08 +000029548{ echo "$as_me:$LINENO: checking for size_t" >&5
29549echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029550if test "${ac_cv_type_size_t+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29552else
29553 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029554/* confdefs.h. */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029559$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029560typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029561int
29562main ()
29563{
Reid Spencera773bd52006-08-04 18:18:08 +000029564if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029565 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029566if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029567 return 0;
29568 ;
29569 return 0;
29570}
29571_ACEOF
29572rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029573if { (ac_try="$ac_compile"
29574case "(($ac_try" in
29575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29577esac
29578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029581 grep -v '^ *+' conftest.er1 >conftest.err
29582 rm -f conftest.er1
29583 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29587 { (case "(($ac_try" in
29588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589 *) ac_try_echo=$ac_try;;
29590esac
29591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29592 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; } &&
29596 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; }; then
29606 ac_cv_type_size_t=yes
29607else
29608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029609sed 's/^/| /' conftest.$ac_ext >&5
29610
Reid Spencera773bd52006-08-04 18:18:08 +000029611 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029612fi
Reid Spencera773bd52006-08-04 18:18:08 +000029613
29614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029615fi
Reid Spencera773bd52006-08-04 18:18:08 +000029616{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29617echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029618if test $ac_cv_type_size_t = yes; then
29619 :
29620else
29621
29622cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029623#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029624_ACEOF
29625
29626fi
29627
Reid Spencera773bd52006-08-04 18:18:08 +000029628{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29629echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029630if test "${ac_cv_type_signal+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29632else
29633 cat >conftest.$ac_ext <<_ACEOF
29634/* confdefs.h. */
29635_ACEOF
29636cat confdefs.h >>conftest.$ac_ext
29637cat >>conftest.$ac_ext <<_ACEOF
29638/* end confdefs.h. */
29639#include <sys/types.h>
29640#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029641
29642int
29643main ()
29644{
Reid Spencera773bd52006-08-04 18:18:08 +000029645return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029646 ;
29647 return 0;
29648}
29649_ACEOF
29650rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029651if { (ac_try="$ac_compile"
29652case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29655esac
29656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029658 ac_status=$?
29659 grep -v '^ *+' conftest.er1 >conftest.err
29660 rm -f conftest.er1
29661 cat conftest.err >&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29665 { (case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29668esac
29669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029675 { (case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29678esac
29679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029681 ac_status=$?
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029684 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029685else
29686 echo "$as_me: failed program was:" >&5
29687sed 's/^/| /' conftest.$ac_ext >&5
29688
Reid Spencera773bd52006-08-04 18:18:08 +000029689 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029690fi
Reid Spencera773bd52006-08-04 18:18:08 +000029691
29692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029693fi
Reid Spencera773bd52006-08-04 18:18:08 +000029694{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29695echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029696
29697cat >>confdefs.h <<_ACEOF
29698#define RETSIGTYPE $ac_cv_type_signal
29699_ACEOF
29700
29701
Reid Spencera773bd52006-08-04 18:18:08 +000029702{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29703echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029704if test "${ac_cv_struct_tm+set}" = set; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29706else
29707 cat >conftest.$ac_ext <<_ACEOF
29708/* confdefs.h. */
29709_ACEOF
29710cat confdefs.h >>conftest.$ac_ext
29711cat >>conftest.$ac_ext <<_ACEOF
29712/* end confdefs.h. */
29713#include <sys/types.h>
29714#include <time.h>
29715
29716int
29717main ()
29718{
29719struct tm *tp; tp->tm_sec;
29720 ;
29721 return 0;
29722}
29723_ACEOF
29724rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029725if { (ac_try="$ac_compile"
29726case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29729esac
29730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029732 ac_status=$?
29733 grep -v '^ *+' conftest.er1 >conftest.err
29734 rm -f conftest.er1
29735 cat conftest.err >&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29739 { (case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29742esac
29743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029745 ac_status=$?
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; } &&
29748 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029749 { (case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29752esac
29753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; }; then
29758 ac_cv_struct_tm=time.h
29759else
29760 echo "$as_me: failed program was:" >&5
29761sed 's/^/| /' conftest.$ac_ext >&5
29762
Reid Spencera773bd52006-08-04 18:18:08 +000029763 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029764fi
Reid Spencera773bd52006-08-04 18:18:08 +000029765
29766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029767fi
Reid Spencera773bd52006-08-04 18:18:08 +000029768{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29769echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029770if test $ac_cv_struct_tm = sys/time.h; then
29771
29772cat >>confdefs.h <<\_ACEOF
29773#define TM_IN_SYS_TIME 1
29774_ACEOF
29775
29776fi
29777
Reid Spencera773bd52006-08-04 18:18:08 +000029778{ echo "$as_me:$LINENO: checking for int64_t" >&5
29779echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029780if test "${ac_cv_type_int64_t+set}" = set; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
29782else
29783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029784/* confdefs.h. */
29785_ACEOF
29786cat confdefs.h >>conftest.$ac_ext
29787cat >>conftest.$ac_ext <<_ACEOF
29788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029789$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029790typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029791int
29792main ()
29793{
Reid Spencera773bd52006-08-04 18:18:08 +000029794if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029795 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029796if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029797 return 0;
29798 ;
29799 return 0;
29800}
29801_ACEOF
29802rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029803if { (ac_try="$ac_compile"
29804case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29807esac
29808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029811 grep -v '^ *+' conftest.er1 >conftest.err
29812 rm -f conftest.er1
29813 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29817 { (case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29820esac
29821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029823 ac_status=$?
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); }; } &&
29826 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029827 { (case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29830esac
29831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 ac_cv_type_int64_t=yes
29837else
29838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029839sed 's/^/| /' conftest.$ac_ext >&5
29840
Reid Spencera773bd52006-08-04 18:18:08 +000029841 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029842fi
Reid Spencera773bd52006-08-04 18:18:08 +000029843
29844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029845fi
Reid Spencera773bd52006-08-04 18:18:08 +000029846{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29847echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029848if test $ac_cv_type_int64_t = yes; then
29849
29850cat >>confdefs.h <<_ACEOF
29851#define HAVE_INT64_T 1
29852_ACEOF
29853
29854
29855else
29856 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29857echo "$as_me: error: Type int64_t required but not found" >&2;}
29858 { (exit 1); exit 1; }; }
29859fi
29860
Reid Spencera773bd52006-08-04 18:18:08 +000029861{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29862echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029863if test "${ac_cv_type_uint64_t+set}" = set; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29865else
29866 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029867/* confdefs.h. */
29868_ACEOF
29869cat confdefs.h >>conftest.$ac_ext
29870cat >>conftest.$ac_ext <<_ACEOF
29871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029872$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029873typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029874int
29875main ()
29876{
Reid Spencera773bd52006-08-04 18:18:08 +000029877if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029878 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029879if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029880 return 0;
29881 ;
29882 return 0;
29883}
29884_ACEOF
29885rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029886if { (ac_try="$ac_compile"
29887case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29890esac
29891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029894 grep -v '^ *+' conftest.er1 >conftest.err
29895 rm -f conftest.er1
29896 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29900 { (case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29903esac
29904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; } &&
29909 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029910 { (case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29913esac
29914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; }; then
29919 ac_cv_type_uint64_t=yes
29920else
29921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029922sed 's/^/| /' conftest.$ac_ext >&5
29923
Reid Spencera773bd52006-08-04 18:18:08 +000029924 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029925fi
Reid Spencera773bd52006-08-04 18:18:08 +000029926
29927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029928fi
Reid Spencera773bd52006-08-04 18:18:08 +000029929{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29930echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029931if test $ac_cv_type_uint64_t = yes; then
29932
29933cat >>confdefs.h <<_ACEOF
29934#define HAVE_UINT64_T 1
29935_ACEOF
29936
29937
29938else
Reid Spencera773bd52006-08-04 18:18:08 +000029939 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29940echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029941if test "${ac_cv_type_u_int64_t+set}" = set; then
29942 echo $ECHO_N "(cached) $ECHO_C" >&6
29943else
29944 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029945/* confdefs.h. */
29946_ACEOF
29947cat confdefs.h >>conftest.$ac_ext
29948cat >>conftest.$ac_ext <<_ACEOF
29949/* end confdefs.h. */
29950$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029951typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029952int
29953main ()
29954{
Reid Spencera773bd52006-08-04 18:18:08 +000029955if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029956 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029957if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029958 return 0;
29959 ;
29960 return 0;
29961}
29962_ACEOF
29963rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029964if { (ac_try="$ac_compile"
29965case "(($ac_try" in
29966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967 *) ac_try_echo=$ac_try;;
29968esac
29969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029972 grep -v '^ *+' conftest.er1 >conftest.err
29973 rm -f conftest.er1
29974 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29978 { (case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29981esac
29982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029988 { (case "(($ac_try" in
29989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29990 *) ac_try_echo=$ac_try;;
29991esac
29992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29993 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029994 ac_status=$?
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; }; then
29997 ac_cv_type_u_int64_t=yes
29998else
29999 echo "$as_me: failed program was:" >&5
30000sed 's/^/| /' conftest.$ac_ext >&5
30001
Reid Spencera773bd52006-08-04 18:18:08 +000030002 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030003fi
Reid Spencera773bd52006-08-04 18:18:08 +000030004
30005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030006fi
Reid Spencera773bd52006-08-04 18:18:08 +000030007{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30008echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030009if test $ac_cv_type_u_int64_t = yes; then
30010
30011cat >>confdefs.h <<_ACEOF
30012#define HAVE_U_INT64_T 1
30013_ACEOF
30014
30015
Misha Brukmanceca9042004-09-02 23:02:30 +000030016else
30017 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30018echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30019 { (exit 1); exit 1; }; }
30020fi
30021
John Criswell679ff312004-09-02 18:44:44 +000030022fi
30023
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030024
30025
30026
30027
30028
30029
30030
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030031
30032
Reid Spencerdf3be822006-01-23 08:15:53 +000030033for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030034do
30035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030036{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030039 echo $ECHO_N "(cached) $ECHO_C" >&6
30040else
30041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030042/* confdefs.h. */
30043_ACEOF
30044cat confdefs.h >>conftest.$ac_ext
30045cat >>conftest.$ac_ext <<_ACEOF
30046/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30049#define $ac_func innocuous_$ac_func
30050
30051/* System header to define __stub macros and hopefully few prototypes,
30052 which can conflict with char $ac_func (); below.
30053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30054 <limits.h> exists even on freestanding compilers. */
30055
30056#ifdef __STDC__
30057# include <limits.h>
30058#else
30059# include <assert.h>
30060#endif
30061
30062#undef $ac_func
30063
Reid Spencera773bd52006-08-04 18:18:08 +000030064/* Override any GCC internal prototype to avoid an error.
30065 Use char because int might match the return type of a GCC
30066 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030067#ifdef __cplusplus
30068extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030069#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030070char $ac_func ();
30071/* The GNU C library defines this for functions which it implements
30072 to always fail with ENOSYS. Some functions are actually named
30073 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030074#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030075choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030076#endif
John Criswell7a73b802003-06-30 21:59:07 +000030077
John Criswell7a73b802003-06-30 21:59:07 +000030078int
30079main ()
30080{
Reid Spencera773bd52006-08-04 18:18:08 +000030081return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030082 ;
30083 return 0;
30084}
30085_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030086rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030087if { (ac_try="$ac_link"
30088case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30091esac
30092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030095 grep -v '^ *+' conftest.er1 >conftest.err
30096 rm -f conftest.er1
30097 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30101 { (case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104esac
30105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030110 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030111 { (case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114esac
30115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030120 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030121else
30122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030123sed 's/^/| /' conftest.$ac_ext >&5
30124
Reid Spencera773bd52006-08-04 18:18:08 +000030125 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030126fi
Reid Spencera773bd52006-08-04 18:18:08 +000030127
30128rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030129 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030130fi
Reid Spencera773bd52006-08-04 18:18:08 +000030131ac_res=`eval echo '${'$as_ac_var'}'`
30132 { echo "$as_me:$LINENO: result: $ac_res" >&5
30133echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030134if test `eval echo '${'$as_ac_var'}'` = yes; then
30135 cat >>confdefs.h <<_ACEOF
30136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030137_ACEOF
30138
30139fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030140done
John Criswell7a73b802003-06-30 21:59:07 +000030141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030142
30143
30144
Reid Spencer6af3d262004-12-15 04:01:48 +000030145
Reid Spencer96cf5872007-07-13 10:05:30 +000030146for ac_func in powf fmodf strtof round
30147do
30148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30149{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30151if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30153else
30154 cat >conftest.$ac_ext <<_ACEOF
30155/* confdefs.h. */
30156_ACEOF
30157cat confdefs.h >>conftest.$ac_ext
30158cat >>conftest.$ac_ext <<_ACEOF
30159/* end confdefs.h. */
30160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30162#define $ac_func innocuous_$ac_func
30163
30164/* System header to define __stub macros and hopefully few prototypes,
30165 which can conflict with char $ac_func (); below.
30166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30167 <limits.h> exists even on freestanding compilers. */
30168
30169#ifdef __STDC__
30170# include <limits.h>
30171#else
30172# include <assert.h>
30173#endif
30174
30175#undef $ac_func
30176
30177/* Override any GCC internal prototype to avoid an error.
30178 Use char because int might match the return type of a GCC
30179 builtin and then its argument prototype would still apply. */
30180#ifdef __cplusplus
30181extern "C"
30182#endif
30183char $ac_func ();
30184/* The GNU C library defines this for functions which it implements
30185 to always fail with ENOSYS. Some functions are actually named
30186 something starting with __ and the normal name is an alias. */
30187#if defined __stub_$ac_func || defined __stub___$ac_func
30188choke me
30189#endif
30190
30191int
30192main ()
30193{
30194return $ac_func ();
30195 ;
30196 return 0;
30197}
30198_ACEOF
30199rm -f conftest.$ac_objext conftest$ac_exeext
30200if { (ac_try="$ac_link"
30201case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30204esac
30205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_link") 2>conftest.er1
30207 ac_status=$?
30208 grep -v '^ *+' conftest.er1 >conftest.err
30209 rm -f conftest.er1
30210 cat conftest.err >&5
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } &&
30213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30214 { (case "(($ac_try" in
30215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30217esac
30218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219 (eval "$ac_try") 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest$ac_exeext'
30224 { (case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30227esac
30228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_try") 2>&5
30230 ac_status=$?
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; }; then
30233 eval "$as_ac_var=yes"
30234else
30235 echo "$as_me: failed program was:" >&5
30236sed 's/^/| /' conftest.$ac_ext >&5
30237
30238 eval "$as_ac_var=no"
30239fi
30240
30241rm -f core conftest.err conftest.$ac_objext \
30242 conftest$ac_exeext conftest.$ac_ext
30243fi
30244ac_res=`eval echo '${'$as_ac_var'}'`
30245 { echo "$as_me:$LINENO: result: $ac_res" >&5
30246echo "${ECHO_T}$ac_res" >&6; }
30247if test `eval echo '${'$as_ac_var'}'` = yes; then
30248 cat >>confdefs.h <<_ACEOF
30249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30250_ACEOF
30251
30252fi
30253done
30254
30255
30256
30257
30258
Reid Spencer6af3d262004-12-15 04:01:48 +000030259
Reid Spencerb90645c2007-02-16 19:17:20 +000030260for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30261do
30262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30263{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30265if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30266 echo $ECHO_N "(cached) $ECHO_C" >&6
30267else
30268 cat >conftest.$ac_ext <<_ACEOF
30269/* confdefs.h. */
30270_ACEOF
30271cat confdefs.h >>conftest.$ac_ext
30272cat >>conftest.$ac_ext <<_ACEOF
30273/* end confdefs.h. */
30274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30276#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030277
Reid Spencerb90645c2007-02-16 19:17:20 +000030278/* System header to define __stub macros and hopefully few prototypes,
30279 which can conflict with char $ac_func (); below.
30280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30281 <limits.h> exists even on freestanding compilers. */
30282
30283#ifdef __STDC__
30284# include <limits.h>
30285#else
30286# include <assert.h>
30287#endif
30288
30289#undef $ac_func
30290
30291/* Override any GCC internal prototype to avoid an error.
30292 Use char because int might match the return type of a GCC
30293 builtin and then its argument prototype would still apply. */
30294#ifdef __cplusplus
30295extern "C"
30296#endif
30297char $ac_func ();
30298/* The GNU C library defines this for functions which it implements
30299 to always fail with ENOSYS. Some functions are actually named
30300 something starting with __ and the normal name is an alias. */
30301#if defined __stub_$ac_func || defined __stub___$ac_func
30302choke me
30303#endif
30304
30305int
30306main ()
30307{
30308return $ac_func ();
30309 ;
30310 return 0;
30311}
30312_ACEOF
30313rm -f conftest.$ac_objext conftest$ac_exeext
30314if { (ac_try="$ac_link"
30315case "(($ac_try" in
30316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317 *) ac_try_echo=$ac_try;;
30318esac
30319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320 (eval "$ac_link") 2>conftest.er1
30321 ac_status=$?
30322 grep -v '^ *+' conftest.er1 >conftest.err
30323 rm -f conftest.er1
30324 cat conftest.err >&5
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } &&
30327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30328 { (case "(($ac_try" in
30329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330 *) ac_try_echo=$ac_try;;
30331esac
30332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333 (eval "$ac_try") 2>&5
30334 ac_status=$?
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; } &&
30337 { ac_try='test -s conftest$ac_exeext'
30338 { (case "(($ac_try" in
30339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340 *) ac_try_echo=$ac_try;;
30341esac
30342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343 (eval "$ac_try") 2>&5
30344 ac_status=$?
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); }; }; then
30347 eval "$as_ac_var=yes"
30348else
30349 echo "$as_me: failed program was:" >&5
30350sed 's/^/| /' conftest.$ac_ext >&5
30351
30352 eval "$as_ac_var=no"
30353fi
30354
30355rm -f core conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
30357fi
30358ac_res=`eval echo '${'$as_ac_var'}'`
30359 { echo "$as_me:$LINENO: result: $ac_res" >&5
30360echo "${ECHO_T}$ac_res" >&6; }
30361if test `eval echo '${'$as_ac_var'}'` = yes; then
30362 cat >>confdefs.h <<_ACEOF
30363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30364_ACEOF
30365
30366fi
30367done
30368
30369
30370
30371
30372for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030373do
30374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030378 echo $ECHO_N "(cached) $ECHO_C" >&6
30379else
30380 cat >conftest.$ac_ext <<_ACEOF
30381/* confdefs.h. */
30382_ACEOF
30383cat confdefs.h >>conftest.$ac_ext
30384cat >>conftest.$ac_ext <<_ACEOF
30385/* end confdefs.h. */
30386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30388#define $ac_func innocuous_$ac_func
30389
30390/* System header to define __stub macros and hopefully few prototypes,
30391 which can conflict with char $ac_func (); below.
30392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30393 <limits.h> exists even on freestanding compilers. */
30394
30395#ifdef __STDC__
30396# include <limits.h>
30397#else
30398# include <assert.h>
30399#endif
30400
30401#undef $ac_func
30402
Reid Spencera773bd52006-08-04 18:18:08 +000030403/* Override any GCC internal prototype to avoid an error.
30404 Use char because int might match the return type of a GCC
30405 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030406#ifdef __cplusplus
30407extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030408#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030409char $ac_func ();
30410/* The GNU C library defines this for functions which it implements
30411 to always fail with ENOSYS. Some functions are actually named
30412 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030413#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030414choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030415#endif
30416
30417int
30418main ()
30419{
Reid Spencera773bd52006-08-04 18:18:08 +000030420return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030421 ;
30422 return 0;
30423}
30424_ACEOF
30425rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030426if { (ac_try="$ac_link"
30427case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30430esac
30431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030433 ac_status=$?
30434 grep -v '^ *+' conftest.er1 >conftest.err
30435 rm -f conftest.er1
30436 cat conftest.err >&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30440 { (case "(($ac_try" in
30441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442 *) ac_try_echo=$ac_try;;
30443esac
30444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; } &&
30449 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030450 { (case "(($ac_try" in
30451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30452 *) ac_try_echo=$ac_try;;
30453esac
30454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30455 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; }; then
30459 eval "$as_ac_var=yes"
30460else
30461 echo "$as_me: failed program was:" >&5
30462sed 's/^/| /' conftest.$ac_ext >&5
30463
Reid Spencera773bd52006-08-04 18:18:08 +000030464 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030465fi
Reid Spencera773bd52006-08-04 18:18:08 +000030466
30467rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030468 conftest$ac_exeext conftest.$ac_ext
30469fi
Reid Spencera773bd52006-08-04 18:18:08 +000030470ac_res=`eval echo '${'$as_ac_var'}'`
30471 { echo "$as_me:$LINENO: result: $ac_res" >&5
30472echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030473if test `eval echo '${'$as_ac_var'}'` = yes; then
30474 cat >>confdefs.h <<_ACEOF
30475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30476_ACEOF
30477
30478fi
30479done
30480
30481
30482
30483
30484
30485
30486
30487
30488for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030489do
30490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030491{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30493if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030494 echo $ECHO_N "(cached) $ECHO_C" >&6
30495else
30496 cat >conftest.$ac_ext <<_ACEOF
30497/* confdefs.h. */
30498_ACEOF
30499cat confdefs.h >>conftest.$ac_ext
30500cat >>conftest.$ac_ext <<_ACEOF
30501/* end confdefs.h. */
30502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30504#define $ac_func innocuous_$ac_func
30505
30506/* System header to define __stub macros and hopefully few prototypes,
30507 which can conflict with char $ac_func (); below.
30508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30509 <limits.h> exists even on freestanding compilers. */
30510
30511#ifdef __STDC__
30512# include <limits.h>
30513#else
30514# include <assert.h>
30515#endif
30516
30517#undef $ac_func
30518
Reid Spencera773bd52006-08-04 18:18:08 +000030519/* Override any GCC internal prototype to avoid an error.
30520 Use char because int might match the return type of a GCC
30521 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030522#ifdef __cplusplus
30523extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030524#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030525char $ac_func ();
30526/* The GNU C library defines this for functions which it implements
30527 to always fail with ENOSYS. Some functions are actually named
30528 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030529#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030530choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030531#endif
30532
30533int
30534main ()
30535{
Reid Spencera773bd52006-08-04 18:18:08 +000030536return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030537 ;
30538 return 0;
30539}
30540_ACEOF
30541rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030542if { (ac_try="$ac_link"
30543case "(($ac_try" in
30544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545 *) ac_try_echo=$ac_try;;
30546esac
30547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30548 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030549 ac_status=$?
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30556 { (case "(($ac_try" in
30557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30558 *) ac_try_echo=$ac_try;;
30559esac
30560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30561 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030562 ac_status=$?
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; } &&
30565 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030566 { (case "(($ac_try" in
30567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30568 *) ac_try_echo=$ac_try;;
30569esac
30570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30571 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030572 ac_status=$?
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); }; }; then
30575 eval "$as_ac_var=yes"
30576else
30577 echo "$as_me: failed program was:" >&5
30578sed 's/^/| /' conftest.$ac_ext >&5
30579
Reid Spencera773bd52006-08-04 18:18:08 +000030580 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030581fi
Reid Spencera773bd52006-08-04 18:18:08 +000030582
30583rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030584 conftest$ac_exeext conftest.$ac_ext
30585fi
Reid Spencera773bd52006-08-04 18:18:08 +000030586ac_res=`eval echo '${'$as_ac_var'}'`
30587 { echo "$as_me:$LINENO: result: $ac_res" >&5
30588echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030589if test `eval echo '${'$as_ac_var'}'` = yes; then
30590 cat >>confdefs.h <<_ACEOF
30591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30592_ACEOF
30593
30594fi
30595done
30596
30597
Reid Spencerba46ca32004-12-31 05:49:15 +000030598
30599
Chris Lattner0b142592005-11-14 06:57:34 +000030600
Chris Lattner511f11d2005-11-14 07:25:50 +000030601for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030602do
30603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030607 echo $ECHO_N "(cached) $ECHO_C" >&6
30608else
30609 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030610/* confdefs.h. */
30611_ACEOF
30612cat confdefs.h >>conftest.$ac_ext
30613cat >>conftest.$ac_ext <<_ACEOF
30614/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30617#define $ac_func innocuous_$ac_func
30618
30619/* System header to define __stub macros and hopefully few prototypes,
30620 which can conflict with char $ac_func (); below.
30621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30622 <limits.h> exists even on freestanding compilers. */
30623
30624#ifdef __STDC__
30625# include <limits.h>
30626#else
30627# include <assert.h>
30628#endif
30629
30630#undef $ac_func
30631
Reid Spencera773bd52006-08-04 18:18:08 +000030632/* Override any GCC internal prototype to avoid an error.
30633 Use char because int might match the return type of a GCC
30634 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030635#ifdef __cplusplus
30636extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030637#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030638char $ac_func ();
30639/* The GNU C library defines this for functions which it implements
30640 to always fail with ENOSYS. Some functions are actually named
30641 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030642#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030643choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030644#endif
John Criswell7a73b802003-06-30 21:59:07 +000030645
John Criswell7a73b802003-06-30 21:59:07 +000030646int
30647main ()
30648{
Reid Spencera773bd52006-08-04 18:18:08 +000030649return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030650 ;
30651 return 0;
30652}
30653_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030654rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030655if { (ac_try="$ac_link"
30656case "(($ac_try" in
30657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658 *) ac_try_echo=$ac_try;;
30659esac
30660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030663 grep -v '^ *+' conftest.er1 >conftest.err
30664 rm -f conftest.er1
30665 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30669 { (case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30672esac
30673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030675 ac_status=$?
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030678 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030679 { (case "(($ac_try" in
30680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681 *) ac_try_echo=$ac_try;;
30682esac
30683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030688 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030689else
30690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030691sed 's/^/| /' conftest.$ac_ext >&5
30692
Reid Spencera773bd52006-08-04 18:18:08 +000030693 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030694fi
Reid Spencera773bd52006-08-04 18:18:08 +000030695
30696rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030697 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030698fi
Reid Spencera773bd52006-08-04 18:18:08 +000030699ac_res=`eval echo '${'$as_ac_var'}'`
30700 { echo "$as_me:$LINENO: result: $ac_res" >&5
30701echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030702if test `eval echo '${'$as_ac_var'}'` = yes; then
30703 cat >>confdefs.h <<_ACEOF
30704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030705_ACEOF
30706
30707fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030708done
John Criswell7a73b802003-06-30 21:59:07 +000030709
Reid Spencercdb08a32006-06-05 16:11:07 +000030710
30711
30712
30713
Reid Spencerafa22e22006-12-10 23:29:19 +000030714for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030715do
30716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030720 echo $ECHO_N "(cached) $ECHO_C" >&6
30721else
30722 cat >conftest.$ac_ext <<_ACEOF
30723/* confdefs.h. */
30724_ACEOF
30725cat confdefs.h >>conftest.$ac_ext
30726cat >>conftest.$ac_ext <<_ACEOF
30727/* end confdefs.h. */
30728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30730#define $ac_func innocuous_$ac_func
30731
30732/* System header to define __stub macros and hopefully few prototypes,
30733 which can conflict with char $ac_func (); below.
30734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30735 <limits.h> exists even on freestanding compilers. */
30736
30737#ifdef __STDC__
30738# include <limits.h>
30739#else
30740# include <assert.h>
30741#endif
30742
30743#undef $ac_func
30744
Reid Spencera773bd52006-08-04 18:18:08 +000030745/* Override any GCC internal prototype to avoid an error.
30746 Use char because int might match the return type of a GCC
30747 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030748#ifdef __cplusplus
30749extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030750#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030751char $ac_func ();
30752/* The GNU C library defines this for functions which it implements
30753 to always fail with ENOSYS. Some functions are actually named
30754 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030755#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030756choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030757#endif
30758
30759int
30760main ()
30761{
Reid Spencera773bd52006-08-04 18:18:08 +000030762return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030763 ;
30764 return 0;
30765}
30766_ACEOF
30767rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030768if { (ac_try="$ac_link"
30769case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30772esac
30773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030775 ac_status=$?
30776 grep -v '^ *+' conftest.er1 >conftest.err
30777 rm -f conftest.er1
30778 cat conftest.err >&5
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30782 { (case "(($ac_try" in
30783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784 *) ac_try_echo=$ac_try;;
30785esac
30786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30787 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; } &&
30791 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030792 { (case "(($ac_try" in
30793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794 *) ac_try_echo=$ac_try;;
30795esac
30796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30797 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; }; then
30801 eval "$as_ac_var=yes"
30802else
30803 echo "$as_me: failed program was:" >&5
30804sed 's/^/| /' conftest.$ac_ext >&5
30805
Reid Spencera773bd52006-08-04 18:18:08 +000030806 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030807fi
Reid Spencera773bd52006-08-04 18:18:08 +000030808
30809rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030810 conftest$ac_exeext conftest.$ac_ext
30811fi
Reid Spencera773bd52006-08-04 18:18:08 +000030812ac_res=`eval echo '${'$as_ac_var'}'`
30813 { echo "$as_me:$LINENO: result: $ac_res" >&5
30814echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030815if test `eval echo '${'$as_ac_var'}'` = yes; then
30816 cat >>confdefs.h <<_ACEOF
30817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30818_ACEOF
30819
30820fi
30821done
30822
Reid Spencera773bd52006-08-04 18:18:08 +000030823{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30824echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030825if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030828 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030829ac_cpp='$CPP $CPPFLAGS'
30830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30832ac_compiler_gnu=$ac_cv_c_compiler_gnu
30833
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030834 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030835 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030836else
30837 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030838
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030839 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030840_ACEOF
30841cat confdefs.h >>conftest.$ac_ext
30842cat >>conftest.$ac_ext <<_ACEOF
30843/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030844
John Criswella0137d32003-10-13 16:22:01 +000030845#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030846#include <stdlib.h>
30847
John Criswella0137d32003-10-13 16:22:01 +000030848int
30849main ()
30850{
30851
Reid Spencer2706f8c2004-09-19 23:53:36 +000030852volatile double A, B;
30853char Buffer[100];
30854A = 1;
30855A /= 10.0;
30856sprintf(Buffer, "%a", A);
30857B = atof(Buffer);
30858if (A != B)
30859 return (1);
30860if (A != 0x1.999999999999ap-4)
30861 return (1);
30862return (0);
John Criswella0137d32003-10-13 16:22:01 +000030863 ;
30864 return 0;
30865}
30866_ACEOF
30867rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030868if { (ac_try="$ac_link"
30869case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872esac
30873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030875 ac_status=$?
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030878 { (case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30881esac
30882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030887 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030888else
30889 echo "$as_me: program exited with status $ac_status" >&5
30890echo "$as_me: failed program was:" >&5
30891sed 's/^/| /' conftest.$ac_ext >&5
30892
30893( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030894llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030895fi
Reid Spencera773bd52006-08-04 18:18:08 +000030896rm -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 +000030897fi
Reid Spencera773bd52006-08-04 18:18:08 +000030898
30899
Reid Spencer2706f8c2004-09-19 23:53:36 +000030900 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030901ac_cpp='$CPP $CPPFLAGS'
30902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30904ac_compiler_gnu=$ac_cv_c_compiler_gnu
30905
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030906fi
Reid Spencera773bd52006-08-04 18:18:08 +000030907{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30908echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030909 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030910
30911cat >>confdefs.h <<\_ACEOF
30912#define HAVE_PRINTF_A 1
30913_ACEOF
30914
Reid Spencer2706f8c2004-09-19 23:53:36 +000030915 fi
John Criswella0137d32003-10-13 16:22:01 +000030916
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030917# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30918# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030919{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30920echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030921if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030922 echo $ECHO_N "(cached) $ECHO_C" >&6
30923else
John Criswell0021c312004-02-13 21:57:29 +000030924 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030925/* confdefs.h. */
30926_ACEOF
30927cat confdefs.h >>conftest.$ac_ext
30928cat >>conftest.$ac_ext <<_ACEOF
30929/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030930#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030931int
30932main ()
30933{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030934char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030935 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030936 ;
30937 return 0;
30938}
30939_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030940rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030941if { (ac_try="$ac_link"
30942case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30945esac
30946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030949 grep -v '^ *+' conftest.er1 >conftest.err
30950 rm -f conftest.er1
30951 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30955 { (case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30958esac
30959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030964 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030965 { (case "(($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_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030974 ac_cv_working_alloca_h=yes
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
Reid Spencera773bd52006-08-04 18:18:08 +000030979 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030980fi
Reid Spencera773bd52006-08-04 18:18:08 +000030981
30982rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030983 conftest$ac_exeext conftest.$ac_ext
30984fi
Reid Spencera773bd52006-08-04 18:18:08 +000030985{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30986echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030987if test $ac_cv_working_alloca_h = yes; then
30988
30989cat >>confdefs.h <<\_ACEOF
30990#define HAVE_ALLOCA_H 1
30991_ACEOF
30992
30993fi
30994
Reid Spencera773bd52006-08-04 18:18:08 +000030995{ echo "$as_me:$LINENO: checking for alloca" >&5
30996echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030997if test "${ac_cv_func_alloca_works+set}" = set; then
30998 echo $ECHO_N "(cached) $ECHO_C" >&6
30999else
31000 cat >conftest.$ac_ext <<_ACEOF
31001/* confdefs.h. */
31002_ACEOF
31003cat confdefs.h >>conftest.$ac_ext
31004cat >>conftest.$ac_ext <<_ACEOF
31005/* end confdefs.h. */
31006#ifdef __GNUC__
31007# define alloca __builtin_alloca
31008#else
31009# ifdef _MSC_VER
31010# include <malloc.h>
31011# define alloca _alloca
31012# else
31013# if HAVE_ALLOCA_H
31014# include <alloca.h>
31015# else
31016# ifdef _AIX
31017 #pragma alloca
31018# else
31019# ifndef alloca /* predefined by HP cc +Olibcalls */
31020char *alloca ();
31021# endif
31022# endif
31023# endif
31024# endif
31025#endif
31026
31027int
31028main ()
31029{
31030char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031031 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031032 ;
31033 return 0;
31034}
31035_ACEOF
31036rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031037if { (ac_try="$ac_link"
31038case "(($ac_try" in
31039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040 *) ac_try_echo=$ac_try;;
31041esac
31042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031044 ac_status=$?
31045 grep -v '^ *+' conftest.er1 >conftest.err
31046 rm -f conftest.er1
31047 cat conftest.err >&5
31048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31051 { (case "(($ac_try" in
31052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053 *) ac_try_echo=$ac_try;;
31054esac
31055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31056 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); }; } &&
31060 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 ac_cv_func_alloca_works=yes
31071else
31072 echo "$as_me: failed program was:" >&5
31073sed 's/^/| /' conftest.$ac_ext >&5
31074
Reid Spencera773bd52006-08-04 18:18:08 +000031075 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031076fi
Reid Spencera773bd52006-08-04 18:18:08 +000031077
31078rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031079 conftest$ac_exeext conftest.$ac_ext
31080fi
Reid Spencera773bd52006-08-04 18:18:08 +000031081{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31082echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083
31084if test $ac_cv_func_alloca_works = yes; then
31085
31086cat >>confdefs.h <<\_ACEOF
31087#define HAVE_ALLOCA 1
31088_ACEOF
31089
31090else
31091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31092# that cause trouble. Some versions do not even contain alloca or
31093# contain a buggy version. If you still want to use their alloca,
31094# use ar to extract alloca.o from them instead of compiling alloca.c.
31095
Reid Spencera773bd52006-08-04 18:18:08 +000031096ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031097
31098cat >>confdefs.h <<\_ACEOF
31099#define C_ALLOCA 1
31100_ACEOF
31101
31102
Reid Spencera773bd52006-08-04 18:18:08 +000031103{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31104echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031105if test "${ac_cv_os_cray+set}" = set; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31107else
31108 cat >conftest.$ac_ext <<_ACEOF
31109/* confdefs.h. */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031114#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031115webecray
31116#else
31117wenotbecray
31118#endif
31119
31120_ACEOF
31121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31122 $EGREP "webecray" >/dev/null 2>&1; then
31123 ac_cv_os_cray=yes
31124else
31125 ac_cv_os_cray=no
31126fi
31127rm -f conftest*
31128
31129fi
Reid Spencera773bd52006-08-04 18:18:08 +000031130{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31131echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031132if test $ac_cv_os_cray = yes; then
31133 for ac_func in _getb67 GETB67 getb67; do
31134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031135{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31137if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031138 echo $ECHO_N "(cached) $ECHO_C" >&6
31139else
31140 cat >conftest.$ac_ext <<_ACEOF
31141/* confdefs.h. */
31142_ACEOF
31143cat confdefs.h >>conftest.$ac_ext
31144cat >>conftest.$ac_ext <<_ACEOF
31145/* end confdefs.h. */
31146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31148#define $ac_func innocuous_$ac_func
31149
31150/* System header to define __stub macros and hopefully few prototypes,
31151 which can conflict with char $ac_func (); below.
31152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31153 <limits.h> exists even on freestanding compilers. */
31154
31155#ifdef __STDC__
31156# include <limits.h>
31157#else
31158# include <assert.h>
31159#endif
31160
31161#undef $ac_func
31162
Reid Spencera773bd52006-08-04 18:18:08 +000031163/* Override any GCC internal prototype to avoid an error.
31164 Use char because int might match the return type of a GCC
31165 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031166#ifdef __cplusplus
31167extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031168#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031169char $ac_func ();
31170/* The GNU C library defines this for functions which it implements
31171 to always fail with ENOSYS. Some functions are actually named
31172 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031173#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031174choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031175#endif
31176
31177int
31178main ()
31179{
Reid Spencera773bd52006-08-04 18:18:08 +000031180return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031181 ;
31182 return 0;
31183}
31184_ACEOF
31185rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031186if { (ac_try="$ac_link"
31187case "(($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_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031193 ac_status=$?
31194 grep -v '^ *+' conftest.er1 >conftest.err
31195 rm -f conftest.er1
31196 cat conftest.err >&5
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31200 { (case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31203esac
31204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; } &&
31209 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031210 { (case "(($ac_try" in
31211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212 *) ac_try_echo=$ac_try;;
31213esac
31214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031216 ac_status=$?
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; }; then
31219 eval "$as_ac_var=yes"
31220else
31221 echo "$as_me: failed program was:" >&5
31222sed 's/^/| /' conftest.$ac_ext >&5
31223
Reid Spencera773bd52006-08-04 18:18:08 +000031224 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031225fi
Reid Spencera773bd52006-08-04 18:18:08 +000031226
31227rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031228 conftest$ac_exeext conftest.$ac_ext
31229fi
Reid Spencera773bd52006-08-04 18:18:08 +000031230ac_res=`eval echo '${'$as_ac_var'}'`
31231 { echo "$as_me:$LINENO: result: $ac_res" >&5
31232echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031233if test `eval echo '${'$as_ac_var'}'` = yes; then
31234
31235cat >>confdefs.h <<_ACEOF
31236#define CRAY_STACKSEG_END $ac_func
31237_ACEOF
31238
31239 break
31240fi
31241
31242 done
31243fi
31244
Reid Spencera773bd52006-08-04 18:18:08 +000031245{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31246echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031247if test "${ac_cv_c_stack_direction+set}" = set; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
31250 if test "$cross_compiling" = yes; then
31251 ac_cv_c_stack_direction=0
31252else
31253 cat >conftest.$ac_ext <<_ACEOF
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031259$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031260int
31261find_stack_direction ()
31262{
31263 static char *addr = 0;
31264 auto char dummy;
31265 if (addr == 0)
31266 {
31267 addr = &dummy;
31268 return find_stack_direction ();
31269 }
John Criswell0021c312004-02-13 21:57:29 +000031270 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031271 return (&dummy > addr) ? 1 : -1;
31272}
John Criswell0021c312004-02-13 21:57:29 +000031273
John Criswell0021c312004-02-13 21:57:29 +000031274int
31275main ()
31276{
Reid Spencera773bd52006-08-04 18:18:08 +000031277 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031278}
31279_ACEOF
31280rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031281if { (ac_try="$ac_link"
31282case "(($ac_try" in
31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31285esac
31286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031288 ac_status=$?
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294esac
31295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031300 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031301else
31302 echo "$as_me: program exited with status $ac_status" >&5
31303echo "$as_me: failed program was:" >&5
31304sed 's/^/| /' conftest.$ac_ext >&5
31305
31306( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031307ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031308fi
Reid Spencera773bd52006-08-04 18:18:08 +000031309rm -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 +000031310fi
Reid Spencera773bd52006-08-04 18:18:08 +000031311
31312
John Criswell0021c312004-02-13 21:57:29 +000031313fi
Reid Spencera773bd52006-08-04 18:18:08 +000031314{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31315echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031316
31317cat >>confdefs.h <<_ACEOF
31318#define STACK_DIRECTION $ac_cv_c_stack_direction
31319_ACEOF
31320
31321
John Criswell0021c312004-02-13 21:57:29 +000031322fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031323
31324
Reid Spencera773bd52006-08-04 18:18:08 +000031325{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31326echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031327if test "${ac_cv_func_rand48+set}" = set; then
31328 echo $ECHO_N "(cached) $ECHO_C" >&6
31329else
Reid Spencera773bd52006-08-04 18:18:08 +000031330 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031331ac_cpp='$CXXCPP $CPPFLAGS'
31332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31335
31336 cat >conftest.$ac_ext <<_ACEOF
31337/* confdefs.h. */
31338_ACEOF
31339cat confdefs.h >>conftest.$ac_ext
31340cat >>conftest.$ac_ext <<_ACEOF
31341/* end confdefs.h. */
31342#include <stdlib.h>
31343int
31344main ()
31345{
31346srand48(0);lrand48();drand48();
31347 ;
31348 return 0;
31349}
31350_ACEOF
31351rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031352if { (ac_try="$ac_compile"
31353case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31356esac
31357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031359 ac_status=$?
31360 grep -v '^ *+' conftest.er1 >conftest.err
31361 rm -f conftest.er1
31362 cat conftest.err >&5
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31366 { (case "(($ac_try" in
31367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368 *) ac_try_echo=$ac_try;;
31369esac
31370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031372 ac_status=$?
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); }; } &&
31375 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031376 { (case "(($ac_try" in
31377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378 *) ac_try_echo=$ac_try;;
31379esac
31380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031382 ac_status=$?
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384 (exit $ac_status); }; }; then
31385 ac_cv_func_rand48=yes
31386else
31387 echo "$as_me: failed program was:" >&5
31388sed 's/^/| /' conftest.$ac_ext >&5
31389
Reid Spencera773bd52006-08-04 18:18:08 +000031390 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031391fi
Reid Spencera773bd52006-08-04 18:18:08 +000031392
31393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031394 ac_ext=c
31395ac_cpp='$CPP $CPPFLAGS'
31396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398ac_compiler_gnu=$ac_cv_c_compiler_gnu
31399
31400fi
Reid Spencera773bd52006-08-04 18:18:08 +000031401{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31402echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031403
31404if test "$ac_cv_func_rand48" = "yes" ; then
31405
31406cat >>confdefs.h <<\_ACEOF
31407#define HAVE_RAND48 1
31408_ACEOF
31409
31410fi
John Criswell0021c312004-02-13 21:57:29 +000031411
31412
Reid Spencera773bd52006-08-04 18:18:08 +000031413{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31414echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031415if test "${ac_cv_cxx_namespaces+set}" = set; then
31416 echo $ECHO_N "(cached) $ECHO_C" >&6
31417else
Reid Spencera773bd52006-08-04 18:18:08 +000031418 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031419ac_cpp='$CXXCPP $CPPFLAGS'
31420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31423
31424 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031425/* confdefs.h. */
31426_ACEOF
31427cat confdefs.h >>conftest.$ac_ext
31428cat >>conftest.$ac_ext <<_ACEOF
31429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031430namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031431int
31432main ()
31433{
31434using namespace Outer::Inner; return i;
31435 ;
31436 return 0;
31437}
31438_ACEOF
31439rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031440if { (ac_try="$ac_compile"
31441case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31444esac
31445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031448 grep -v '^ *+' conftest.er1 >conftest.err
31449 rm -f conftest.er1
31450 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31454 { (case "(($ac_try" in
31455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456 *) ac_try_echo=$ac_try;;
31457esac
31458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; } &&
31463 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031464 { (case "(($ac_try" in
31465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466 *) ac_try_echo=$ac_try;;
31467esac
31468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031470 ac_status=$?
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); }; }; then
31473 ac_cv_cxx_namespaces=yes
31474else
31475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031476sed 's/^/| /' conftest.$ac_ext >&5
31477
Reid Spencera773bd52006-08-04 18:18:08 +000031478 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031479fi
Reid Spencera773bd52006-08-04 18:18:08 +000031480
31481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031482 ac_ext=c
31483ac_cpp='$CPP $CPPFLAGS'
31484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31486ac_compiler_gnu=$ac_cv_c_compiler_gnu
31487
31488
31489fi
Reid Spencera773bd52006-08-04 18:18:08 +000031490{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31491echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031492if test "$ac_cv_cxx_namespaces" = yes; then
31493
31494cat >>confdefs.h <<\_ACEOF
31495#define HAVE_NAMESPACES
31496_ACEOF
31497
31498fi
31499
Reid Spencera773bd52006-08-04 18:18:08 +000031500{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31501echo $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 +000031502if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031503 echo $ECHO_N "(cached) $ECHO_C" >&6
31504else
31505
Reid Spencera773bd52006-08-04 18:18:08 +000031506 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031507ac_cpp='$CXXCPP $CPPFLAGS'
31508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31511
31512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031513/* confdefs.h. */
31514_ACEOF
31515cat confdefs.h >>conftest.$ac_ext
31516cat >>conftest.$ac_ext <<_ACEOF
31517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031518#include <ext/hash_map>
31519#ifdef HAVE_NAMESPACES
31520using namespace std;
31521#endif
John Criswell7a73b802003-06-30 21:59:07 +000031522int
31523main ()
31524{
Brian Gaeke90583492003-11-10 03:06:28 +000031525hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031526 ;
31527 return 0;
31528}
31529_ACEOF
31530rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031531if { (ac_try="$ac_compile"
31532case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031538 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031539 grep -v '^ *+' conftest.er1 >conftest.err
31540 rm -f conftest.er1
31541 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31545 { (case "(($ac_try" in
31546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547 *) ac_try_echo=$ac_try;;
31548esac
31549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031551 ac_status=$?
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); }; } &&
31554 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031555 { (case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558esac
31559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031564 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031565else
31566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031567sed 's/^/| /' conftest.$ac_ext >&5
31568
Reid Spencera773bd52006-08-04 18:18:08 +000031569 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031570fi
Reid Spencera773bd52006-08-04 18:18:08 +000031571
31572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031573 ac_ext=c
31574ac_cpp='$CPP $CPPFLAGS'
31575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31577ac_compiler_gnu=$ac_cv_c_compiler_gnu
31578
John Criswell7a73b802003-06-30 21:59:07 +000031579fi
Reid Spencera773bd52006-08-04 18:18:08 +000031580{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31581echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031582 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31583 then
John Criswell9f011862004-09-24 18:28:00 +000031584
31585cat >>confdefs.h <<\_ACEOF
31586#define HAVE_STD_EXT_HASH_MAP 1
31587_ACEOF
31588
31589 else
31590
31591cat >>confdefs.h <<\_ACEOF
31592#define HAVE_STD_EXT_HASH_MAP 0
31593_ACEOF
31594
Brian Gaeke90583492003-11-10 03:06:28 +000031595 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031596
Reid Spencera773bd52006-08-04 18:18:08 +000031597 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31598echo $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 +000031599if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31600 echo $ECHO_N "(cached) $ECHO_C" >&6
31601else
31602
Reid Spencera773bd52006-08-04 18:18:08 +000031603 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031604ac_cpp='$CXXCPP $CPPFLAGS'
31605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31608
31609 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031610/* confdefs.h. */
31611_ACEOF
31612cat confdefs.h >>conftest.$ac_ext
31613cat >>conftest.$ac_ext <<_ACEOF
31614/* end confdefs.h. */
31615#include <ext/hash_map>
31616#ifdef HAVE_NAMESPACES
31617using namespace __gnu_cxx;
31618#endif
31619int
31620main ()
31621{
31622hash_map<int,int> t;
31623 ;
31624 return 0;
31625}
31626_ACEOF
31627rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031628if { (ac_try="$ac_compile"
31629case "(($ac_try" in
31630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631 *) ac_try_echo=$ac_try;;
31632esac
31633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31642 { (case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31645esac
31646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031648 ac_status=$?
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; } &&
31651 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031652 { (case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31655esac
31656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; }; then
31661 ac_cv_cxx_have_gnu_ext_hash_map=yes
31662else
31663 echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
Reid Spencera773bd52006-08-04 18:18:08 +000031666 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031667fi
Reid Spencera773bd52006-08-04 18:18:08 +000031668
31669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031670 ac_ext=c
31671ac_cpp='$CPP $CPPFLAGS'
31672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31674ac_compiler_gnu=$ac_cv_c_compiler_gnu
31675
31676fi
Reid Spencera773bd52006-08-04 18:18:08 +000031677{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31678echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031679 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31680 then
John Criswell9f011862004-09-24 18:28:00 +000031681
31682cat >>confdefs.h <<\_ACEOF
31683#define HAVE_GNU_EXT_HASH_MAP 1
31684_ACEOF
31685
31686 else
31687
31688cat >>confdefs.h <<\_ACEOF
31689#define HAVE_GNU_EXT_HASH_MAP 0
31690_ACEOF
31691
Brian Gaeke90583492003-11-10 03:06:28 +000031692 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031693
Reid Spencera773bd52006-08-04 18:18:08 +000031694 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31695echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031696if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31698else
John Criswell7a73b802003-06-30 21:59:07 +000031699
Reid Spencera773bd52006-08-04 18:18:08 +000031700 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031701ac_cpp='$CXXCPP $CPPFLAGS'
31702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31705
31706 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031707/* confdefs.h. */
31708_ACEOF
31709cat confdefs.h >>conftest.$ac_ext
31710cat >>conftest.$ac_ext <<_ACEOF
31711/* end confdefs.h. */
31712#include <hash_map>
31713int
31714main ()
31715{
31716hash_map<int,int> t;
31717 ;
31718 return 0;
31719}
31720_ACEOF
31721rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031722if { (ac_try="$ac_compile"
31723case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31726esac
31727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031730 grep -v '^ *+' conftest.er1 >conftest.err
31731 rm -f conftest.er1
31732 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31736 { (case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31739esac
31740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; } &&
31745 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031746 { (case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31749esac
31750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031752 ac_status=$?
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; }; then
31755 ac_cv_cxx_have_global_hash_map=yes
31756else
31757 echo "$as_me: failed program was:" >&5
31758sed 's/^/| /' conftest.$ac_ext >&5
31759
Reid Spencera773bd52006-08-04 18:18:08 +000031760 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031761fi
Reid Spencera773bd52006-08-04 18:18:08 +000031762
31763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031764 ac_ext=c
31765ac_cpp='$CPP $CPPFLAGS'
31766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31768ac_compiler_gnu=$ac_cv_c_compiler_gnu
31769
31770fi
Reid Spencera773bd52006-08-04 18:18:08 +000031771{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31772echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031773 if test "$ac_cv_cxx_have_global_hash_map" = yes
31774 then
John Criswell9f011862004-09-24 18:28:00 +000031775
31776cat >>confdefs.h <<\_ACEOF
31777#define HAVE_GLOBAL_HASH_MAP 1
31778_ACEOF
31779
31780 else
31781
31782cat >>confdefs.h <<\_ACEOF
31783#define HAVE_GLOBAL_HASH_MAP 0
31784_ACEOF
31785
Brian Gaeke90583492003-11-10 03:06:28 +000031786 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031787
Reid Spencera773bd52006-08-04 18:18:08 +000031788{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31789echo $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 +000031790if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031791 echo $ECHO_N "(cached) $ECHO_C" >&6
31792else
31793
Reid Spencera773bd52006-08-04 18:18:08 +000031794 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031795ac_cpp='$CXXCPP $CPPFLAGS'
31796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31799
31800 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031801/* confdefs.h. */
31802_ACEOF
31803cat confdefs.h >>conftest.$ac_ext
31804cat >>conftest.$ac_ext <<_ACEOF
31805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031806#include <ext/hash_set>
31807#ifdef HAVE_NAMESPACES
31808using namespace std;
31809#endif
John Criswell7a73b802003-06-30 21:59:07 +000031810int
31811main ()
31812{
Brian Gaeke90583492003-11-10 03:06:28 +000031813hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031814 ;
31815 return 0;
31816}
31817_ACEOF
31818rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031819if { (ac_try="$ac_compile"
31820case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31823esac
31824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031827 grep -v '^ *+' conftest.er1 >conftest.err
31828 rm -f conftest.er1
31829 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31833 { (case "(($ac_try" in
31834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835 *) ac_try_echo=$ac_try;;
31836esac
31837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031839 ac_status=$?
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; } &&
31842 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031843 { (case "(($ac_try" in
31844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845 *) ac_try_echo=$ac_try;;
31846esac
31847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031849 ac_status=$?
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031852 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031853else
31854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031855sed 's/^/| /' conftest.$ac_ext >&5
31856
Reid Spencera773bd52006-08-04 18:18:08 +000031857 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031858fi
Reid Spencera773bd52006-08-04 18:18:08 +000031859
31860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031861 ac_ext=c
31862ac_cpp='$CPP $CPPFLAGS'
31863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31865ac_compiler_gnu=$ac_cv_c_compiler_gnu
31866
31867fi
Reid Spencera773bd52006-08-04 18:18:08 +000031868{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31869echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031870 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31871 then
John Criswell9f011862004-09-24 18:28:00 +000031872
31873cat >>confdefs.h <<\_ACEOF
31874#define HAVE_STD_EXT_HASH_SET 1
31875_ACEOF
31876
31877 else
31878
31879cat >>confdefs.h <<\_ACEOF
31880#define HAVE_STD_EXT_HASH_SET 0
31881_ACEOF
31882
Brian Gaeke90583492003-11-10 03:06:28 +000031883 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031884
Reid Spencera773bd52006-08-04 18:18:08 +000031885 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31886echo $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 +000031887if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889else
31890
Reid Spencera773bd52006-08-04 18:18:08 +000031891 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031892ac_cpp='$CXXCPP $CPPFLAGS'
31893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31896
John Criswell7a73b802003-06-30 21:59:07 +000031897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031898/* confdefs.h. */
31899_ACEOF
31900cat confdefs.h >>conftest.$ac_ext
31901cat >>conftest.$ac_ext <<_ACEOF
31902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031903#include <ext/hash_set>
31904#ifdef HAVE_NAMESPACES
31905using namespace __gnu_cxx;
31906#endif
John Criswell7a73b802003-06-30 21:59:07 +000031907int
31908main ()
31909{
Brian Gaeke90583492003-11-10 03:06:28 +000031910hash_set<int> t;
31911 ;
31912 return 0;
31913}
31914_ACEOF
31915rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031916if { (ac_try="$ac_compile"
31917case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31920esac
31921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31930 { (case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31933esac
31934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; } &&
31939 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031940 { (case "(($ac_try" in
31941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31942 *) ac_try_echo=$ac_try;;
31943esac
31944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; }; then
31949 ac_cv_cxx_have_gnu_ext_hash_set=yes
31950else
31951 echo "$as_me: failed program was:" >&5
31952sed 's/^/| /' conftest.$ac_ext >&5
31953
Reid Spencera773bd52006-08-04 18:18:08 +000031954 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031955fi
Reid Spencera773bd52006-08-04 18:18:08 +000031956
31957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031958 ac_ext=c
31959ac_cpp='$CPP $CPPFLAGS'
31960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31962ac_compiler_gnu=$ac_cv_c_compiler_gnu
31963
31964fi
Reid Spencera773bd52006-08-04 18:18:08 +000031965{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31966echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031967 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31968 then
John Criswell9f011862004-09-24 18:28:00 +000031969
31970cat >>confdefs.h <<\_ACEOF
31971#define HAVE_GNU_EXT_HASH_SET 1
31972_ACEOF
31973
31974 else
31975
31976cat >>confdefs.h <<\_ACEOF
31977#define HAVE_GNU_EXT_HASH_SET 0
31978_ACEOF
31979
Brian Gaeke90583492003-11-10 03:06:28 +000031980 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031981
Reid Spencera773bd52006-08-04 18:18:08 +000031982 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31983echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031984if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31986else
31987
Reid Spencera773bd52006-08-04 18:18:08 +000031988 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031989ac_cpp='$CXXCPP $CPPFLAGS'
31990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31993
31994 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031995/* confdefs.h. */
31996_ACEOF
31997cat confdefs.h >>conftest.$ac_ext
31998cat >>conftest.$ac_ext <<_ACEOF
31999/* end confdefs.h. */
32000#include <hash_set>
32001int
32002main ()
32003{
John Criswell7a73b802003-06-30 21:59:07 +000032004hash_set<int> t; return 0;
32005 ;
32006 return 0;
32007}
32008_ACEOF
32009rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032010if { (ac_try="$ac_compile"
32011case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32014esac
32015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032017 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032018 grep -v '^ *+' conftest.er1 >conftest.err
32019 rm -f conftest.er1
32020 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32037esac
32038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032043 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032044else
32045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032046sed 's/^/| /' conftest.$ac_ext >&5
32047
Reid Spencera773bd52006-08-04 18:18:08 +000032048 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032049fi
Reid Spencera773bd52006-08-04 18:18:08 +000032050
32051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032052 ac_ext=c
32053ac_cpp='$CPP $CPPFLAGS'
32054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056ac_compiler_gnu=$ac_cv_c_compiler_gnu
32057
John Criswell7a73b802003-06-30 21:59:07 +000032058fi
Reid Spencera773bd52006-08-04 18:18:08 +000032059{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32060echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032061 if test "$ac_cv_cxx_have_global_hash_set" = yes
32062 then
John Criswell9f011862004-09-24 18:28:00 +000032063
32064cat >>confdefs.h <<\_ACEOF
32065#define HAVE_GLOBAL_HASH_SET 1
32066_ACEOF
32067
32068 else
32069
32070cat >>confdefs.h <<\_ACEOF
32071#define HAVE_GLOBAL_HASH_SET 0
32072_ACEOF
32073
Brian Gaeke90583492003-11-10 03:06:28 +000032074 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032075
Reid Spencera773bd52006-08-04 18:18:08 +000032076{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32077echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032078if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080else
32081
Reid Spencera773bd52006-08-04 18:18:08 +000032082 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032083ac_cpp='$CXXCPP $CPPFLAGS'
32084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32087
32088 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032089/* confdefs.h. */
32090_ACEOF
32091cat confdefs.h >>conftest.$ac_ext
32092cat >>conftest.$ac_ext <<_ACEOF
32093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032094#include <iterator>
32095#ifdef HAVE_NAMESPACES
32096using namespace std;
32097#endif
John Criswell7a73b802003-06-30 21:59:07 +000032098int
32099main ()
32100{
32101iterator<int,int,int> t; return 0;
32102 ;
32103 return 0;
32104}
32105_ACEOF
32106rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032107if { (ac_try="$ac_compile"
32108case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32111esac
32112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32124esac
32125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032127 ac_status=$?
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; } &&
32130 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32134esac
32135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 ac_cv_cxx_have_std_iterator=yes
32141else
32142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032143sed 's/^/| /' conftest.$ac_ext >&5
32144
Reid Spencera773bd52006-08-04 18:18:08 +000032145 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032146fi
Reid Spencera773bd52006-08-04 18:18:08 +000032147
32148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032149 ac_ext=c
32150ac_cpp='$CPP $CPPFLAGS'
32151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153ac_compiler_gnu=$ac_cv_c_compiler_gnu
32154
32155
32156fi
Reid Spencera773bd52006-08-04 18:18:08 +000032157{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32158echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032159if test "$ac_cv_cxx_have_std_iterator" = yes
32160then
John Criswell40468462004-09-24 21:19:06 +000032161
32162cat >>confdefs.h <<\_ACEOF
32163#define HAVE_STD_ITERATOR 1
32164_ACEOF
32165
32166else
32167
32168cat >>confdefs.h <<\_ACEOF
32169#define HAVE_STD_ITERATOR 0
32170_ACEOF
32171
John Criswell7a73b802003-06-30 21:59:07 +000032172fi
32173
Reid Spencera773bd52006-08-04 18:18:08 +000032174{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32175echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032176if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
32178else
32179
Reid Spencera773bd52006-08-04 18:18:08 +000032180 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032181ac_cpp='$CXXCPP $CPPFLAGS'
32182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32185
32186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032187/* confdefs.h. */
32188_ACEOF
32189cat confdefs.h >>conftest.$ac_ext
32190cat >>conftest.$ac_ext <<_ACEOF
32191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032192#include <iterator>
32193#ifdef HAVE_NAMESPACES
32194using namespace std;
32195#endif
John Criswell7a73b802003-06-30 21:59:07 +000032196int
32197main ()
32198{
John Criswellc78022e2003-07-29 19:11:58 +000032199bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032200 ;
32201 return 0;
32202}
32203_ACEOF
32204rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032205if { (ac_try="$ac_compile"
32206case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32209esac
32210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032213 grep -v '^ *+' conftest.er1 >conftest.err
32214 rm -f conftest.er1
32215 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32219 { (case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32222esac
32223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032225 ac_status=$?
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); }; } &&
32228 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032229 { (case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32232esac
32233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 ac_cv_cxx_have_bi_iterator=yes
32239else
32240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032241sed 's/^/| /' conftest.$ac_ext >&5
32242
Reid Spencera773bd52006-08-04 18:18:08 +000032243 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032244fi
Reid Spencera773bd52006-08-04 18:18:08 +000032245
32246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032247 ac_ext=c
32248ac_cpp='$CPP $CPPFLAGS'
32249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32251ac_compiler_gnu=$ac_cv_c_compiler_gnu
32252
32253
32254fi
Reid Spencera773bd52006-08-04 18:18:08 +000032255{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32256echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032257if test "$ac_cv_cxx_have_bi_iterator" = yes
32258then
John Criswell40468462004-09-24 21:19:06 +000032259
32260cat >>confdefs.h <<\_ACEOF
32261#define HAVE_BI_ITERATOR 1
32262_ACEOF
32263
32264else
32265
32266cat >>confdefs.h <<\_ACEOF
32267#define HAVE_BI_ITERATOR 0
32268_ACEOF
32269
John Criswell7a73b802003-06-30 21:59:07 +000032270fi
32271
Reid Spencera773bd52006-08-04 18:18:08 +000032272{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32273echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032274if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32275 echo $ECHO_N "(cached) $ECHO_C" >&6
32276else
32277
Reid Spencera773bd52006-08-04 18:18:08 +000032278 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032279ac_cpp='$CXXCPP $CPPFLAGS'
32280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283
32284 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032285/* confdefs.h. */
32286_ACEOF
32287cat confdefs.h >>conftest.$ac_ext
32288cat >>conftest.$ac_ext <<_ACEOF
32289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032290#include <iterator>
32291#ifdef HAVE_NAMESPACES
32292using namespace std;
32293#endif
John Criswell7a73b802003-06-30 21:59:07 +000032294int
32295main ()
32296{
John Criswellc78022e2003-07-29 19:11:58 +000032297forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032298 ;
32299 return 0;
32300}
32301_ACEOF
32302rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032303if { (ac_try="$ac_compile"
32304case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307esac
32308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032311 grep -v '^ *+' conftest.er1 >conftest.err
32312 rm -f conftest.er1
32313 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32317 { (case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32320esac
32321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; } &&
32326 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032327 { (case "(($ac_try" in
32328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32329 *) ac_try_echo=$ac_try;;
32330esac
32331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32332 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; }; then
32336 ac_cv_cxx_have_fwd_iterator=yes
32337else
32338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032339sed 's/^/| /' conftest.$ac_ext >&5
32340
Reid Spencera773bd52006-08-04 18:18:08 +000032341 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032342fi
Reid Spencera773bd52006-08-04 18:18:08 +000032343
32344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032345 ac_ext=c
32346ac_cpp='$CPP $CPPFLAGS'
32347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32349ac_compiler_gnu=$ac_cv_c_compiler_gnu
32350
32351
32352fi
Reid Spencera773bd52006-08-04 18:18:08 +000032353{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32354echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032355if test "$ac_cv_cxx_have_fwd_iterator" = yes
32356then
John Criswell40468462004-09-24 21:19:06 +000032357
32358cat >>confdefs.h <<\_ACEOF
32359#define HAVE_FWD_ITERATOR 1
32360_ACEOF
32361
32362else
32363
32364cat >>confdefs.h <<\_ACEOF
32365#define HAVE_FWD_ITERATOR 0
32366_ACEOF
32367
John Criswell7a73b802003-06-30 21:59:07 +000032368fi
32369
32370
Reid Spencera773bd52006-08-04 18:18:08 +000032371{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32372echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032373if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32374 echo $ECHO_N "(cached) $ECHO_C" >&6
32375else
Reid Spencera773bd52006-08-04 18:18:08 +000032376 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032377ac_cpp='$CXXCPP $CPPFLAGS'
32378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32381
Reid Spencerabec8f92004-10-27 23:03:44 +000032382 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032383/* confdefs.h. */
32384_ACEOF
32385cat confdefs.h >>conftest.$ac_ext
32386cat >>conftest.$ac_ext <<_ACEOF
32387/* end confdefs.h. */
32388#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032389int
32390main ()
32391{
32392float f; isnan(f);
32393 ;
32394 return 0;
32395}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032396_ACEOF
32397rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032398if { (ac_try="$ac_compile"
32399case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32415esac
32416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032422 { (case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32425esac
32426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
32431 ac_cv_func_isnan_in_math_h=yes
32432else
32433 echo "$as_me: failed program was:" >&5
32434sed 's/^/| /' conftest.$ac_ext >&5
32435
Reid Spencera773bd52006-08-04 18:18:08 +000032436 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032437fi
Reid Spencera773bd52006-08-04 18:18:08 +000032438
32439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032440 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032441ac_cpp='$CPP $CPPFLAGS'
32442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32444ac_compiler_gnu=$ac_cv_c_compiler_gnu
32445
32446fi
Reid Spencera773bd52006-08-04 18:18:08 +000032447{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32448echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032449
32450
32451if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032452
32453cat >>confdefs.h <<\_ACEOF
32454#define HAVE_ISNAN_IN_MATH_H 1
32455_ACEOF
32456
Reid Spencerabec8f92004-10-27 23:03:44 +000032457fi
32458
Reid Spencera773bd52006-08-04 18:18:08 +000032459{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32460echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032461if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32463else
Reid Spencera773bd52006-08-04 18:18:08 +000032464 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032465ac_cpp='$CXXCPP $CPPFLAGS'
32466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32469
Reid Spencerabec8f92004-10-27 23:03:44 +000032470 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032471/* confdefs.h. */
32472_ACEOF
32473cat confdefs.h >>conftest.$ac_ext
32474cat >>conftest.$ac_ext <<_ACEOF
32475/* end confdefs.h. */
32476#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032477int
32478main ()
32479{
32480float f; isnan(f);
32481 ;
32482 return 0;
32483}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032484_ACEOF
32485rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032486if { (ac_try="$ac_compile"
32487case "(($ac_try" in
32488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489 *) ac_try_echo=$ac_try;;
32490esac
32491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032494 grep -v '^ *+' conftest.er1 >conftest.err
32495 rm -f conftest.er1
32496 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32500 { (case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32503esac
32504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; } &&
32509 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032510 { (case "(($ac_try" in
32511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512 *) ac_try_echo=$ac_try;;
32513esac
32514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032516 ac_status=$?
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; }; then
32519 ac_cv_func_isnan_in_cmath=yes
32520else
32521 echo "$as_me: failed program was:" >&5
32522sed 's/^/| /' conftest.$ac_ext >&5
32523
Reid Spencera773bd52006-08-04 18:18:08 +000032524 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032525fi
Reid Spencera773bd52006-08-04 18:18:08 +000032526
32527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032528 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032529ac_cpp='$CPP $CPPFLAGS'
32530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32532ac_compiler_gnu=$ac_cv_c_compiler_gnu
32533
32534fi
Reid Spencera773bd52006-08-04 18:18:08 +000032535{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32536echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032537
32538if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032539
32540cat >>confdefs.h <<\_ACEOF
32541#define HAVE_ISNAN_IN_CMATH 1
32542_ACEOF
32543
Reid Spencerabec8f92004-10-27 23:03:44 +000032544fi
32545
Reid Spencera773bd52006-08-04 18:18:08 +000032546{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32547echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032548if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32549 echo $ECHO_N "(cached) $ECHO_C" >&6
32550else
Reid Spencera773bd52006-08-04 18:18:08 +000032551 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032552ac_cpp='$CXXCPP $CPPFLAGS'
32553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32556
Reid Spencerabec8f92004-10-27 23:03:44 +000032557 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032558/* confdefs.h. */
32559_ACEOF
32560cat confdefs.h >>conftest.$ac_ext
32561cat >>conftest.$ac_ext <<_ACEOF
32562/* end confdefs.h. */
32563#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032564int
32565main ()
32566{
32567float f; std::isnan(f);
32568 ;
32569 return 0;
32570}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032571_ACEOF
32572rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032573if { (ac_try="$ac_compile"
32574case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32577esac
32578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032581 grep -v '^ *+' conftest.er1 >conftest.err
32582 rm -f conftest.er1
32583 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32587 { (case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590esac
32591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032593 ac_status=$?
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; } &&
32596 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032597 { (case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32600esac
32601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; }; then
32606 ac_cv_func_std_isnan_in_cmath=yes
32607else
32608 echo "$as_me: failed program was:" >&5
32609sed 's/^/| /' conftest.$ac_ext >&5
32610
Reid Spencera773bd52006-08-04 18:18:08 +000032611 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032612fi
Reid Spencera773bd52006-08-04 18:18:08 +000032613
32614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032615 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032616ac_cpp='$CPP $CPPFLAGS'
32617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32619ac_compiler_gnu=$ac_cv_c_compiler_gnu
32620
32621fi
Reid Spencera773bd52006-08-04 18:18:08 +000032622{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32623echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032624
32625if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032626
32627cat >>confdefs.h <<\_ACEOF
32628#define HAVE_STD_ISNAN_IN_CMATH 1
32629_ACEOF
32630
Reid Spencerabec8f92004-10-27 23:03:44 +000032631fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032632
32633
Reid Spencera773bd52006-08-04 18:18:08 +000032634{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32635echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032636if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32637 echo $ECHO_N "(cached) $ECHO_C" >&6
32638else
Reid Spencera773bd52006-08-04 18:18:08 +000032639 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032640ac_cpp='$CXXCPP $CPPFLAGS'
32641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32644
Reid Spencerabec8f92004-10-27 23:03:44 +000032645 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032646/* confdefs.h. */
32647_ACEOF
32648cat confdefs.h >>conftest.$ac_ext
32649cat >>conftest.$ac_ext <<_ACEOF
32650/* end confdefs.h. */
32651#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032652int
32653main ()
32654{
32655float f; isinf(f);
32656 ;
32657 return 0;
32658}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032659_ACEOF
32660rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032661if { (ac_try="$ac_compile"
32662case "(($ac_try" in
32663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664 *) ac_try_echo=$ac_try;;
32665esac
32666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032669 grep -v '^ *+' conftest.er1 >conftest.err
32670 rm -f conftest.er1
32671 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32675 { (case "(($ac_try" in
32676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677 *) ac_try_echo=$ac_try;;
32678esac
32679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032681 ac_status=$?
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; } &&
32684 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032685 { (case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32688esac
32689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 ac_cv_func_isinf_in_math_h=yes
32695else
32696 echo "$as_me: failed program was:" >&5
32697sed 's/^/| /' conftest.$ac_ext >&5
32698
Reid Spencera773bd52006-08-04 18:18:08 +000032699 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032700fi
Reid Spencera773bd52006-08-04 18:18:08 +000032701
32702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032703 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032704ac_cpp='$CPP $CPPFLAGS'
32705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32707ac_compiler_gnu=$ac_cv_c_compiler_gnu
32708
32709fi
Reid Spencera773bd52006-08-04 18:18:08 +000032710{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32711echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032712
32713if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032714
32715cat >>confdefs.h <<\_ACEOF
32716#define HAVE_ISINF_IN_MATH_H 1
32717_ACEOF
32718
Reid Spencerabec8f92004-10-27 23:03:44 +000032719fi
32720
Reid Spencera773bd52006-08-04 18:18:08 +000032721{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32722echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032723if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
Reid Spencera773bd52006-08-04 18:18:08 +000032726 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032727ac_cpp='$CXXCPP $CPPFLAGS'
32728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
Reid Spencerabec8f92004-10-27 23:03:44 +000032732 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032733/* confdefs.h. */
32734_ACEOF
32735cat confdefs.h >>conftest.$ac_ext
32736cat >>conftest.$ac_ext <<_ACEOF
32737/* end confdefs.h. */
32738#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032739int
32740main ()
32741{
32742float f; isinf(f);
32743 ;
32744 return 0;
32745}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032746_ACEOF
32747rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032748if { (ac_try="$ac_compile"
32749case "(($ac_try" in
32750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751 *) ac_try_echo=$ac_try;;
32752esac
32753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032756 grep -v '^ *+' conftest.er1 >conftest.err
32757 rm -f conftest.er1
32758 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32762 { (case "(($ac_try" in
32763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764 *) ac_try_echo=$ac_try;;
32765esac
32766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032768 ac_status=$?
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; } &&
32771 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032772 { (case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32775esac
32776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 ac_cv_func_isinf_in_cmath=yes
32782else
32783 echo "$as_me: failed program was:" >&5
32784sed 's/^/| /' conftest.$ac_ext >&5
32785
Reid Spencera773bd52006-08-04 18:18:08 +000032786 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032787fi
Reid Spencera773bd52006-08-04 18:18:08 +000032788
32789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032790 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032791ac_cpp='$CPP $CPPFLAGS'
32792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32794ac_compiler_gnu=$ac_cv_c_compiler_gnu
32795
32796fi
Reid Spencera773bd52006-08-04 18:18:08 +000032797{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32798echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032799
32800if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032801
32802cat >>confdefs.h <<\_ACEOF
32803#define HAVE_ISINF_IN_CMATH 1
32804_ACEOF
32805
Reid Spencerabec8f92004-10-27 23:03:44 +000032806fi
32807
Reid Spencera773bd52006-08-04 18:18:08 +000032808{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32809echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032810if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32811 echo $ECHO_N "(cached) $ECHO_C" >&6
32812else
Reid Spencera773bd52006-08-04 18:18:08 +000032813 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032814ac_cpp='$CXXCPP $CPPFLAGS'
32815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32818
Reid Spencerabec8f92004-10-27 23:03:44 +000032819 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032820/* confdefs.h. */
32821_ACEOF
32822cat confdefs.h >>conftest.$ac_ext
32823cat >>conftest.$ac_ext <<_ACEOF
32824/* end confdefs.h. */
32825#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032826int
32827main ()
32828{
32829float f; std::isinf(f)}
32830 ;
32831 return 0;
32832}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032833_ACEOF
32834rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032835if { (ac_try="$ac_compile"
32836case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32839esac
32840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032842 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032843 grep -v '^ *+' conftest.er1 >conftest.err
32844 rm -f conftest.er1
32845 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32849 { (case "(($ac_try" in
32850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851 *) ac_try_echo=$ac_try;;
32852esac
32853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032855 ac_status=$?
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032859 { (case "(($ac_try" in
32860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861 *) ac_try_echo=$ac_try;;
32862esac
32863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; }; then
32868 ac_cv_func_std_isinf_in_cmath=yes
32869else
32870 echo "$as_me: failed program was:" >&5
32871sed 's/^/| /' conftest.$ac_ext >&5
32872
Reid Spencera773bd52006-08-04 18:18:08 +000032873 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032874fi
Reid Spencera773bd52006-08-04 18:18:08 +000032875
32876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032877 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032878ac_cpp='$CPP $CPPFLAGS'
32879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881ac_compiler_gnu=$ac_cv_c_compiler_gnu
32882
32883fi
Reid Spencera773bd52006-08-04 18:18:08 +000032884{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32885echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032886
32887if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032888
32889cat >>confdefs.h <<\_ACEOF
32890#define HAVE_STD_ISINF_IN_CMATH 1
32891_ACEOF
32892
Reid Spencerabec8f92004-10-27 23:03:44 +000032893fi
32894
Reid Spencera773bd52006-08-04 18:18:08 +000032895{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32896echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032897if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32899else
Reid Spencera773bd52006-08-04 18:18:08 +000032900 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032901ac_cpp='$CXXCPP $CPPFLAGS'
32902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32905
Reid Spencerabec8f92004-10-27 23:03:44 +000032906 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032907/* confdefs.h. */
32908_ACEOF
32909cat confdefs.h >>conftest.$ac_ext
32910cat >>conftest.$ac_ext <<_ACEOF
32911/* end confdefs.h. */
32912#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032913int
32914main ()
32915{
32916float f; finite(f);
32917 ;
32918 return 0;
32919}
Brian Gaeked59a6472004-07-21 03:33:58 +000032920_ACEOF
32921rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032922if { (ac_try="$ac_compile"
32923case "(($ac_try" in
32924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925 *) ac_try_echo=$ac_try;;
32926esac
32927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032930 grep -v '^ *+' conftest.er1 >conftest.err
32931 rm -f conftest.er1
32932 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32936 { (case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32939esac
32940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032946 { (case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32949esac
32950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032952 ac_status=$?
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); }; }; then
32955 ac_cv_func_finite_in_ieeefp_h=yes
32956else
32957 echo "$as_me: failed program was:" >&5
32958sed 's/^/| /' conftest.$ac_ext >&5
32959
Reid Spencera773bd52006-08-04 18:18:08 +000032960 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032961fi
Reid Spencera773bd52006-08-04 18:18:08 +000032962
32963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032964 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032965ac_cpp='$CPP $CPPFLAGS'
32966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32968ac_compiler_gnu=$ac_cv_c_compiler_gnu
32969
32970fi
Reid Spencera773bd52006-08-04 18:18:08 +000032971{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32972echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032973
Brian Gaeke6802b552004-10-28 05:06:45 +000032974if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032975
32976cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032977#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032978_ACEOF
32979
Reid Spencerabec8f92004-10-27 23:03:44 +000032980fi
32981
32982
32983
Reid Spencer30fe5262007-01-20 07:48:49 +000032984if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032985
32986
32987for ac_header in stdlib.h unistd.h
32988do
32989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032994 echo $ECHO_N "(cached) $ECHO_C" >&6
32995fi
Reid Spencera773bd52006-08-04 18:18:08 +000032996ac_res=`eval echo '${'$as_ac_Header'}'`
32997 { echo "$as_me:$LINENO: result: $ac_res" >&5
32998echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032999else
33000 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033003cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033004/* confdefs.h. */
33005_ACEOF
33006cat confdefs.h >>conftest.$ac_ext
33007cat >>conftest.$ac_ext <<_ACEOF
33008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033009$ac_includes_default
33010#include <$ac_header>
33011_ACEOF
33012rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033013if { (ac_try="$ac_compile"
33014case "(($ac_try" in
33015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33016 *) ac_try_echo=$ac_try;;
33017esac
33018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33019 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033021 grep -v '^ *+' conftest.er1 >conftest.err
33022 rm -f conftest.er1
33023 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33027 { (case "(($ac_try" in
33028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029 *) ac_try_echo=$ac_try;;
33030esac
33031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033033 ac_status=$?
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); }; } &&
33036 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033037 { (case "(($ac_try" in
33038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039 *) ac_try_echo=$ac_try;;
33040esac
33041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33042 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033043 ac_status=$?
33044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045 (exit $ac_status); }; }; then
33046 ac_header_compiler=yes
33047else
33048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033049sed 's/^/| /' conftest.$ac_ext >&5
33050
Reid Spencera773bd52006-08-04 18:18:08 +000033051 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033052fi
Reid Spencera773bd52006-08-04 18:18:08 +000033053
33054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33056echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033057
33058# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033061cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033062/* confdefs.h. */
33063_ACEOF
33064cat confdefs.h >>conftest.$ac_ext
33065cat >>conftest.$ac_ext <<_ACEOF
33066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033067#include <$ac_header>
33068_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033069if { (ac_try="$ac_cpp conftest.$ac_ext"
33070case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033076 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033077 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033078 rm -f conftest.er1
33079 cat conftest.err >&5
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); } >/dev/null; then
33082 if test -s conftest.err; then
33083 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000033084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000033085 else
33086 ac_cpp_err=
33087 fi
33088else
33089 ac_cpp_err=yes
33090fi
33091if test -z "$ac_cpp_err"; then
33092 ac_header_preproc=yes
33093else
33094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033095sed 's/^/| /' conftest.$ac_ext >&5
33096
John Criswell7a73b802003-06-30 21:59:07 +000033097 ac_header_preproc=no
33098fi
Reid Spencera773bd52006-08-04 18:18:08 +000033099
John Criswell7a73b802003-06-30 21:59:07 +000033100rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33102echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033103
33104# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33106 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33111 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033112 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033113 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033126 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033127## ----------------------------------- ##
33128## Report this to llvmbugs@cs.uiuc.edu ##
33129## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033130_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033131 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033132 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033133esac
Reid Spencera773bd52006-08-04 18:18:08 +000033134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033137 echo $ECHO_N "(cached) $ECHO_C" >&6
33138else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033139 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033140fi
Reid Spencera773bd52006-08-04 18:18:08 +000033141ac_res=`eval echo '${'$as_ac_Header'}'`
33142 { echo "$as_me:$LINENO: result: $ac_res" >&5
33143echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033144
33145fi
33146if test `eval echo '${'$as_ac_Header'}'` = yes; then
33147 cat >>confdefs.h <<_ACEOF
33148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33149_ACEOF
33150
33151fi
33152
33153done
33154
33155
33156for ac_func in getpagesize
33157do
33158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033159{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33161if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163else
33164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033165/* confdefs.h. */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33172#define $ac_func innocuous_$ac_func
33173
John Criswell7a73b802003-06-30 21:59:07 +000033174/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033175 which can conflict with char $ac_func (); below.
33176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033178
John Criswell0c38eaf2003-09-10 15:17:25 +000033179#ifdef __STDC__
33180# include <limits.h>
33181#else
33182# include <assert.h>
33183#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033184
33185#undef $ac_func
33186
Reid Spencera773bd52006-08-04 18:18:08 +000033187/* Override any GCC internal prototype to avoid an error.
33188 Use char because int might match the return type of a GCC
33189 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033190#ifdef __cplusplus
33191extern "C"
33192#endif
John Criswell7a73b802003-06-30 21:59:07 +000033193char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033194/* The GNU C library defines this for functions which it implements
33195 to always fail with ENOSYS. Some functions are actually named
33196 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033197#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033198choke me
John Criswell7a73b802003-06-30 21:59:07 +000033199#endif
33200
John Criswell0c38eaf2003-09-10 15:17:25 +000033201int
33202main ()
33203{
Reid Spencera773bd52006-08-04 18:18:08 +000033204return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033205 ;
33206 return 0;
33207}
33208_ACEOF
33209rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033210if { (ac_try="$ac_link"
33211case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214esac
33215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033217 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33224 { (case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33227esac
33228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033230 ac_status=$?
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; } &&
33233 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237esac
33238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 eval "$as_ac_var=yes"
33244else
33245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033246sed 's/^/| /' conftest.$ac_ext >&5
33247
Reid Spencera773bd52006-08-04 18:18:08 +000033248 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033249fi
Reid Spencera773bd52006-08-04 18:18:08 +000033250
33251rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033252 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033253fi
Reid Spencera773bd52006-08-04 18:18:08 +000033254ac_res=`eval echo '${'$as_ac_var'}'`
33255 { echo "$as_me:$LINENO: result: $ac_res" >&5
33256echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033257if test `eval echo '${'$as_ac_var'}'` = yes; then
33258 cat >>confdefs.h <<_ACEOF
33259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33260_ACEOF
33261
33262fi
33263done
33264
Reid Spencera773bd52006-08-04 18:18:08 +000033265{ echo "$as_me:$LINENO: checking for working mmap" >&5
33266echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033267if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33268 echo $ECHO_N "(cached) $ECHO_C" >&6
33269else
33270 if test "$cross_compiling" = yes; then
33271 ac_cv_func_mmap_fixed_mapped=no
33272else
33273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033274/* confdefs.h. */
33275_ACEOF
33276cat confdefs.h >>conftest.$ac_ext
33277cat >>conftest.$ac_ext <<_ACEOF
33278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033279$ac_includes_default
33280/* malloc might have been renamed as rpl_malloc. */
33281#undef malloc
33282
33283/* Thanks to Mike Haertel and Jim Avera for this test.
33284 Here is a matrix of mmap possibilities:
33285 mmap private not fixed
33286 mmap private fixed at somewhere currently unmapped
33287 mmap private fixed at somewhere already mapped
33288 mmap shared not fixed
33289 mmap shared fixed at somewhere currently unmapped
33290 mmap shared fixed at somewhere already mapped
33291 For private mappings, we should verify that changes cannot be read()
33292 back from the file, nor mmap's back from the file at a different
33293 address. (There have been systems where private was not correctly
33294 implemented like the infamous i386 svr4.0, and systems where the
33295 VM page cache was not coherent with the file system buffer cache
33296 like early versions of FreeBSD and possibly contemporary NetBSD.)
33297 For shared mappings, we should conversely verify that changes get
33298 propagated back to all the places they're supposed to be.
33299
33300 Grep wants private fixed already mapped.
33301 The main things grep needs to know about mmap are:
33302 * does it exist and is it safe to write into the mmap'd area
33303 * how to use it (BSD variants) */
33304
33305#include <fcntl.h>
33306#include <sys/mman.h>
33307
33308#if !STDC_HEADERS && !HAVE_STDLIB_H
33309char *malloc ();
33310#endif
33311
33312/* This mess was copied from the GNU getpagesize.h. */
33313#if !HAVE_GETPAGESIZE
33314/* Assume that all systems that can run configure have sys/param.h. */
33315# if !HAVE_SYS_PARAM_H
33316# define HAVE_SYS_PARAM_H 1
33317# endif
33318
33319# ifdef _SC_PAGESIZE
33320# define getpagesize() sysconf(_SC_PAGESIZE)
33321# else /* no _SC_PAGESIZE */
33322# if HAVE_SYS_PARAM_H
33323# include <sys/param.h>
33324# ifdef EXEC_PAGESIZE
33325# define getpagesize() EXEC_PAGESIZE
33326# else /* no EXEC_PAGESIZE */
33327# ifdef NBPG
33328# define getpagesize() NBPG * CLSIZE
33329# ifndef CLSIZE
33330# define CLSIZE 1
33331# endif /* no CLSIZE */
33332# else /* no NBPG */
33333# ifdef NBPC
33334# define getpagesize() NBPC
33335# else /* no NBPC */
33336# ifdef PAGESIZE
33337# define getpagesize() PAGESIZE
33338# endif /* PAGESIZE */
33339# endif /* no NBPC */
33340# endif /* no NBPG */
33341# endif /* no EXEC_PAGESIZE */
33342# else /* no HAVE_SYS_PARAM_H */
33343# define getpagesize() 8192 /* punt totally */
33344# endif /* no HAVE_SYS_PARAM_H */
33345# endif /* no _SC_PAGESIZE */
33346
33347#endif /* no HAVE_GETPAGESIZE */
33348
33349int
33350main ()
33351{
33352 char *data, *data2, *data3;
33353 int i, pagesize;
33354 int fd;
33355
33356 pagesize = getpagesize ();
33357
33358 /* First, make a file with some known garbage in it. */
33359 data = (char *) malloc (pagesize);
33360 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033361 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033362 for (i = 0; i < pagesize; ++i)
33363 *(data + i) = rand ();
33364 umask (0);
33365 fd = creat ("conftest.mmap", 0600);
33366 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033367 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033368 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033369 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033370 close (fd);
33371
33372 /* Next, try to mmap the file at a fixed address which already has
33373 something else allocated at it. If we can, also make sure that
33374 we see the same garbage. */
33375 fd = open ("conftest.mmap", O_RDWR);
33376 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033377 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033378 data2 = (char *) malloc (2 * pagesize);
33379 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033380 return 1;
33381 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033382 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033383 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033384 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033385 for (i = 0; i < pagesize; ++i)
33386 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033387 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033388
33389 /* Finally, make sure that changes to the mapped area do not
33390 percolate back to the file as seen by read(). (This is a bug on
33391 some variants of i386 svr4.0.) */
33392 for (i = 0; i < pagesize; ++i)
33393 *(data2 + i) = *(data2 + i) + 1;
33394 data3 = (char *) malloc (pagesize);
33395 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033396 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033397 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033398 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033399 for (i = 0; i < pagesize; ++i)
33400 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033401 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033402 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033403 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033404}
33405_ACEOF
33406rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033407if { (ac_try="$ac_link"
33408case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33411esac
33412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033414 ac_status=$?
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33420esac
33421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; }; then
33426 ac_cv_func_mmap_fixed_mapped=yes
33427else
33428 echo "$as_me: program exited with status $ac_status" >&5
33429echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033430sed 's/^/| /' conftest.$ac_ext >&5
33431
John Criswell7a73b802003-06-30 21:59:07 +000033432( exit $ac_status )
33433ac_cv_func_mmap_fixed_mapped=no
33434fi
Reid Spencera773bd52006-08-04 18:18:08 +000033435rm -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 +000033436fi
Reid Spencera773bd52006-08-04 18:18:08 +000033437
33438
John Criswell7a73b802003-06-30 21:59:07 +000033439fi
Reid Spencera773bd52006-08-04 18:18:08 +000033440{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33441echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033442if test $ac_cv_func_mmap_fixed_mapped = yes; then
33443
33444cat >>confdefs.h <<\_ACEOF
33445#define HAVE_MMAP 1
33446_ACEOF
33447
33448fi
33449rm -f conftest.mmap
33450
Reid Spencer30fe5262007-01-20 07:48:49 +000033451 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033452echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033453if test "${ac_cv_func_mmap_file+set}" = set; then
33454 echo $ECHO_N "(cached) $ECHO_C" >&6
33455else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033456 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033457ac_cpp='$CPP $CPPFLAGS'
33458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33460ac_compiler_gnu=$ac_cv_c_compiler_gnu
33461
33462 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033463 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033464else
33465 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033466
Reid Spencer777ce172004-09-20 04:09:56 +000033467 /* confdefs.h. */
33468_ACEOF
33469cat confdefs.h >>conftest.$ac_ext
33470cat >>conftest.$ac_ext <<_ACEOF
33471/* end confdefs.h. */
33472
John Criswell7a73b802003-06-30 21:59:07 +000033473#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033474#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033475#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033476
33477int
33478main ()
33479{
John Criswell7a73b802003-06-30 21:59:07 +000033480
33481 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033482 fd = creat ("foo",0777);
33483 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33484 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033485 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033486 ;
33487 return 0;
33488}
John Criswell7a73b802003-06-30 21:59:07 +000033489_ACEOF
33490rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033491if { (ac_try="$ac_link"
33492case "(($ac_try" in
33493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494 *) ac_try_echo=$ac_try;;
33495esac
33496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033498 ac_status=$?
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033501 { (case "(($ac_try" in
33502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33503 *) ac_try_echo=$ac_try;;
33504esac
33505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33506 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033507 ac_status=$?
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); }; }; then
33510 ac_cv_func_mmap_file=yes
33511else
33512 echo "$as_me: program exited with status $ac_status" >&5
33513echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033514sed 's/^/| /' conftest.$ac_ext >&5
33515
John Criswell7a73b802003-06-30 21:59:07 +000033516( exit $ac_status )
33517ac_cv_func_mmap_file=no
33518fi
Reid Spencera773bd52006-08-04 18:18:08 +000033519rm -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 +000033520fi
Reid Spencera773bd52006-08-04 18:18:08 +000033521
33522
John Criswell7a73b802003-06-30 21:59:07 +000033523 ac_ext=c
33524ac_cpp='$CPP $CPPFLAGS'
33525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33527ac_compiler_gnu=$ac_cv_c_compiler_gnu
33528
33529
33530fi
Reid Spencera773bd52006-08-04 18:18:08 +000033531{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33532echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033533if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033534
33535cat >>confdefs.h <<\_ACEOF
33536#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033537_ACEOF
33538
33539 MMAP_FILE=yes
33540
33541fi
33542
Reid Spencer30fe5262007-01-20 07:48:49 +000033543 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033544echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033545if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33546 echo $ECHO_N "(cached) $ECHO_C" >&6
33547else
Reid Spencer582a23c2004-12-29 07:07:57 +000033548 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033549 ac_cv_need_dev_zero_for_mmap=yes
33550 else
33551 ac_cv_need_dev_zero_for_mmap=no
33552 fi
33553
33554fi
Reid Spencera773bd52006-08-04 18:18:08 +000033555{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33556echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033557if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33558
33559cat >>confdefs.h <<\_ACEOF
33560#define NEED_DEV_ZERO_FOR_MMAP 1
33561_ACEOF
33562
33563fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033564
Reid Spencer30fe5262007-01-20 07:48:49 +000033565 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33566 then
33567 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033568echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033569 fi
33570 if test "$ac_cv_func_mmap_file" = "no"
33571 then
33572 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033573echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033574 fi
John Criswellb13092b2003-07-22 21:00:24 +000033575fi
John Criswell7a73b802003-06-30 21:59:07 +000033576
33577
Reid Spencera773bd52006-08-04 18:18:08 +000033578{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33579echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033580if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33581 echo $ECHO_N "(cached) $ECHO_C" >&6
33582else
33583 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033584if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033585 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033586 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33587 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033588 if test $? -eq 0 ; then
33589 llvm_cv_llvmgcc_sanity="yes"
33590 fi
33591 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033592fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033593fi
Reid Spencera773bd52006-08-04 18:18:08 +000033594{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33595echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033596
33597if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033598 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33599echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033600 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033601 LLVMCC1=$llvmcc1path
33602
Reid Spencer502935f2004-12-22 05:56:56 +000033603 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033604 LLVMCC1PLUS=$llvmcc1pluspath
33605
Reid Spencer502935f2004-12-22 05:56:56 +000033606 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33607 LLVMGCCDIR=$llvmgccdir
33608
Reid Spencer282d8c12006-12-21 22:55:41 +000033609 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33610 LLVMGCCLIBEXEC=$llvmgcclibexec
33611
Reid Spencerb5d75b82006-05-09 00:31:01 +000033612 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033613 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33614 LLVMGCC_VERSION=$llvmgccversion
33615
33616 LLVMGCC_MAJVERS=$llvmgccmajvers
33617
Reid Spencer0d238182007-04-21 21:28:52 +000033618 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33619 LLVMGCC_LANGS=$llvmgcclangs
33620
33621 { echo "$as_me:$LINENO: result: ok" >&5
33622echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033623fi
33624
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033625SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033626
33627
Reid Spencere9de0912004-08-20 09:03:57 +000033628# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033629# information into substitutions that will end up in Makefile.config.in
33630# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033631if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033632 prefix="/usr/local"
33633fi
Reid Spencere9de0912004-08-20 09:03:57 +000033634eval LLVM_PREFIX="${prefix}";
33635eval LLVM_BINDIR="${prefix}/bin";
33636eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033637eval LLVM_DATADIR="${prefix}/share/llvm";
33638eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33639eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033640eval LLVM_INCLUDEDIR="${prefix}/include";
33641eval LLVM_INFODIR="${prefix}/info";
33642eval LLVM_MANDIR="${prefix}/man";
33643LLVM_CONFIGTIME=`date`
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033655# Place the various directores into the config.h file as #defines so that we
33656# can know about the installation paths within LLVM.
33657
Reid Spencere9de0912004-08-20 09:03:57 +000033658cat >>confdefs.h <<_ACEOF
33659#define LLVM_PREFIX "$LLVM_PREFIX"
33660_ACEOF
33661
33662
33663cat >>confdefs.h <<_ACEOF
33664#define LLVM_BINDIR "$LLVM_BINDIR"
33665_ACEOF
33666
33667
33668cat >>confdefs.h <<_ACEOF
33669#define LLVM_LIBDIR "$LLVM_LIBDIR"
33670_ACEOF
33671
33672
33673cat >>confdefs.h <<_ACEOF
33674#define LLVM_DATADIR "$LLVM_DATADIR"
33675_ACEOF
33676
33677
33678cat >>confdefs.h <<_ACEOF
33679#define LLVM_DATADIR "$LLVM_DOCSDIR"
33680_ACEOF
33681
33682
33683cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033684#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033685_ACEOF
33686
33687
33688cat >>confdefs.h <<_ACEOF
33689#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33690_ACEOF
33691
33692
33693cat >>confdefs.h <<_ACEOF
33694#define LLVM_INFODIR "$LLVM_INFODIR"
33695_ACEOF
33696
33697
33698cat >>confdefs.h <<_ACEOF
33699#define LLVM_MANDIR "$LLVM_MANDIR"
33700_ACEOF
33701
33702
33703cat >>confdefs.h <<_ACEOF
33704#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33705_ACEOF
33706
33707
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033708
Reid Spencera773bd52006-08-04 18:18:08 +000033709ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033710
Reid Spencera773bd52006-08-04 18:18:08 +000033711ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033712
Reid Spencera773bd52006-08-04 18:18:08 +000033713ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033714
Reid Spencera773bd52006-08-04 18:18:08 +000033715ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033716
Reid Spencera773bd52006-08-04 18:18:08 +000033717ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033718
33719
Reid Spencera773bd52006-08-04 18:18:08 +000033720ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033721
33722
Reid Spencerea949cf2006-08-16 00:45:38 +000033723ac_config_files="$ac_config_files llvm.spec"
33724
33725
Reid Spencera773bd52006-08-04 18:18:08 +000033726ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033727
33728
Reid Spencera773bd52006-08-04 18:18:08 +000033729ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033730
33731
Reid Spencera773bd52006-08-04 18:18:08 +000033732ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033733
Reid Spencera773bd52006-08-04 18:18:08 +000033734ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033735
33736
Reid Spencera773bd52006-08-04 18:18:08 +000033737ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033738
33739
Reid Spencera773bd52006-08-04 18:18:08 +000033740ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033741
33742
Reid Spencera773bd52006-08-04 18:18:08 +000033743ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033744
33745
Reid Spencer8b2e1412006-11-17 03:32:33 +000033746ac_config_commands="$ac_config_commands runtime/Makefile"
33747
33748
Reid Spencera773bd52006-08-04 18:18:08 +000033749ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033750
33751
Reid Spencera773bd52006-08-04 18:18:08 +000033752ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033753
33754
Reid Spencera773bd52006-08-04 18:18:08 +000033755ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033756
33757
Reid Spencera773bd52006-08-04 18:18:08 +000033758ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033759
33760
Reid Spencera773bd52006-08-04 18:18:08 +000033761ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033762
33763
33764
John Criswell7a73b802003-06-30 21:59:07 +000033765cat >confcache <<\_ACEOF
33766# This file is a shell script that caches the results of configure
33767# tests run on this system so they can be shared between configure
33768# scripts and configure runs, see configure's option --config-cache.
33769# It is not useful on other systems. If it contains results you don't
33770# want to keep, you may remove or edit it.
33771#
33772# config.status only pays attention to the cache file if you give it
33773# the --recheck option to rerun configure.
33774#
John Criswell0c38eaf2003-09-10 15:17:25 +000033775# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033776# loading this file, other *unset* `ac_cv_foo' will be assigned the
33777# following values.
33778
33779_ACEOF
33780
33781# The following way of writing the cache mishandles newlines in values,
33782# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033783# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033784# Ultrix sh set writes to stderr and can't be redirected directly,
33785# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033786(
33787 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33788 eval ac_val=\$$ac_var
33789 case $ac_val in #(
33790 *${as_nl}*)
33791 case $ac_var in #(
33792 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33793echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33794 esac
33795 case $ac_var in #(
33796 _ | IFS | as_nl) ;; #(
33797 *) $as_unset $ac_var ;;
33798 esac ;;
33799 esac
33800 done
33801
John Criswell7a73b802003-06-30 21:59:07 +000033802 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33804 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033805 # `set' does not quote correctly, so add quotes (double-quote
33806 # substitution turns \\\\ into \\, and sed turns \\ into \).
33807 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033808 "s/'/'\\\\''/g;
33809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033810 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033811 *)
33812 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033814 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033815 esac |
33816 sort
33817) |
John Criswell7a73b802003-06-30 21:59:07 +000033818 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033819 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033820 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033821 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33823 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33825 :end' >>confcache
33826if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33827 if test -w "$cache_file"; then
33828 test "x$cache_file" != "x/dev/null" &&
33829 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33830echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033831 cat confcache >$cache_file
33832 else
Reid Spencera773bd52006-08-04 18:18:08 +000033833 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33834echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033835 fi
33836fi
33837rm -f confcache
33838
33839test "x$prefix" = xNONE && prefix=$ac_default_prefix
33840# Let make expand exec_prefix.
33841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33842
John Criswell7a73b802003-06-30 21:59:07 +000033843DEFS=-DHAVE_CONFIG_H
33844
John Criswell0c38eaf2003-09-10 15:17:25 +000033845ac_libobjs=
33846ac_ltlibobjs=
33847for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33848 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033849 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33850 ac_i=`echo "$ac_i" | sed "$ac_script"`
33851 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33852 # will be set to the directory where LIBOBJS objects are built.
33853 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33854 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033855done
33856LIBOBJS=$ac_libobjs
33857
33858LTLIBOBJS=$ac_ltlibobjs
33859
33860
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033861if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33862 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33863Usually this means the macro was only invoked conditionally." >&5
33864echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33865Usually this means the macro was only invoked conditionally." >&2;}
33866 { (exit 1); exit 1; }; }
33867fi
33868if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33869 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33870Usually this means the macro was only invoked conditionally." >&5
33871echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33872Usually this means the macro was only invoked conditionally." >&2;}
33873 { (exit 1); exit 1; }; }
33874fi
John Criswell7a73b802003-06-30 21:59:07 +000033875
33876: ${CONFIG_STATUS=./config.status}
33877ac_clean_files_save=$ac_clean_files
33878ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33879{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33880echo "$as_me: creating $CONFIG_STATUS" >&6;}
33881cat >$CONFIG_STATUS <<_ACEOF
33882#! $SHELL
33883# Generated by $as_me.
33884# Run this file to recreate the current configuration.
33885# Compiler output produced by configure, useful for debugging
33886# configure, is in config.log if it exists.
33887
33888debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033889ac_cs_recheck=false
33890ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033891SHELL=\${CONFIG_SHELL-$SHELL}
33892_ACEOF
33893
33894cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033895## --------------------- ##
33896## M4sh Initialization. ##
33897## --------------------- ##
33898
33899# Be Bourne compatible
33900if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33901 emulate sh
33902 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033903 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33904 # is contrary to our usage. Disable this feature.
33905 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033906 setopt NO_GLOB_SUBST
33907else
33908 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033909fi
Reid Spencera773bd52006-08-04 18:18:08 +000033910BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033911DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033912
John Criswell7a73b802003-06-30 21:59:07 +000033913
Reid Spencera773bd52006-08-04 18:18:08 +000033914# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033915# Avoid depending upon Character Ranges.
33916as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33917as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33918as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33919as_cr_digits='0123456789'
33920as_cr_alnum=$as_cr_Letters$as_cr_digits
33921
33922# The user is always right.
33923if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033924 echo "#! /bin/sh" >conf$$.sh
33925 echo "exit 0" >>conf$$.sh
33926 chmod +x conf$$.sh
33927 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033928 PATH_SEPARATOR=';'
33929 else
33930 PATH_SEPARATOR=:
33931 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033932 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033933fi
33934
Reid Spencera773bd52006-08-04 18:18:08 +000033935# Support unset when possible.
33936if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33937 as_unset=unset
33938else
33939 as_unset=false
33940fi
John Criswell7a73b802003-06-30 21:59:07 +000033941
Reid Spencera773bd52006-08-04 18:18:08 +000033942
33943# IFS
33944# We need space, tab and new line, in precisely that order. Quoting is
33945# there to prevent editors from complaining about space-tab.
33946# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33947# splitting by setting IFS to empty value.)
33948as_nl='
33949'
33950IFS=" "" $as_nl"
33951
33952# Find who we are. Look in the path if we contain no directory separator.
33953case $0 in
33954 *[\\/]* ) as_myself=$0 ;;
33955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033956for as_dir in $PATH
33957do
33958 IFS=$as_save_IFS
33959 test -z "$as_dir" && as_dir=.
33960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33961done
Reid Spencera773bd52006-08-04 18:18:08 +000033962IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033963
Reid Spencera773bd52006-08-04 18:18:08 +000033964 ;;
33965esac
33966# We did not find ourselves, most probably we were run as `sh COMMAND'
33967# in which case we are not to be found in the path.
33968if test "x$as_myself" = x; then
33969 as_myself=$0
33970fi
33971if test ! -f "$as_myself"; then
33972 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33973 { (exit 1); exit 1; }
33974fi
33975
33976# Work around bugs in pre-3.0 UWIN ksh.
33977for as_var in ENV MAIL MAILPATH
33978do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33979done
33980PS1='$ '
33981PS2='> '
33982PS4='+ '
33983
33984# NLS nuisances.
33985for as_var in \
33986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33988 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033989do
Reid Spencera773bd52006-08-04 18:18:08 +000033990 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33991 eval $as_var=C; export $as_var
33992 else
33993 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33994 fi
33995done
33996
33997# Required to use basename.
33998if expr a : '\(a\)' >/dev/null 2>&1 &&
33999 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34000 as_expr=expr
34001else
34002 as_expr=false
34003fi
34004
34005if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34006 as_basename=basename
34007else
34008 as_basename=false
34009fi
34010
34011
34012# Name of the executable.
34013as_me=`$as_basename -- "$0" ||
34014$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34015 X"$0" : 'X\(//\)$' \| \
34016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34017echo X/"$0" |
34018 sed '/^.*\/\([^/][^/]*\)\/*$/{
34019 s//\1/
34020 q
34021 }
34022 /^X\/\(\/\/\)$/{
34023 s//\1/
34024 q
34025 }
34026 /^X\/\(\/\).*/{
34027 s//\1/
34028 q
34029 }
34030 s/.*/./; q'`
34031
34032# CDPATH.
34033$as_unset CDPATH
34034
34035
34036
John Criswell7a73b802003-06-30 21:59:07 +000034037 as_lineno_1=$LINENO
34038 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034039 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034040 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034041
34042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34043 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034044 # line-number line after each line using $LINENO; the second 'sed'
34045 # does the real work. The second script uses 'N' to pair each
34046 # line-number line with the line containing $LINENO, and appends
34047 # trailing '-' during substitution so that $LINENO is not a special
34048 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034050 # scripts with optimization help from Paolo Bonzini. Blame Lee
34051 # E. McMahon (1931-1989) for sed's syntax. :-)
34052 sed -n '
34053 p
34054 /[$]LINENO/=
34055 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034056 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034057 s/[$]LINENO.*/&-/
34058 t lineno
34059 b
34060 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034061 N
Reid Spencera773bd52006-08-04 18:18:08 +000034062 :loop
34063 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034064 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034065 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034066 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034067 chmod +x "$as_me.lineno" ||
34068 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034069 { (exit 1); exit 1; }; }
34070
34071 # Don't try to exec as it changes $[0], causing all sort of problems
34072 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034073 # original and so on. Autoconf is especially sensitive to this).
34074 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034075 # Exit status is that of the last command.
34076 exit
34077}
34078
34079
Reid Spencera773bd52006-08-04 18:18:08 +000034080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34081 as_dirname=dirname
34082else
34083 as_dirname=false
34084fi
34085
34086ECHO_C= ECHO_N= ECHO_T=
34087case `echo -n x` in
34088-n*)
34089 case `echo 'x\c'` in
34090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34091 *) ECHO_C='\c';;
34092 esac;;
34093*)
34094 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034095esac
34096
Reid Spencera773bd52006-08-04 18:18:08 +000034097if expr a : '\(a\)' >/dev/null 2>&1 &&
34098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034099 as_expr=expr
34100else
34101 as_expr=false
34102fi
34103
34104rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034105if test -d conf$$.dir; then
34106 rm -f conf$$.dir/conf$$.file
34107else
34108 rm -f conf$$.dir
34109 mkdir conf$$.dir
34110fi
John Criswell7a73b802003-06-30 21:59:07 +000034111echo >conf$$.file
34112if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034113 as_ln_s='ln -s'
34114 # ... but there are two gotchas:
34115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34117 # In both cases, we have to default to `cp -p'.
34118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034119 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034120elif ln conf$$.file conf$$ 2>/dev/null; then
34121 as_ln_s=ln
34122else
34123 as_ln_s='cp -p'
34124fi
Reid Spencera773bd52006-08-04 18:18:08 +000034125rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34126rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034127
John Criswell0c38eaf2003-09-10 15:17:25 +000034128if mkdir -p . 2>/dev/null; then
34129 as_mkdir_p=:
34130else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034131 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034132 as_mkdir_p=false
34133fi
34134
Reid Spencera773bd52006-08-04 18:18:08 +000034135# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34136# systems may use methods other than mode bits to determine executability.
34137cat >conf$$.file <<_ASEOF
34138#! /bin/sh
34139exit 0
34140_ASEOF
34141chmod +x conf$$.file
34142if test -x conf$$.file >/dev/null 2>&1; then
34143 as_executable_p="test -x"
34144else
34145 as_executable_p=:
34146fi
34147rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034148
34149# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034150as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034151
34152# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034153as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034154
34155
John Criswell7a73b802003-06-30 21:59:07 +000034156exec 6>&1
34157
Reid Spencera773bd52006-08-04 18:18:08 +000034158# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034159# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034160# values after options handling.
34161ac_log="
Reid Spencer53b24862007-07-09 08:10:07 +000034162This file was extended by llvm $as_me 2.1svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034163generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034164
34165 CONFIG_FILES = $CONFIG_FILES
34166 CONFIG_HEADERS = $CONFIG_HEADERS
34167 CONFIG_LINKS = $CONFIG_LINKS
34168 CONFIG_COMMANDS = $CONFIG_COMMANDS
34169 $ $0 $@
34170
Reid Spencera773bd52006-08-04 18:18:08 +000034171on `(hostname || uname -n) 2>/dev/null | sed 1q`
34172"
34173
John Criswell7a73b802003-06-30 21:59:07 +000034174_ACEOF
34175
Reid Spencera773bd52006-08-04 18:18:08 +000034176cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034177# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034178config_files="$ac_config_files"
34179config_headers="$ac_config_headers"
34180config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034181
Reid Spencera773bd52006-08-04 18:18:08 +000034182_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034183
34184cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034185ac_cs_usage="\
34186\`$as_me' instantiates files from templates according to the
34187current configuration.
34188
34189Usage: $0 [OPTIONS] [FILE]...
34190
34191 -h, --help print this help, then exit
34192 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034193 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034194 -d, --debug don't remove temporary files
34195 --recheck update $as_me by reconfiguring in the same conditions
34196 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034197 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034198 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034199 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034200
34201Configuration files:
34202$config_files
34203
34204Configuration headers:
34205$config_headers
34206
John Criswellc764fbc2003-09-06 15:17:13 +000034207Configuration commands:
34208$config_commands
34209
John Criswell7a73b802003-06-30 21:59:07 +000034210Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034211
Reid Spencera773bd52006-08-04 18:18:08 +000034212_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034213cat >>$CONFIG_STATUS <<_ACEOF
34214ac_cs_version="\\
Reid Spencer53b24862007-07-09 08:10:07 +000034215llvm config.status 2.1svn
Reid Spencera773bd52006-08-04 18:18:08 +000034216configured by $0, generated by GNU Autoconf 2.60,
34217 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034218
Reid Spencera773bd52006-08-04 18:18:08 +000034219Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034220This config.status script is free software; the Free Software Foundation
34221gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034222
34223ac_pwd='$ac_pwd'
34224srcdir='$srcdir'
34225INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034226_ACEOF
34227
34228cat >>$CONFIG_STATUS <<\_ACEOF
34229# If no file are specified by the user, then we need to provide default
34230# value. By we need to know if files were specified by the user.
34231ac_need_defaults=:
34232while test $# != 0
34233do
34234 case $1 in
34235 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34237 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034238 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034239 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034240 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034241 ac_option=$1
34242 ac_optarg=$2
34243 ac_shift=shift
34244 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034245 esac
34246
John Criswell0c38eaf2003-09-10 15:17:25 +000034247 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034248 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34250 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34252 echo "$ac_cs_version"; exit ;;
34253 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034254 debug=: ;;
34255 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034256 $ac_shift
34257 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034258 ac_need_defaults=false;;
34259 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034260 $ac_shift
34261 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034262 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034263 --he | --h)
34264 # Conflict between --help and --header
34265 { echo "$as_me: error: ambiguous option: $1
34266Try \`$0 --help' for more information." >&2
34267 { (exit 1); exit 1; }; };;
34268 --help | --hel | -h )
34269 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34272 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034273
34274 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034275 -*) { echo "$as_me: error: unrecognized option: $1
34276Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034277 { (exit 1); exit 1; }; } ;;
34278
Reid Spencera773bd52006-08-04 18:18:08 +000034279 *) ac_config_targets="$ac_config_targets $1"
34280 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034281
34282 esac
34283 shift
34284done
34285
John Criswell0c38eaf2003-09-10 15:17:25 +000034286ac_configure_extra_args=
34287
34288if $ac_cs_silent; then
34289 exec 6>/dev/null
34290 ac_configure_extra_args="$ac_configure_extra_args --silent"
34291fi
34292
34293_ACEOF
34294cat >>$CONFIG_STATUS <<_ACEOF
34295if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034296 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34297 CONFIG_SHELL=$SHELL
34298 export CONFIG_SHELL
34299 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034300fi
34301
John Criswell7a73b802003-06-30 21:59:07 +000034302_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034303cat >>$CONFIG_STATUS <<\_ACEOF
34304exec 5>>config.log
34305{
34306 echo
34307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34308## Running $as_me. ##
34309_ASBOX
34310 echo "$ac_log"
34311} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034312
Reid Spencera773bd52006-08-04 18:18:08 +000034313_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034314cat >>$CONFIG_STATUS <<_ACEOF
34315#
Reid Spencera773bd52006-08-04 18:18:08 +000034316# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034317#
Reid Spencerc0682832005-02-24 19:05:19 +000034318llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034319
34320_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034321
John Criswell7a73b802003-06-30 21:59:07 +000034322cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034323
34324# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034325for ac_config_target in $ac_config_targets
34326do
Reid Spencera773bd52006-08-04 18:18:08 +000034327 case $ac_config_target in
34328 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34329 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34330 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34331 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34332 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34333 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034334 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034335 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34336 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34337 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34338 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34339 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34340 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34341 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034342 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034343 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34344 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34345 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34346 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34347 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34348
John Criswell7a73b802003-06-30 21:59:07 +000034349 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34350echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34351 { (exit 1); exit 1; }; };;
34352 esac
34353done
34354
Reid Spencera773bd52006-08-04 18:18:08 +000034355
John Criswell7a73b802003-06-30 21:59:07 +000034356# If the user did not use the arguments to specify the items to instantiate,
34357# then the envvar interface is used. Set only those that are not.
34358# We use the long form for the default assignment because of an extremely
34359# bizarre bug on SunOS 4.1.3.
34360if $ac_need_defaults; then
34361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034364fi
34365
John Criswell0c38eaf2003-09-10 15:17:25 +000034366# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034367# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034368# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034369# Hook for its removal unless debugging.
34370# Note that there is a small window in which the directory will not be cleaned:
34371# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034372$debug ||
34373{
Reid Spencera773bd52006-08-04 18:18:08 +000034374 tmp=
34375 trap 'exit_status=$?
34376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34377' 0
John Criswell7a73b802003-06-30 21:59:07 +000034378 trap '{ (exit 1); exit 1; }' 1 2 13 15
34379}
John Criswell7a73b802003-06-30 21:59:07 +000034380# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034381
John Criswell7a73b802003-06-30 21:59:07 +000034382{
Reid Spencera773bd52006-08-04 18:18:08 +000034383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034384 test -n "$tmp" && test -d "$tmp"
34385} ||
34386{
Reid Spencera773bd52006-08-04 18:18:08 +000034387 tmp=./conf$$-$RANDOM
34388 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034389} ||
34390{
John Criswell0c38eaf2003-09-10 15:17:25 +000034391 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034392 { (exit 1); exit 1; }
34393}
34394
John Criswell7a73b802003-06-30 21:59:07 +000034395#
Reid Spencera773bd52006-08-04 18:18:08 +000034396# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034397#
34398
34399# No need to generate the scripts if there are no CONFIG_FILES.
34400# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034401if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034402
34403_ACEOF
34404
Reid Spencera773bd52006-08-04 18:18:08 +000034405
34406
34407ac_delim='%!_!# '
34408for ac_last_try in false false false false false :; do
34409 cat >conf$$subs.sed <<_ACEOF
34410SHELL!$SHELL$ac_delim
34411PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34412PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34413PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34414PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34415PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34416PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34417exec_prefix!$exec_prefix$ac_delim
34418prefix!$prefix$ac_delim
34419program_transform_name!$program_transform_name$ac_delim
34420bindir!$bindir$ac_delim
34421sbindir!$sbindir$ac_delim
34422libexecdir!$libexecdir$ac_delim
34423datarootdir!$datarootdir$ac_delim
34424datadir!$datadir$ac_delim
34425sysconfdir!$sysconfdir$ac_delim
34426sharedstatedir!$sharedstatedir$ac_delim
34427localstatedir!$localstatedir$ac_delim
34428includedir!$includedir$ac_delim
34429oldincludedir!$oldincludedir$ac_delim
34430docdir!$docdir$ac_delim
34431infodir!$infodir$ac_delim
34432htmldir!$htmldir$ac_delim
34433dvidir!$dvidir$ac_delim
34434pdfdir!$pdfdir$ac_delim
34435psdir!$psdir$ac_delim
34436libdir!$libdir$ac_delim
34437localedir!$localedir$ac_delim
34438mandir!$mandir$ac_delim
34439DEFS!$DEFS$ac_delim
34440ECHO_C!$ECHO_C$ac_delim
34441ECHO_N!$ECHO_N$ac_delim
34442ECHO_T!$ECHO_T$ac_delim
34443LIBS!$LIBS$ac_delim
34444build_alias!$build_alias$ac_delim
34445host_alias!$host_alias$ac_delim
34446target_alias!$target_alias$ac_delim
34447LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34448subdirs!$subdirs$ac_delim
34449build!$build$ac_delim
34450build_cpu!$build_cpu$ac_delim
34451build_vendor!$build_vendor$ac_delim
34452build_os!$build_os$ac_delim
34453host!$host$ac_delim
34454host_cpu!$host_cpu$ac_delim
34455host_vendor!$host_vendor$ac_delim
34456host_os!$host_os$ac_delim
34457target!$target$ac_delim
34458target_cpu!$target_cpu$ac_delim
34459target_vendor!$target_vendor$ac_delim
34460target_os!$target_os$ac_delim
34461OS!$OS$ac_delim
34462LINKALL!$LINKALL$ac_delim
34463NOLINKALL!$NOLINKALL$ac_delim
34464LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34465LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34466ARCH!$ARCH$ac_delim
34467ENDIAN!$ENDIAN$ac_delim
34468CC!$CC$ac_delim
34469CFLAGS!$CFLAGS$ac_delim
34470LDFLAGS!$LDFLAGS$ac_delim
34471CPPFLAGS!$CPPFLAGS$ac_delim
34472ac_ct_CC!$ac_ct_CC$ac_delim
34473EXEEXT!$EXEEXT$ac_delim
34474OBJEXT!$OBJEXT$ac_delim
34475CPP!$CPP$ac_delim
34476GREP!$GREP$ac_delim
34477EGREP!$EGREP$ac_delim
34478LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34479BUILD_CC!$BUILD_CC$ac_delim
34480BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34481CVSBUILD!$CVSBUILD$ac_delim
34482ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34483DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034484ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34485EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034486DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034487JIT!$JIT$ac_delim
34488TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34489ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34490ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034491ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034492TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034493ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034494EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34495CXX!$CXX$ac_delim
34496CXXFLAGS!$CXXFLAGS$ac_delim
34497ac_ct_CXX!$ac_ct_CXX$ac_delim
34498LEX!$LEX$ac_delim
34499LEXLIB!$LEXLIB$ac_delim
34500LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34501FLEX!$FLEX$ac_delim
34502YACC!$YACC$ac_delim
34503YFLAGS!$YFLAGS$ac_delim
34504BISON!$BISON$ac_delim
34505NM!$NM$ac_delim
34506ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034507_ACEOF
34508
34509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34510 break
34511 elif $ac_last_try; then
34512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34513echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34514 { (exit 1); exit 1; }; }
34515 else
34516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034517 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034518done
34519
34520ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34521if test -n "$ac_eof"; then
34522 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34523 ac_eof=`expr $ac_eof + 1`
34524fi
34525
34526cat >>$CONFIG_STATUS <<_ACEOF
34527cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34529_ACEOF
34530sed '
34531s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34532s/^/s,@/; s/!/@,|#_!!_#|/
34533:n
34534t n
34535s/'"$ac_delim"'$/,g/; t
34536s/$/\\/; p
34537N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34538' >>$CONFIG_STATUS <conf$$subs.sed
34539rm -f conf$$subs.sed
34540cat >>$CONFIG_STATUS <<_ACEOF
34541CEOF$ac_eof
34542_ACEOF
34543
34544
34545ac_delim='%!_!# '
34546for ac_last_try in false false false false false :; do
34547 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000034548LN_S!$LN_S$ac_delim
34549CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034550CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034551DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034552FIND!$FIND$ac_delim
34553MKDIR!$MKDIR$ac_delim
34554MV!$MV$ac_delim
34555RANLIB!$RANLIB$ac_delim
34556RM!$RM$ac_delim
34557SED!$SED$ac_delim
34558TAR!$TAR$ac_delim
34559BINPWD!$BINPWD$ac_delim
34560GRAPHVIZ!$GRAPHVIZ$ac_delim
34561DOT!$DOT$ac_delim
34562GV!$GV$ac_delim
34563DOTTY!$DOTTY$ac_delim
34564PERL!$PERL$ac_delim
34565HAVE_PERL!$HAVE_PERL$ac_delim
34566INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34567INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34568INSTALL_DATA!$INSTALL_DATA$ac_delim
34569BZIP2!$BZIP2$ac_delim
34570DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034571GROFF!$GROFF$ac_delim
34572GZIP!$GZIP$ac_delim
34573POD2HTML!$POD2HTML$ac_delim
34574POD2MAN!$POD2MAN$ac_delim
34575RUNTEST!$RUNTEST$ac_delim
34576TCLSH!$TCLSH$ac_delim
34577ZIP!$ZIP$ac_delim
34578INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34579INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34580CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34581CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34582LIBADD_DL!$LIBADD_DL$ac_delim
34583ECHO!$ECHO$ac_delim
34584AR!$AR$ac_delim
34585STRIP!$STRIP$ac_delim
34586CXXCPP!$CXXCPP$ac_delim
34587F77!$F77$ac_delim
34588FFLAGS!$FFLAGS$ac_delim
34589ac_ct_F77!$ac_ct_F77$ac_delim
34590LIBTOOL!$LIBTOOL$ac_delim
34591ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34592LLVMGCC!$LLVMGCC$ac_delim
34593LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034594USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034595HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034596HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034597ALLOCA!$ALLOCA$ac_delim
34598MMAP_FILE!$MMAP_FILE$ac_delim
34599LLVMCC1!$LLVMCC1$ac_delim
34600LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34601LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034602LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034603LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34604LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034605LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034606SHLIBEXT!$SHLIBEXT$ac_delim
34607LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34608LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34609LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34610LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34611LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34612LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34613LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34614LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34615LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34616LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34617LIBOBJS!$LIBOBJS$ac_delim
34618LTLIBOBJS!$LTLIBOBJS$ac_delim
34619_ACEOF
34620
David Greenea696d242007-06-28 19:36:08 +000034621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
Reid Spencera773bd52006-08-04 18:18:08 +000034622 break
34623 elif $ac_last_try; then
34624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34625echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34626 { (exit 1); exit 1; }; }
34627 else
34628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34629 fi
34630done
34631
34632ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34633if test -n "$ac_eof"; then
34634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34635 ac_eof=`expr $ac_eof + 1`
34636fi
34637
34638cat >>$CONFIG_STATUS <<_ACEOF
34639cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34640/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34641_ACEOF
34642sed '
34643s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34644s/^/s,@/; s/!/@,|#_!!_#|/
34645:n
34646t n
34647s/'"$ac_delim"'$/,g/; t
34648s/$/\\/; p
34649N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34650' >>$CONFIG_STATUS <conf$$subs.sed
34651rm -f conf$$subs.sed
34652cat >>$CONFIG_STATUS <<_ACEOF
34653:end
34654s/|#_!!_#|//g
34655CEOF$ac_eof
34656_ACEOF
34657
34658
34659# VPATH may cause trouble with some makes, so we remove $(srcdir),
34660# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34661# trailing colons and then remove the whole line if VPATH becomes empty
34662# (actually we leave an empty line to preserve line numbers).
34663if test "x$srcdir" = x.; then
34664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34665s/:*\$(srcdir):*/:/
34666s/:*\${srcdir}:*/:/
34667s/:*@srcdir@:*/:/
34668s/^\([^=]*=[ ]*\):*/\1/
34669s/:*$//
34670s/^[^=]*=[ ]*$//
34671}'
34672fi
34673
34674cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034675fi # test -n "$CONFIG_FILES"
34676
Reid Spencera773bd52006-08-04 18:18:08 +000034677
34678for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34679do
34680 case $ac_tag in
34681 :[FHLC]) ac_mode=$ac_tag; continue;;
34682 esac
34683 case $ac_mode$ac_tag in
34684 :[FHL]*:*);;
34685 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34686echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34687 { (exit 1); exit 1; }; };;
34688 :[FH]-) ac_tag=-:-;;
34689 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34690 esac
34691 ac_save_IFS=$IFS
34692 IFS=:
34693 set x $ac_tag
34694 IFS=$ac_save_IFS
34695 shift
34696 ac_file=$1
34697 shift
34698
34699 case $ac_mode in
34700 :L) ac_source=$1;;
34701 :[FH])
34702 ac_file_inputs=
34703 for ac_f
34704 do
34705 case $ac_f in
34706 -) ac_f="$tmp/stdin";;
34707 *) # Look for the file first in the build tree, then in the source tree
34708 # (if the path is not absolute). The absolute path cannot be DOS-style,
34709 # because $ac_f cannot contain `:'.
34710 test -f "$ac_f" ||
34711 case $ac_f in
34712 [\\/$]*) false;;
34713 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34714 esac ||
34715 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34716echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34717 { (exit 1); exit 1; }; };;
34718 esac
34719 ac_file_inputs="$ac_file_inputs $ac_f"
34720 done
34721
34722 # Let's still pretend it is `configure' which instantiates (i.e., don't
34723 # use $as_me), people would be surprised to read:
34724 # /* config.h. Generated by config.status. */
34725 configure_input="Generated from "`IFS=:
34726 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34727 if test x"$ac_file" != x-; then
34728 configure_input="$ac_file. $configure_input"
34729 { echo "$as_me:$LINENO: creating $ac_file" >&5
34730echo "$as_me: creating $ac_file" >&6;}
34731 fi
34732
34733 case $ac_tag in
34734 *:-:* | *:-) cat >"$tmp/stdin";;
34735 esac
34736 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034737 esac
34738
Reid Spencera773bd52006-08-04 18:18:08 +000034739 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034740$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034741 X"$ac_file" : 'X\(//\)[^/]' \| \
34742 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034744echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34746 s//\1/
34747 q
34748 }
34749 /^X\(\/\/\)[^/].*/{
34750 s//\1/
34751 q
34752 }
34753 /^X\(\/\/\)$/{
34754 s//\1/
34755 q
34756 }
34757 /^X\(\/\).*/{
34758 s//\1/
34759 q
34760 }
34761 s/.*/./; q'`
34762 { as_dir="$ac_dir"
34763 case $as_dir in #(
34764 -*) as_dir=./$as_dir;;
34765 esac
34766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034767 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034768 while :; do
34769 case $as_dir in #(
34770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34771 *) as_qdir=$as_dir;;
34772 esac
34773 as_dirs="'$as_qdir' $as_dirs"
34774 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034776 X"$as_dir" : 'X\(//\)[^/]' \| \
34777 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034779echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34781 s//\1/
34782 q
34783 }
34784 /^X\(\/\/\)[^/].*/{
34785 s//\1/
34786 q
34787 }
34788 /^X\(\/\/\)$/{
34789 s//\1/
34790 q
34791 }
34792 /^X\(\/\).*/{
34793 s//\1/
34794 q
34795 }
34796 s/.*/./; q'`
34797 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034798 done
Reid Spencera773bd52006-08-04 18:18:08 +000034799 test -z "$as_dirs" || eval "mkdir $as_dirs"
34800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34801echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034802 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034803 ac_builddir=.
34804
Reid Spencera773bd52006-08-04 18:18:08 +000034805case "$ac_dir" in
34806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34807*)
John Criswell7a73b802003-06-30 21:59:07 +000034808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034809 # A ".." for each directory in $ac_dir_suffix.
34810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34811 case $ac_top_builddir_sub in
34812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34814 esac ;;
34815esac
34816ac_abs_top_builddir=$ac_pwd
34817ac_abs_builddir=$ac_pwd$ac_dir_suffix
34818# for backward compatibility:
34819ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034820
34821case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034822 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034823 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034824 ac_top_srcdir=$ac_top_builddir_sub
34825 ac_abs_top_srcdir=$ac_pwd ;;
34826 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034827 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034828 ac_top_srcdir=$srcdir
34829 ac_abs_top_srcdir=$srcdir ;;
34830 *) # Relative name.
34831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34832 ac_top_srcdir=$ac_top_build_prefix$srcdir
34833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034834esac
Reid Spencera773bd52006-08-04 18:18:08 +000034835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034836
John Criswell7a73b802003-06-30 21:59:07 +000034837
Reid Spencera773bd52006-08-04 18:18:08 +000034838 case $ac_mode in
34839 :F)
34840 #
34841 # CONFIG_FILE
34842 #
John Criswell7a73b802003-06-30 21:59:07 +000034843
34844 case $INSTALL in
34845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034847 esac
John Criswell7a73b802003-06-30 21:59:07 +000034848_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034849
34850cat >>$CONFIG_STATUS <<\_ACEOF
34851# If the template does not know about datarootdir, expand it.
34852# FIXME: This hack should be removed a few years after 2.60.
34853ac_datarootdir_hack=; ac_datarootdir_seen=
34854
34855case `sed -n '/datarootdir/ {
34856 p
34857 q
34858}
34859/@datadir@/p
34860/@docdir@/p
34861/@infodir@/p
34862/@localedir@/p
34863/@mandir@/p
34864' $ac_file_inputs` in
34865*datarootdir*) ac_datarootdir_seen=yes;;
34866*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34867 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34868echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34869_ACEOF
34870cat >>$CONFIG_STATUS <<_ACEOF
34871 ac_datarootdir_hack='
34872 s&@datadir@&$datadir&g
34873 s&@docdir@&$docdir&g
34874 s&@infodir@&$infodir&g
34875 s&@localedir@&$localedir&g
34876 s&@mandir@&$mandir&g
34877 s&\\\${datarootdir}&$datarootdir&g' ;;
34878esac
34879_ACEOF
34880
34881# Neutralize VPATH when `$srcdir' = `.'.
34882# Shell code in configure.ac might set extrasub.
34883# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034884cat >>$CONFIG_STATUS <<_ACEOF
34885 sed "$ac_vpsub
34886$extrasub
34887_ACEOF
34888cat >>$CONFIG_STATUS <<\_ACEOF
34889:t
34890/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034891s&@configure_input@&$configure_input&;t t
34892s&@top_builddir@&$ac_top_builddir_sub&;t t
34893s&@srcdir@&$ac_srcdir&;t t
34894s&@abs_srcdir@&$ac_abs_srcdir&;t t
34895s&@top_srcdir@&$ac_top_srcdir&;t t
34896s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34897s&@builddir@&$ac_builddir&;t t
34898s&@abs_builddir@&$ac_abs_builddir&;t t
34899s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34900s&@INSTALL@&$ac_INSTALL&;t t
34901$ac_datarootdir_hack
34902" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034903
Reid Spencera773bd52006-08-04 18:18:08 +000034904test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34907 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34908which seems to be undefined. Please make sure it is defined." >&5
34909echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34910which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034911
Reid Spencera773bd52006-08-04 18:18:08 +000034912 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034913 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034914 -) cat "$tmp/out"; rm -f "$tmp/out";;
34915 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034916 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034917 ;;
34918 :H)
34919 #
34920 # CONFIG_HEADER
34921 #
John Criswell7a73b802003-06-30 21:59:07 +000034922_ACEOF
34923
Reid Spencera773bd52006-08-04 18:18:08 +000034924# Transform confdefs.h into a sed script `conftest.defines', that
34925# substitutes the proper values into config.h.in to produce config.h.
34926rm -f conftest.defines conftest.tail
34927# First, append a space to every undef/define line, to ease matching.
34928echo 's/$/ /' >conftest.defines
34929# Then, protect against being on the right side of a sed subst, or in
34930# an unquoted here document, in config.status. If some macros were
34931# called several times there might be several #defines for the same
34932# symbol, which is useless. But do not sort them, since the last
34933# AC_DEFINE must be honored.
34934ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34935# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34936# NAME is the cpp macro being defined, VALUE is the value it is being given.
34937# PARAMS is the parameter list in the macro definition--in most cases, it's
34938# just an empty string.
34939ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34940ac_dB='\\)[ (].*,\\1define\\2'
34941ac_dC=' '
34942ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034943
Reid Spencera773bd52006-08-04 18:18:08 +000034944uniq confdefs.h |
34945 sed -n '
34946 t rset
34947 :rset
34948 s/^[ ]*#[ ]*define[ ][ ]*//
34949 t ok
34950 d
34951 :ok
34952 s/[\\&,]/\\&/g
34953 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34954 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34955 ' >>conftest.defines
34956
34957# Remove the space that was appended to ease matching.
34958# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034959# example, in the case of _POSIX_SOURCE, which is predefined and required
34960# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034961# (The regexp can be short, since the line contains either #define or #undef.)
34962echo 's/ $//
34963s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034964
Reid Spencera773bd52006-08-04 18:18:08 +000034965# Break up conftest.defines:
34966ac_max_sed_lines=50
34967
34968# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34969# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34970# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34971# et cetera.
34972ac_in='$ac_file_inputs'
34973ac_out='"$tmp/out1"'
34974ac_nxt='"$tmp/out2"'
34975
34976while :
John Criswell7a73b802003-06-30 21:59:07 +000034977do
Reid Spencera773bd52006-08-04 18:18:08 +000034978 # Write a here document:
34979 cat >>$CONFIG_STATUS <<_ACEOF
34980 # First, check the format of the line:
34981 cat >"\$tmp/defines.sed" <<\\CEOF
34982/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34983/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34984b
34985:def
34986_ACEOF
34987 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034988 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034989 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34990 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34991 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34992 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034993 rm -f conftest.defines
34994 mv conftest.tail conftest.defines
34995done
Reid Spencera773bd52006-08-04 18:18:08 +000034996rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034997
Reid Spencera773bd52006-08-04 18:18:08 +000034998echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034999cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035000 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035001 echo "/* $configure_input */" >"$tmp/config.h"
35002 cat "$ac_result" >>"$tmp/config.h"
35003 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035004 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35005echo "$as_me: $ac_file is unchanged" >&6;}
35006 else
John Criswell7a73b802003-06-30 21:59:07 +000035007 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035008 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035009 fi
35010 else
Reid Spencera773bd52006-08-04 18:18:08 +000035011 echo "/* $configure_input */"
35012 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035013 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035014 rm -f "$tmp/out12"
35015 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035016
Reid Spencera773bd52006-08-04 18:18:08 +000035017 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35018echo "$as_me: executing $ac_file commands" >&6;}
35019 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035020 esac
John Criswell7a73b802003-06-30 21:59:07 +000035021
Reid Spencera773bd52006-08-04 18:18:08 +000035022
35023 case $ac_file$ac_mode in
35024 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35025 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35026 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35027 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35028 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35029 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35030 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35031 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035032 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35033 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035034 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35035 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35036 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35037 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35038 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35039 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35040 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35041 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35042 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35043 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35044
35045 esac
35046done # for ac_tag
35047
John Criswell7a73b802003-06-30 21:59:07 +000035048
35049{ (exit 0); exit 0; }
35050_ACEOF
35051chmod +x $CONFIG_STATUS
35052ac_clean_files=$ac_clean_files_save
35053
35054
35055# configure is writing to config.log, and then calls config.status.
35056# config.status does its own redirection, appending to config.log.
35057# Unfortunately, on DOS this fails, as config.log is still kept open
35058# by configure, so config.status won't be able to write to it; its
35059# output is simply discarded. So we exec the FD to /dev/null,
35060# effectively closing config.log, so it can be properly (re)opened and
35061# appended to by config.status. When coming back to configure, we
35062# need to make the FD available again.
35063if test "$no_create" != yes; then
35064 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035065 ac_config_status_args=
35066 test "$silent" = yes &&
35067 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035068 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035070 exec 5>>config.log
35071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35072 # would make configure fail if this is the last instruction.
35073 $ac_cs_success || { (exit 1); exit 1; }
35074fi
35075
John Criswell12399a12003-09-30 15:55:44 +000035076#
35077# CONFIG_SUBDIRS section.
35078#
35079if test "$no_recursion" != yes; then
35080
35081 # Remove --cache-file and --srcdir arguments so they do not pile up.
35082 ac_sub_configure_args=
35083 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035084 eval "set x $ac_configure_args"
35085 shift
35086 for ac_arg
35087 do
John Criswell12399a12003-09-30 15:55:44 +000035088 if test -n "$ac_prev"; then
35089 ac_prev=
35090 continue
35091 fi
35092 case $ac_arg in
35093 -cache-file | --cache-file | --cache-fil | --cache-fi \
35094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35095 ac_prev=cache_file ;;
35096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35098 | --c=*)
35099 ;;
35100 --config-cache | -C)
35101 ;;
35102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35103 ac_prev=srcdir ;;
35104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35105 ;;
35106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35107 ac_prev=prefix ;;
35108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035110 *)
35111 case $ac_arg in
35112 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35113 esac
35114 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035115 esac
35116 done
35117
35118 # Always prepend --prefix to ensure using the same prefix
35119 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035120 ac_arg="--prefix=$prefix"
35121 case $ac_arg in
35122 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35123 esac
35124 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035125
35126 ac_popdir=`pwd`
35127 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35128
35129 # Do not complain, so a configure script can configure whichever
35130 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035131 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035132
Reid Spencera773bd52006-08-04 18:18:08 +000035133 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35134 echo "$as_me:$LINENO: $ac_msg" >&5
35135 echo "$ac_msg" >&6
35136 { as_dir="$ac_dir"
35137 case $as_dir in #(
35138 -*) as_dir=./$as_dir;;
35139 esac
35140 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035141 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035142 while :; do
35143 case $as_dir in #(
35144 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35145 *) as_qdir=$as_dir;;
35146 esac
35147 as_dirs="'$as_qdir' $as_dirs"
35148 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035149$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035150 X"$as_dir" : 'X\(//\)[^/]' \| \
35151 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035153echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35155 s//\1/
35156 q
35157 }
35158 /^X\(\/\/\)[^/].*/{
35159 s//\1/
35160 q
35161 }
35162 /^X\(\/\/\)$/{
35163 s//\1/
35164 q
35165 }
35166 /^X\(\/\).*/{
35167 s//\1/
35168 q
35169 }
35170 s/.*/./; q'`
35171 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035172 done
Reid Spencera773bd52006-08-04 18:18:08 +000035173 test -z "$as_dirs" || eval "mkdir $as_dirs"
35174 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35175echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035176 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035177 ac_builddir=.
35178
Reid Spencera773bd52006-08-04 18:18:08 +000035179case "$ac_dir" in
35180.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35181*)
John Criswell12399a12003-09-30 15:55:44 +000035182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035183 # A ".." for each directory in $ac_dir_suffix.
35184 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35185 case $ac_top_builddir_sub in
35186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35188 esac ;;
35189esac
35190ac_abs_top_builddir=$ac_pwd
35191ac_abs_builddir=$ac_pwd$ac_dir_suffix
35192# for backward compatibility:
35193ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035194
35195case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035196 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035197 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035198 ac_top_srcdir=$ac_top_builddir_sub
35199 ac_abs_top_srcdir=$ac_pwd ;;
35200 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035201 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035202 ac_top_srcdir=$srcdir
35203 ac_abs_top_srcdir=$srcdir ;;
35204 *) # Relative name.
35205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35206 ac_top_srcdir=$ac_top_build_prefix$srcdir
35207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035208esac
Reid Spencera773bd52006-08-04 18:18:08 +000035209ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035210
35211
Reid Spencera773bd52006-08-04 18:18:08 +000035212 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035213
35214 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035215 if test -f "$ac_srcdir/configure.gnu"; then
35216 ac_sub_configure=$ac_srcdir/configure.gnu
35217 elif test -f "$ac_srcdir/configure"; then
35218 ac_sub_configure=$ac_srcdir/configure
35219 elif test -f "$ac_srcdir/configure.in"; then
35220 # This should be Cygnus configure.
35221 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035222 else
35223 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35224echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35225 ac_sub_configure=
35226 fi
35227
35228 # The recursion is here.
35229 if test -n "$ac_sub_configure"; then
35230 # Make the cache file name correct relative to the subdirectory.
35231 case $cache_file in
35232 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035233 *) # Relative name.
35234 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035235 esac
35236
Reid Spencera773bd52006-08-04 18:18:08 +000035237 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35238echo "$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 +000035239 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035240 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35241 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035242 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035243echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35244 { (exit 1); exit 1; }; }
35245 fi
35246
Reid Spencera773bd52006-08-04 18:18:08 +000035247 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035248 done
35249fi
35250
Brian Gaekef3b24102003-11-16 18:38:14 +000035251